STRATA
10 checkers. 5-phase auto-fix pipeline. 3,008+ findings capacity. Born from WhiteMagic's own code quality needs — now available as a standalone tool.
Checkers · 10
Each checker targets a specific class of code quality issue. Checkers run in parallel and produce structured findings with severity, location, and suggested fixes.
Unused functions, classes, variables, and imports across all languages.
Python, JS, TS, Go, Rust, Java, Swift, Ruby, Lua, Shell
Duplicate code blocks with configurable similarity threshold.
All languages
Documentation that references stale paths, removed modules, or outdated APIs.
Markdown + code
Absolute paths, user-specific paths, and environment-specific URLs.
All languages
Configuration files that reference missing keys or stale defaults.
YAML, TOML, JSON
Protocol definitions (gRPC, OpenAPI) that reference unused message types.
Proto, OpenAPI
Bare except clauses, swallowed exceptions, and overly broad catches.
Python, Java, Ruby
Stale TODOs, untracked FIXMEs, and action items without owners.
All languages
FFI bindings (PyO3, cgo, NIF) with missing safety checks or memory leaks.
Rust, Go, Erlang
Python-specific deep analysis: metaclass abuse, decorator stacking, circular imports.
Python
Auto-Fix Pipeline · 5 Phases
STRATA doesn't just find problems — it fixes them. The 5-phase pipeline surveys, triages, batches fixes, verifies with tests, and reports.
Scan the codebase with all 10 checkers. Produce a findings report with severity, location, and suggested fix.
Classify each finding: auto-fixable, needs-review, false-positive. Suppress patterns that are intentionally ignored.
Apply auto-fixes in batches grouped by checker type. Each batch is a single atomic commit.
Run the test suite after each batch. If tests fail, roll back the batch and mark findings as needs-review.
Generate a final report: findings found, fixed, suppressed, and remaining. Track reduction over time.
Evidence
STRATA was born from WhiteMagic's own code quality needs. We ran it on ourselves:
STRATA is part of WhiteMagic's tool suite. Install WhiteMagic and run wm strata survey to get started.