MCPcopy Create free account
hub / github.com/MinerSebas/bevy_lint

github.com/MinerSebas/bevy_lint @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
179 symbols 217 edges 15 files ⚖ MIT 4 documented · 2% updated 2y ago★ 573 open issues

Browse by type

Functions 136 Types & classes 43
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Bevy Lint

What is Bevy Lint?

This crates provides Lints for Bevy Code using dylint.

This crate currently only supports the main branch Version of Bevy.

Provided Lints

The provided Lints can be found at https://minersebas.github.io/bevy_lint/bevy_lint/.

How to run Lints

Add this to your Cargo.toml:

[workspace.metadata.dylint]
libraries = [
    { git = "https://github.com/MinerSebas/bevy_lint", branch = "main" },
]

Instead of a branch, you can also provide a tag or a rev (revision)

Afterwards you need to run these commans:

cargo install cargo-dylint dylint-link    # Only neccesary once
cargo dylint bevy_lint

Lint Creation

A Lint is created by implementing the LateLintPass trait and adding to the register_lints function.

When creating a UI Test, add the Test as an Example to the Cargo.toml. Also make sure that your .stderr File uses LF Line-endings and not CRLF, as otherwise the Test will fail without any explanation.

For more Resources you can take a look at the dylint resources.

License

bevy_lint is free and open source! All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 96
Method 40
Class 36
Enum 4
Interface 3

Languages

Rust100%

Modules by API surface

ui/system_lints/unnecessary_with.rs44 symbols
ui/system_lints/unnecessary_option.rs39 symbols
ui/system_lints/unnecessary_or.rs17 symbols
ui/system_lints/empty_query.rs13 symbols
src/system_lints/query_lints.rs12 symbols
src/mixed_ty.rs12 symbols
ui/bundle_lints/bundle_with_incomplete_transforms.rs11 symbols
src/system_lints/mod.rs9 symbols
ui/system_lints/unnecessary_change_detection_filters.rs7 symbols
src/system_lints/model.rs6 symbols
ui/app_lints/insert_resource_with_default.rs5 symbols
src/lib.rs2 symbols

For agents

$ claude mcp add bevy_lint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page