static-analysis-testing
Installation
SKILL.md
Static Analysis as Testing
Static analysis finds defects without running code: cheapest, earliest, and runs on every commit. Layer it: format → lint → types → SAST → quality gate.
Toolbelt
| Layer | JS/TS | Python | Java/Kotlin | Go | Any |
|---|---|---|---|---|---|
| Lint | ESLint | Ruff, Pylint | Checkstyle, PMD | golangci-lint |
— |
| Types | tsc --noEmit |
mypy, pyright | javac -Xlint | go vet |
— |
| SAST | eslint-plugin-security | Bandit | SpotBugs+FindSecBugs | gosec | Semgrep, CodeQL, SonarQube |
| Secrets | — | — | — | — | gitleaks, trufflehog |
| Complexity/dup | — | radon, xenon | — | gocyclo | SonarQube, jscpd |
| Dead code | knip, ts-prune | vulture | — | staticcheck | — |
| IaC | — | — | — | — | checkov, tfsec, hadolint |