Closed
Bug 1824326
Opened 2 years ago
Closed 2 years ago
'./mach lint -l eslint --fix' runs ESlint twice
Categories
(Developer Infrastructure :: Lint and Formatting, task, P2)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox113 fixed)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| firefox113 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(1 file)
When running ESLint with the --fix option, ESLint is currently being run twice, once to get the count of existing errors, the second time to actually fix the errors (and get a count of the remaining).
Since a full-tree ESLint takes several minutes to run, this is rather wasteful for developer's time.
Getting an accurate count of items fixed from ESLint isn't going to be possible, but we can at least get a count of the files fixed. This will therefore indicate to the developer that at least something was fixed, even if we can't get the exact count.
| Assignee | ||
Comment 1•2 years ago
|
||
This avoids running ESLint to only get the initial count of errors. Whilst the count of files changed may not be
as accurate, it is still a responable proxy for something being fixed.
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9f075a700e96
When automatically fixing issues, avoid running ESLint twice. r=linter-reviewers,sylvestre
Comment 3•2 years ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•