Skip to content

Bevy linter #1602

@alice-i-cecile

Description

@alice-i-cecile

What problem does this solve or what need does it fill?

A linter could be quite helpful to catch and help correct obvious mistakes in ways the compiler can't, or warn about bad practices in Bevy code.

What solution would you like?

A command line tool is introduced to lint Bevy apps. As some initial ideas, this could catch:

What alternative(s) have you considered?

Some of this can be implemented either in compiler errors or run-time errors / warnings. The former has serious technical limitations (see #1519), and the latter is noisy and hard to configure.

Clippy doesn't appear to support custom lints, but it would be quite nice to integrate with it if it did.

Additional context

This is not super high priority, but serves as a nice place to track features that we could put in it. This would be part of #436, but should be able to stand alone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-FeatureA new feature, making something new possibleC-UsabilityA targeted quality-of-life change that makes Bevy easier to useS-Needs-Design-DocThis issue or PR is particularly complex, and needs an approved design doc before it can be merged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions