Configuration
Code Buster reads an optional code-buster.toml from the analyzed repository. With no file, repository defaults infer languages, frameworks, source categories, and formatter policy.
Precedence
Section titled “Precedence”Explicit CLI options override environment and file configuration. Explicit classification globs override inferred repository profiles. Inspect the result with:
cb config explaincb inspect path/to/fileLanguage and quality policy
Section titled “Language and quality policy”languages = ["dart", "python", "typescript"]
[quality]profile = "standard" # standard, strict, or securitygates = ["findings == 0", "debt_minutes_per_file <= 5"]
[analysis]min_duplication_lines = 6complexity_threshold = 10cognitive_threshold = 15max_file_lines = 500max_function_lines = 80Use languages = ["auto"] to detect substantial languages from source files and manifests.
Source classification
Section titled “Source classification”[classification]production = ["tools/release/**"]test = ["verification/**"]generated = ["src/schema_output/**"]Production source is analyzed by default. Tests, examples, fixtures, benchmarks, vendored code, and generated code remain visible in coverage while excluded from normal findings unless requested.
Rule selection
Section titled “Rule selection”Configure rule groups, disabled rules, and per-rule severity only when repository policy differs from defaults. Rule IDs are stable contract identifiers; use cb rules and cb explain <rule-id> before adding overrides.
Architecture boundaries
Section titled “Architecture boundaries”Architecture policy can restrict allowed source-to-target dependencies and define project entry points. Prefer project-relative globs and validate them with cb graph, cb structure, and cb path <source> <target>.
CI behavior
Section titled “CI behavior”Set CI failure behavior explicitly rather than relying on interactive defaults:
[ci]fail_on_findings = trueCommit configuration with the repository so local and CI analyses use the same policy.