From 20d82598e90ccf665b43558949d044869b7e36e6 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Sat, 25 Jun 2022 20:03:26 +0900 Subject: [PATCH] removed duplicated Deprecated count --- src/yaml.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/yaml.rs b/src/yaml.rs index fa10930b..63318981 100644 --- a/src/yaml.rs +++ b/src/yaml.rs @@ -305,19 +305,6 @@ impl ParseYaml { if doc_level_num < args_level_num { return Option::None; } - - if !configs::CONFIG.read().unwrap().args.enable_deprecated_rules { - let rule_status = &yaml_doc["status"].as_str().unwrap_or_default(); - if *rule_status == "deprecated" { - let entry = self - .rule_status_cnt - .entry(rule_status.to_string()) - .or_insert(0); - *entry += 1; - return Option::None; - } - } - Option::Some((filepath, yaml_doc)) }) .collect();