We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f50750 commit 618d3d5Copy full SHA for 618d3d5
apps/oxlint/src/lint.rs
@@ -444,7 +444,10 @@ impl LintRunner {
444
while let Some(dir) = current {
445
// NOTE: Initial benchmarking showed that it was faster to iterate over the directories twice
446
// rather than constructing the configs in one iteration. It's worth re-benchmarking that though.
447
- directories.insert(dir);
+ let inserted = directories.insert(dir);
448
+ if !inserted {
449
+ break;
450
+ }
451
current = dir.parent();
452
}
453
0 commit comments