Skip to content

Commit 7d4bef0

Browse files
authored
perf: don't negate all file types in ignore's TypesBuilder (#176)
Negating all file types has a huge impact on the time required to construct the underlying regex and is not required (because no type is selected by default). This improves the performance massively!
1 parent 961e21c commit 7d4bef0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/lintspec/src/files.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ pub fn find_sol_files<T: AsRef<Path>>(
3535
// types filter to only consider Solidity files
3636
let types = TypesBuilder::new()
3737
.add_defaults()
38-
.negate("all")
3938
.select("solidity")
4039
.build()
4140
.expect("types builder should build");

0 commit comments

Comments
 (0)