Skip to content

Commit

Permalink
fix(yaml): fixed proven-rules option filtering condition wrong in if …
Browse files Browse the repository at this point in the history
…statement #1115
  • Loading branch information
hitenkoku committed Jul 4, 2023
1 parent dffc042 commit ea444a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl ParseYaml {
}
}
if let Some(id) = rule_id {
if stored_static.target_ruleids.is_target(id, false) {
if !stored_static.target_ruleids.is_target(id, true) {
let entry = self.rule_load_cnt.entry("excluded".into()).or_insert(0);
*entry += 1;
return Option::None;
Expand Down

0 comments on commit ea444a8

Please sign in to comment.