Feature/#158 add rulefilepath column (#168)

* add level csv column

* update

* Feature/output detect count151 (#167)

* add output process count of detects events #151

* add output process count of detects event when output stdio #151

* add format enter

* update

Co-authored-by: DustInDark <nextsasasa@gmail.com>
This commit is contained in:
James
2021-11-09 00:35:28 +09:00
committed by GitHub
parent c97cf7373a
commit e77a193c5c
7 changed files with 44 additions and 17 deletions
+4 -2
View File
@@ -9,7 +9,7 @@ use std::path::{Path, PathBuf};
use yaml_rust::YamlLoader;
pub struct ParseYaml {
pub files: Vec<yaml_rust::Yaml>,
pub files: Vec<(String, yaml_rust::Yaml)>,
}
impl ParseYaml {
@@ -46,7 +46,9 @@ impl ParseYaml {
if i["ignore"].as_bool().unwrap_or(false) {
continue;
}
&self.files.push(i);
&self
.files
.push((format!("{}", entry.path().display()), i));
}
}
Err(e) => {