From 0d771429c51a75497e70c640cd7c7b4966e1fc56 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Sun, 19 Nov 2023 16:44:31 +0900 Subject: [PATCH] fix(main): fixed noisy rule count miss in wizard output #1205 --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8e2d51b53..0399e859e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1136,7 +1136,7 @@ impl App { let exclude_noisy_cnt = calcurate_wizard_rule_count( true, - ["exclude", "noisy", "deprecated", "unsupported"].to_vec(), + ["exclude", "excluded", "noisy", "deprecated", "unsupported"].to_vec(), selections_status[selected_index].1 .1, [].to_vec(), [].to_vec(), @@ -1217,7 +1217,7 @@ impl App { // noisy rules load prompt let prompt_fmt = format!( "Include noisy rules? ({} rules)", - tags_cnt.get("noisy").unwrap_or(&0) + exclude_noisy_cnt.get("noisy").unwrap_or(&0) ); let noisy_rules_load_flag = Confirm::with_theme(&ColorfulTheme::default()) .with_prompt(prompt_fmt)