changed noisy rule counting and load condition

This commit is contained in:
DustInDark
2022-06-24 23:19:31 +09:00
parent 5d9782f971
commit 30da5fb2a0

View File

@@ -233,7 +233,9 @@ impl ParseYaml {
};
let entry = self.rule_load_cnt.entry(entry_key.to_string()).or_insert(0);
*entry += 1;
return Option::None;
if entry_key == "excluded" || (entry_key == "noisy" && !configs::CONFIG.read().unwrap().args.enable_noisy_rules ) {
return Option::None;
}
}
}