.aislop/config.yml, and inline suppression comments placed directly in source code. Both mechanisms are resolved before scoring — the final score reflects only findings that survive your overrides.
Per-rule severity overrides
Add arules: section to .aislop/config.yml to change the severity of any rule by its ID. Each entry maps a rule ID to one of three values:
Rule IDs follow the pattern
<engine>/<rule-name>. Run aislop rules to see the full list of IDs available in your project, or use aislop rules --search for an interactive explorer.Setting a rule to error
Escalate a rule to error when you want violations to carry the maximum base penalty (3.0 × engine weight) and appear prominently in reports:
Setting a rule to warning
Downgrade a rule to warning when you want visibility without the full score impact of an error:
Setting a rule to off
Use off to silence a rule completely. This is the right choice for rules that genuinely do not apply to your codebase — for example, a no-console rule in a CLI tool that intentionally writes to stdout:
Inline suppressions
Use inline suppression comments when you know a specific finding is a false positive or has been handled in a way aislop cannot detect. Suppressions are scoped to a line, the line below, or an entire file.Directive forms
Syntax
Suppression directives work in any comment syntax —//, #, and <!-- --> are all recognised:
-- to document why the suppression is justified:
