Skip to content

Commit

Permalink
fix(main): fixed noisy rule count miss in wizard output #1205
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Nov 19, 2023
1 parent f8cf6e6 commit 0d77142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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)
);

Check warning on line 1221 in src/main.rs

View check run for this annotation

Codecov / codecov/patch

src/main.rs#L1218-L1221

Added lines #L1218 - L1221 were not covered by tests
let noisy_rules_load_flag = Confirm::with_theme(&ColorfulTheme::default())
.with_prompt(prompt_fmt)

Check warning on line 1223 in src/main.rs

View check run for this annotation

Codecov / codecov/patch

src/main.rs#L1223

Added line #L1223 was not covered by tests
Expand Down

0 comments on commit 0d77142

Please sign in to comment.