From a729b5368c6704defc7f8017c5be3289ff55b93b Mon Sep 17 00:00:00 2001 From: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Date: Thu, 11 Jun 2026 21:53:08 +0800 Subject: [PATCH] chore: update slophammer-rs to 0.3.0 with reasoned excludes --- .github/workflows/ci.yml | 2 +- slophammer.yml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19cc8162..d1869798 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: cargo install cargo-llvm-cov --locked cargo install cargo-audit --locked cargo install cargo-mutants --locked - cargo install slophammer-rs --version 0.1.0 --locked + cargo install slophammer-rs --version 0.3.0 --locked - name: Install Node uses: actions/setup-node@v5 diff --git a/slophammer.yml b/slophammer.yml index caf2020b..c8432b1f 100644 --- a/slophammer.yml +++ b/slophammer.yml @@ -7,7 +7,8 @@ rust: - "target/**" - "tests/**" - "fixtures/**" - - "captures/**" + - pattern: "captures/**" + reason: recorded terminal captures and capture tooling, not shipped code complexity: cognitive_max: 8 targets: @@ -16,18 +17,21 @@ rust: - "target/**" - "tests/**" - "fixtures/**" - - "captures/**" + - pattern: "captures/**" + reason: recorded terminal captures and capture tooling, not shipped code dry: max_findings: 0 paths: - src exclude: - - "src/test_fixtures.rs" + - pattern: "src/test_fixtures.rs" + reason: shared test fixture data exercised only from tests - "**/*_test.rs" - "target/**" - "tests/**" - "fixtures/**" - - "captures/**" + - pattern: "captures/**" + reason: recorded terminal captures and capture tooling, not shipped code copied_blocks: enabled: true min_tokens: 100