Skip to content

Commit

Permalink
Move lint config to Cargo.toml (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett authored Dec 17, 2024
1 parent 1df452e commit da394f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ opt-level = 3

[dependencies]
bevy = "0.15"

# These lints may be important signals about code quality, but normal Bevy code
# commonly triggers them and the CI workflow treats them as errors, so we've
# chosen to allow them in this template.
#
# Feel free to delete the following lines.
[lints.clippy]
too_many_arguments = "allow"
type_complexity = "allow"
6 changes: 0 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
// Bevy code commonly triggers these lints and they may be important signals
// about code quality. They are sometimes hard to avoid though, and the CI
// workflow treats them as errors, so this allows them throughout the project.
// Feel free to delete this line.
#![allow(clippy::too_many_arguments, clippy::type_complexity)]

use bevy::asset::AssetMetaCheck;
use bevy::prelude::*;

Expand Down

0 comments on commit da394f3

Please sign in to comment.