Closed
Bug 1549945
Opened 5 years ago
Closed 4 years ago
[Automated review] "'<function>' is not defined. no-undef (eslint)" occurs when using "!" syntax in mochitest.ini
Categories
(Developer Infrastructure :: Lint and Formatting, defect, P3)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox77 fixed)
RESOLVED
FIXED
mozilla77
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: m_kato, Assigned: standard8)
Details
Attachments
(1 file)
Phabricator URL: https://phabricator.services.mozilla.com/D29153
mochitest's support-files supports "!" prefix to include other directory's file. When using this syntax, eslint doesn't load external file.
mochitest.ini
support-files =
...
!/editor/libeditor/tests/spellcheck.js
[test_bug1418629.html]
test_bug1418629.html
...
<script src="/tests/editor/libeditor/tests/spellcheck.js"></script>
...
<script>
....
isSpellingCheckOk(SpecialPowers.wrap(input).editor, misspeltWords);
isSpellingCheckOk is defined in /tests/editor/libeditor/tests/spellcheck.js, but ./mach eslint
says no-undef
.
Comment 1•5 years ago
|
||
The priority flag is not set for this bug.
:sylvestre, could you have a look please?
For more information, please visit auto_nag documentation.
Flags: needinfo?(sledru)
Updated•5 years ago
|
Component: Source Code Analysis → Lint and Formatting
Flags: needinfo?(sledru)
Updated•4 years ago
|
Priority: -- → P3
Assignee | ||
Updated•4 years ago
|
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Iteration: --- → 77.2 - Apr 20 - May 3
Points: --- → 2
Assignee | ||
Comment 2•4 years ago
|
||
When loading from /tests/ we can strip off the /tests/ part and find the file with the rest of the path.
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e8ad04c95f25 Avoid the need for import-globals-from when (x)html files load scripts via /tests/. r=mossop
Comment 4•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox77:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•