Skip to content

feat: add the static-analysis check: static analyzers are configured and run - #120

Merged
lefticus merged 1 commit into
committed-artifactsfrom
static-analysis
Nov 6, 2026
Merged

lefticus merged 1 commit into
committed-artifactsfrom
static-analysis

Conversation

@lefticus

@lefticus lefticus commented Nov 6, 2026

Copy link
Copy Markdown
Member

Closes #13. Phase 3 of #107. Stacked on #119.

A new StaticAnalysis rule lists an ecosystem's analyzers. For each one it gives how the analyzer is seen running, the file that configures it, and why a running analyzer falls short.

Ecosystem Passes when
C/C++ clang-tidy (with a .clang-tidy) and cppcheck run
Python ruff check, pylint or flake8 runs, in CI or as a pre-commit hook
Rust cargo clippy runs
Go golangci-lint runs with linters beyond its defaults

The check warns when an analyzer is configured but does not run, or runs short of the above. It fails when none runs.

The well-configured fixtures now run cppcheck, ruff check and golangci-lint. This repository passes (ruff check).

🤖 Generated with Claude Code

…and run

A new StaticAnalysis rule lists an ecosystem's analyzers, how each is seen
running, the file that configures it, and why a running one falls short.
C/C++ requires both clang-tidy (with a .clang-tidy) and cppcheck; Python
accepts ruff check, pylint or flake8, in CI or as a pre-commit hook; Rust
requires clippy; Go requires golangci-lint with linters beyond its defaults.

The well-configured fixtures now run cppcheck, ruff check and golangci-lint.
This project already runs ruff check.

Closes #13

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.42%. Comparing base (8dceed0) to head (4753c68).

Additional details and impacted files
@@                   Coverage Diff                   @@
##           committed-artifacts     #120      +/-   ##
=======================================================
+ Coverage                98.37%   98.42%   +0.05%     
=======================================================
  Files                       54       55       +1     
  Lines                     2092     2162      +70     
  Branches                   208      215       +7     
=======================================================
+ Hits                      2058     2128      +70     
  Misses                      28       28              
  Partials                     6        6              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lefticus
lefticus added this pull request to stack #123 November 6, 2026 06:00
@lefticus
lefticus merged commit 29b7206 into main Nov 6, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add static-analysis check: static analyzers are configured and run

1 participant