Skip to main content

rule_config_key

Function rule_config_key 

Source
pub fn rule_config_key(rule: &RuleDef) -> Option<&'static str>
Expand description

The rules.* key of rule alone: the config_key of its issue kind, or for a complexity or file-length finding the complexity-* rule that decides if the finding fails the run. None when no key belongs to this rule only. high-complexity has none: it takes the most severe of the cyclomatic and cognitive rules.