Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
feat: Change clippy config
Browse files Browse the repository at this point in the history
  • Loading branch information
sjackman committed Dec 5, 2024
1 parent 728cf96 commit 7e6c6aa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,7 @@ jobs:
- name: lint with clippy
uses: 10XGenomics/clippy-check@main
with:
args: |
--all-targets --
-W clippy::wildcard_imports
-W clippy::redundant_closure_for_method_calls
-W clippy::enum_glob_use
-A clippy::float_cmp
-D clippy::unused_io_amount
-W future_incompatible
-W nonstandard_style
-W rust_2018_compatibility
-W rust_2021_compatibility
-W unused
args: --all-targets
- uses: EmbarkStudios/cargo-deny-action@v1
- name: Build
run: cargo build --release
Expand Down
16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ harness = false
name = "array_bench"
harness = false

[lints.clippy]
enum_glob_use = "deny"
needless_lifetimes = "deny"
perf = "deny"
redundant_closure_for_method_calls = "deny"
style = "deny"
suspicious = "deny"
unnecessary_unwrap = "deny"
unused_io_amount = "deny"
wildcard_imports = "deny"

[lints.rust]
future_incompatible = "deny"
nonstandard_style = "deny"
unused = "deny"

[dependencies]
anyhow = { version = "1", features = ["backtrace"] }
bio = "2"
Expand Down

0 comments on commit 7e6c6aa

Please sign in to comment.