changed hidden rule count output when excluded and noisy and rule parsing error count 0
This commit is contained in:
@@ -374,25 +374,29 @@ impl Detection {
|
|||||||
let args = &configs::CONFIG.read().unwrap().args;
|
let args = &configs::CONFIG.read().unwrap().args;
|
||||||
|
|
||||||
sorted_ld_rc.into_iter().for_each(|(key, value)| {
|
sorted_ld_rc.into_iter().for_each(|(key, value)| {
|
||||||
let disable_flag = if key == "noisy" && !args.enable_noisy_rules {
|
if value != &0_u128 {
|
||||||
" (Disabled)"
|
let disable_flag = if key == "noisy" && !args.enable_noisy_rules {
|
||||||
} else {
|
" (Disabled)"
|
||||||
""
|
} else {
|
||||||
};
|
""
|
||||||
//タイトルに利用するものはascii文字であることを前提として1文字目を大文字にするように変更する
|
};
|
||||||
println!(
|
//タイトルに利用するものはascii文字であることを前提として1文字目を大文字にするように変更する
|
||||||
"{} rules: {}{}",
|
println!(
|
||||||
make_ascii_titlecase(key.clone().as_mut()),
|
"{} rules: {}{}",
|
||||||
value,
|
make_ascii_titlecase(key.clone().as_mut()),
|
||||||
disable_flag,
|
value,
|
||||||
);
|
disable_flag,
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
write_color_buffer(
|
if err_rc != &0_u128 {
|
||||||
BufferWriter::stdout(ColorChoice::Always),
|
write_color_buffer(
|
||||||
Some(Color::Red),
|
BufferWriter::stdout(ColorChoice::Always),
|
||||||
&format!("Rule parsing errors: {}", err_rc),
|
Some(Color::Red),
|
||||||
)
|
&format!("Rule parsing errors: {}", err_rc),
|
||||||
.ok();
|
)
|
||||||
|
.ok();
|
||||||
|
}
|
||||||
println!();
|
println!();
|
||||||
|
|
||||||
let mut sorted_st_rc: Vec<(&String, &u128)> = st_rc.iter().collect();
|
let mut sorted_st_rc: Vec<(&String, &u128)> = st_rc.iter().collect();
|
||||||
|
|||||||
Reference in New Issue
Block a user