Skip to content

Commit 3a6bd86

Browse files
authored
Allow some clippy lints that complain about common bevy code (#16)
* Allow some clippy lints that complain about common bevy code * Don't ignore the lints in CI * Add a comment explaining the allowing of these lints
1 parent f0f64b7 commit 3a6bd86

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
1413
# Run cargo test
1514
test:
1615
name: Test Suite

src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Bevy code commonly triggers these lints and they may be important signals
2+
// about code quality. They are sometimes hard to avoid though, and the CI
3+
// workflow treats them as errors, so this allows them throughout the project.
4+
// Feel free to delete this line.
5+
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
6+
17
use bevy::prelude::*;
28

39
fn main() {

0 commit comments

Comments
 (0)