Stop linting local tool caches and walking excluded directories
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Tracking
(firefox162 fixed)
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: ahochheiden, Assigned: ahochheiden)
References
(Blocks 1 open bug)
Details
Attachments
(2 external files)
Whole tree runs walk .ruff_cache, the other tool caches and objdirs.
| Assignee | ||
Comment 1•22 days ago
|
||
mach lint . passes each top level directory to the linters, including
dot directories like .ruff_cache. A walker skips dot entries only below
the directory it starts from, so every whole tree run walked and linted
the tool caches in a local checkout. .ruff_cache alone holds over
250000 files.
| Assignee | ||
Comment 2•22 days ago
|
||
The global excludes were merged into each linter's excludes, which
BaseType then replaced with only the excludes inside the linted paths.
A walk outside those paths, like the whole tree walk in
license-declarations, went into every objdir and node_modules.
expand_exclusions now always applies the global excludes unless
filtering is turned off.
A literal exclude now matches an explicitly passed file only by whole
path components, so subdir1/b no longer excludes subdir1/b.js.
Comment 4•12 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/0d1866a3dfbc
https://hg.mozilla.org/mozilla-central/rev/779ecac4969b
Description
•