diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b343a9..2928d59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: uses: furedea/reusable-workflows/.github/actions/nix-setup@2ae953294b9a805d0705657adc1d9d4f1bc1f646 # v1.3.0 - name: Run clippy - run: cargo clippy -- -D warnings + run: cargo clippy --all-targets -- -D warnings format: runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index 09c6923..45745e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ wildcard_enum_match_arm = "warn" iter_over_hash_type = "warn" cognitive_complexity = "warn" excessive_nesting = "warn" +tests_outside_test_module = "warn" dbg_macro = "deny" todo = "deny" unimplemented = "deny" diff --git a/lefthook.yml b/lefthook.yml index d9f30a1..64cb10d 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -20,7 +20,7 @@ pre-commit: run: cargo fmt --check clippy: glob: "*.rs" - run: cargo clippy -- -D warnings + run: cargo clippy --all-targets -- -D warnings ls-lint: run: ls_lint file-length: