Skip to content

Commit

Permalink
clippy: configure lint categories in Cargo.toml
Browse files Browse the repository at this point in the history
disable Error on warning in github CI as now wanted lint
are directly configured as deny.
  • Loading branch information
gwen-lg committed Apr 9, 2024
1 parent 33f7498 commit 6194ecd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/code_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ env:
jobs:
ci_code_checks_ans_tests:
runs-on: ubuntu-22.04
env:
RUSTFLAGS: "-D warnings"
strategy:
fail-fast: false

Expand All @@ -47,7 +45,7 @@ jobs:
id: cargo_clippy
if: $${{ always() }}
run: |
cargo clippy --profile=test -- -D warnings
cargo clippy --profile=test
- name: "Cargo test"
id: cargo_test
Expand Down
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ license = "LGPL-3.0-or-later"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lints.clippy]
cargo = { priority = -1, level = "warn" }
complexity = { priority = -1, level = "deny" }
correctness = { priority = -1, level = "deny" }
# nursery = { priority = -1, level = "deny" }
pedantic = { priority = -1, level = "warn" }
perf = { priority = -1, level = "deny" }
# restriction = { priority = -1, level = "deny" }
style = { priority = -1, level = "deny" }
# suspicious = { priority = -1, level = "deny" }

[dependencies]
cast = "0.3"
image = { version = "0.25", default-features = false }
Expand Down

0 comments on commit 6194ecd

Please sign in to comment.