Skip to main content

Module rules

Module rules 

Source
Expand description

The rule registry.

Rules are grouped into submodules by category. default_rules assembles the active rule set, respecting the enable/disable switches in the config. Adding a new rule is a matter of implementing crate::analyzer::Rule and registering it here.

Modules§

dependencies
Dependency rules.
quality
Quality rules: large files, TODO/FIXME tracking, and basic duplicate code.
security
Security rules: hardcoded secret detection and dangerous command execution.

Functions§

all_rule_ids
Every rule id known to Killer, for documentation and killer version.
default_rules
Build the list of enabled rules from configuration.