Skip to content

Add a set of standard clippy lints #10612

@Kanabenki

Description

@Kanabenki

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

There's currently no project-level clippy lints defined.

What solution would you like?

Once #10011 is merged, we could expand the Cargo.toml lint table with a set of clippy lints we want to uphold through the codebase. Something we could use as inspiration is the set of clippy used in Embark projects. While some lints in it are probably too restrictive/opinionated, we could filter it and possibly check for additional lints that might fit the codebase in the full lint list.

We could then remove the few clippy warnings currently checked in CI, since they would be picked up from the lint table. This could be done over the course of several PRs since the resulting diff might be large.

What alternative(s) have you considered?

  • Keep the current setup as-is.
  • Just move the lints checked in CI to Cargo.toml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Build-SystemRelated to build systems or continuous integrationC-Code-QualityA section of code that is hard to understand or changeC-FeatureA new feature, making something new possibleD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions