Skip to content

Quickstart

Run Code Buster from the repository you want to analyze. Configuration is optional.

Terminal window
cb summary

The default analysis detects supported languages and frameworks, selects production source, and classifies conventional tests, examples, fixtures, benchmarks, generated code, and vendored files separately.

For a machine-readable report:

Terminal window
cb summary --format json
Terminal window
cb summary --include-tests
cb summary --include-examples
cb summary --include-vendored
cb summary --all

The summary coverage ledger distinguishes selected, test, example, vendored, generated, unsupported, binary, ignored, and unchanged files. Inclusion changes selection; it does not erase classification.

Terminal window
cb inspect path/to/file.dart
cb explain <rule-id>
cb why path/to/file.dart
cb related path/to/file.dart

Use inspect to understand file classification. Use explain for rule rationale and remediation. Use why, related, and path when investigating repository wiring.

Terminal window
cb score
cb quality
cb hotspots
cb plan
cb actions
cb review

These views organize the same analysis evidence for different decisions: prioritization, quality gates, high-risk areas, remediation, and code review.

Terminal window
cb init
cb config explain

cb init creates a minimal code-buster.toml. cb config explain displays effective defaults, inferred repository policy, file configuration, environment input, and CLI overrides.