changed hidden rule count output when excluded and noisy and rule parsing error count 0
This commit is contained in:
@@ -374,6 +374,7 @@ impl Detection {
|
||||
let args = &configs::CONFIG.read().unwrap().args;
|
||||
|
||||
sorted_ld_rc.into_iter().for_each(|(key, value)| {
|
||||
if value != &0_u128 {
|
||||
let disable_flag = if key == "noisy" && !args.enable_noisy_rules {
|
||||
" (Disabled)"
|
||||
} else {
|
||||
@@ -386,13 +387,16 @@ impl Detection {
|
||||
value,
|
||||
disable_flag,
|
||||
);
|
||||
}
|
||||
});
|
||||
if err_rc != &0_u128 {
|
||||
write_color_buffer(
|
||||
BufferWriter::stdout(ColorChoice::Always),
|
||||
Some(Color::Red),
|
||||
&format!("Rule parsing errors: {}", err_rc),
|
||||
)
|
||||
.ok();
|
||||
}
|
||||
println!();
|
||||
|
||||
let mut sorted_st_rc: Vec<(&String, &u128)> = st_rc.iter().collect();
|
||||
|
||||
Reference in New Issue
Block a user