Skip to content

Commit

Permalink
move ignored_extensions const
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 9, 2024
1 parent a199453 commit 9716357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/src/modules/bom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ impl Module for BOMCheck {

fn check(&self, ctx: &Context) -> Result<Report, crate::Error> {
fn files_to_check(root: &PathBuf) -> Vec<PathBuf> {
const IGNORED_EXTENSIONS: [&str; 4] = ["p3d", "rtm", "bin", "paa"];
walkdir::WalkDir::new(root)
.into_iter()
.filter_map(std::result::Result::ok)
Expand All @@ -29,7 +30,6 @@ impl Module for BOMCheck {
.map(|e| e.path().to_path_buf())
.collect::<Vec<_>>()
}
const IGNORED_EXTENSIONS: [&str; 4] = ["p3d", "rtm", "bin", "paa"];
let mut report = Report::new();
let mut files = Vec::new();
for folder in ["addons", "optionals"] {
Expand Down

0 comments on commit 9716357

Please sign in to comment.