STRATA

Code analysis as a service.

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.

10
Checkers
5
Auto-Fix Phases
58.9%
Finding Reduction
10
Languages

Checkers · 10

What STRATA finds.

Each checker targets a specific class of code quality issue. Checkers run in parallel and produce structured findings with severity, location, and suggested fixes.

Dead Code

Unused functions, classes, variables, and imports across all languages.

Python, JS, TS, Go, Rust, Java, Swift, Ruby, Lua, Shell

Copy-Paste

Duplicate code blocks with configurable similarity threshold.

All languages

Doc Drift

Documentation that references stale paths, removed modules, or outdated APIs.

Markdown + code

Hardcoded Paths

Absolute paths, user-specific paths, and environment-specific URLs.

All languages

Config Drift

Configuration files that reference missing keys or stale defaults.

YAML, TOML, JSON

Protocol Dead Code

Protocol definitions (gRPC, OpenAPI) that reference unused message types.

Proto, OpenAPI

Exceptions

Bare except clauses, swallowed exceptions, and overly broad catches.

Python, Java, Ruby

TODO/FIXME Style

Stale TODOs, untracked FIXMEs, and action items without owners.

All languages

Native Bindings

FFI bindings (PyO3, cgo, NIF) with missing safety checks or memory leaks.

Rust, Go, Erlang

Python Deep

Python-specific deep analysis: metaclass abuse, decorator stacking, circular imports.

Python

Auto-Fix Pipeline · 5 Phases

From findings to fixes, automatically.

STRATA doesn't just find problems — it fixes them. The 5-phase pipeline surveys, triages, batches fixes, verifies with tests, and reports.

1

Survey

Scan the codebase with all 10 checkers. Produce a findings report with severity, location, and suggested fix.

2

Triage

Classify each finding: auto-fixable, needs-review, false-positive. Suppress patterns that are intentionally ignored.

3

Batch Fix

Apply auto-fixes in batches grouped by checker type. Each batch is a single atomic commit.

4

Verify

Run the test suite after each batch. If tests fail, roll back the batch and mark findings as needs-review.

5

Report

Generate a final report: findings found, fixed, suppressed, and remaining. Track reduction over time.

Evidence

STRATA on itself.

STRATA was born from WhiteMagic's own code quality needs. We ran it on ourselves:

Initial findings3,787
After batch resolution1,555
Reduction58.9%
False positives eliminated2,232

Try STRATA on your codebase.

STRATA is part of WhiteMagic's tool suite. Install WhiteMagic and run wm strata survey to get started.