Closed Bug 1648286 Opened 5 years ago Closed 3 years ago

Exclude tools/lint/eslint/eslint-plugin-mozilla/node_modules/ (and/or other node_modules?) directories from rejected words list

Categories

(Developer Infrastructure :: Lint and Formatting, defect, P3)

Tracking

(firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: Gijs, Assigned: standard8)

References

Details

Attachments

(1 file)

Although we can obviously file tickets against upstream repos that we require in node code, we shouldn't try to lint them...

The severity field is not set for this bug.
:ahal, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(ahal)

I might be mistaken, but I think that's the old location for the node_modules dir and now all the node stuff uses a single root node_modules directory. The root node_modules is already globally excluded from all linters here:
https://searchfox.org/mozilla-central/source/tools/lint/mach_commands.py#34

Mark, do I have it right? If so you can delete that directory and we can resolve this.

Severity: -- → S3
Flags: needinfo?(ahal) → needinfo?(standard8)
Priority: -- → P3

It may have been created when I had to run the tests for adding a new linter rule?

(In reply to Andrew Halberstadt [:ahal] from comment #2)

I might be mistaken, but I think that's the old location for the node_modules dir and now all the node stuff uses a single root node_modules directory. The root node_modules is already globally excluded from all linters here:
https://searchfox.org/mozilla-central/source/tools/lint/mach_commands.py#34

Mark, do I have it right? If so you can delete that directory and we can resolve this.

Not this time. When we run the eslint-plugin-mozilla tests, we create the node_modules directory. I believe various other places like browser/components/newtab and one of the devtools directories can also create their own node_modules directories.

Flags: needinfo?(standard8)
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Blocks: 1777527
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/486b74886dbe When linting, ignore all node_modules directories across the tree not only the top-level ones. r=ahal
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: