Fix `support-files` matching so config changes lint the whole tree
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Tracking
(firefox161 fixed)
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: ahochheiden, Assigned: ahochheiden)
References
(Blocks 1 open bug)
Details
Attachments
(2 external files)
Relative support-files patterns and missing eslint and stylelint config files mean config changes only lint the changed files.
| Assignee | ||
Comment 1•29 days ago
|
||
should_lint_entire_tree matched each changed file's absolute path
against the support-files patterns. Most patterns are relative to the
root, so only those starting with **/ matched, along with the absolute
path of the linter's own definition. Changing a file like
tools/lint/eslint/__init__.py or tools/lint/python/ruff.py under
--outgoing or --workdir linted only the changed files instead of the
whole tree.
| Assignee | ||
Comment 2•29 days ago
|
||
The rules live in eslint.config.mjs and the eslint-*.config.mjs files
it imports, and stylelint reads stylelint-rollouts.config.js, but the
support-files only listed the older .eslintrc.js and .stylelintrc.js.
Changing a rule under --outgoing or --workdir linted only the changed
files instead of the whole tree.
Comment 4•26 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8c8129488358
https://hg.mozilla.org/mozilla-central/rev/baf0ee9519c6
Description
•