Skip to content

Commit

Permalink
fix(yaml): fixed wrong include_status rule filter condition #1188
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Oct 20, 2023
1 parent 16e8201 commit eab295a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ impl ParseYaml {
if let Some(s) = yaml_doc["status"].as_str() {
// excluded status optionで指定されたstatusとinclude_status optionで指定されたstatus以外のルールは除外する
if self.exclude_status.contains(&s.to_string())
|| (!is_contained_include_status_all_allowed
&& stored_static.include_status.contains(s))
|| !(is_contained_include_status_all_allowed
|| stored_static.include_status.contains(s))
{
up_rule_load_cnt("excluded", rule_id.unwrap_or(&String::default()));
return Option::None;
Expand Down

0 comments on commit eab295a

Please sign in to comment.