Function should_ignore_rule
Source pub fn should_ignore_rule(
annotations: Option<&BTreeMap<String, String>>,
rule_code: &str,
) -> bool
Expand description
Check if a specific rule should be ignored for an object.
§Arguments
annotations - Optional map of annotations from the object metadata
rule_code - The rule code to check (e.g., “K8S-OPT-001”)
§Returns
true if the rule should be ignored, false otherwise.