Enable no-fallthrough rule in the recommended config
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox70 fixed)
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: jaws, Assigned: jaws)
References
(Blocks 1 open bug)
Details
Attachments
(10 files, 2 obsolete files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
This rule would have prevented bug 1570945.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
| Assignee | ||
Comment 6•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
| Assignee | ||
Comment 8•6 years ago
|
||
| Assignee | ||
Comment 9•6 years ago
|
||
| Assignee | ||
Comment 10•6 years ago
|
||
| Assignee | ||
Comment 11•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 12•6 years ago
|
||
I have to unassign myself from this bug. Mark, are you able to fix up any remaining issues and land this?
| Assignee | ||
Updated•6 years ago
|
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
Backed out changeset 8f699e0bfbad (Bug 1571567) for es lint failure on browser/head.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/50d4fa5e5e09d705380c92764df96ca156d86595
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=260598465&repo=autoland&lineNumber=275
[task 2019-08-08T14:39:45.849Z] Error processing command. Ignoring because optional. (optional:packages.txt:comm/build/virtualenv_packages.txt)
[task 2019-08-08T14:53:54.511Z] TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/toolkit/mozapps/extensions/test/browser/head.js:1413:7 | Delete ?? (prettier/prettier)
[taskcluster 2019-08-08 14:53:55.576Z] === Task Finished ===
[taskcluster 2019-08-08 14:53:56.923Z] Unsuccessful task run with exit code: 1 completed in 1103.291 seconds
I'll also backout the initial push
Comment 17•6 years ago
|
||
Updated•6 years ago
|
Comment 18•6 years ago
|
||
Comment 19•6 years ago
|
||
I've fixed the issues and relanded, so hopefully good now. Re-assigning back to Jared as he did most of the work here.
Comment 20•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/328db867c177
https://hg.mozilla.org/mozilla-central/rev/1e7c298b1d68
https://hg.mozilla.org/mozilla-central/rev/c0ba1b368b58
https://hg.mozilla.org/mozilla-central/rev/eb557d4ba927
https://hg.mozilla.org/mozilla-central/rev/e54f2402aa49
https://hg.mozilla.org/mozilla-central/rev/cade7a6a7948
https://hg.mozilla.org/mozilla-central/rev/9e23c2da81e3
https://hg.mozilla.org/mozilla-central/rev/2db0ad03c4af
https://hg.mozilla.org/mozilla-central/rev/34e6203ba194
https://hg.mozilla.org/mozilla-central/rev/381a12355930
Comment 21•6 years ago
|
||
We're looking at doing the same for TB. Why is this OK to remove?
https://hg.mozilla.org/mozilla-central/rev/c0ba1b368b5880253f4c6a5b3deced3d7044cf19#l13.12
Comment 22•6 years ago
|
||
There was even a comment in https://phabricator.services.mozilla.com/D40746
I believe this change in behaviour is incorrect if this comment (https://searchfox.org/mozilla-central/rev/e62c920f7f6463239c6634113f8a8351e263b936/toolkit/modules/PopupNotifications.jsm#1309-1310) is correct.
Comment 23•6 years ago
|
||
Looks like Jared made changes andmarked that comment as done, so I didn't notice it when landing.
I think what happened here is that initially the break; was moved from inside the if to a higher level. When Matt commented, it then got changed from a break; to a fall-through without re-inserting the original break;.
This looks like just an optimisation to avoid unnecessary updates, but probably safer to put it back in for now - I've filed bug 1575197 to handle that.
| Assignee | ||
Comment 24•6 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #23)
Looks like Jared made changes andmarked that comment as done, so I didn't notice it when landing.
I think what happened here is that initially the
break;was moved from inside the if to a higher level. When Matt commented, it then got changed from abreak;to afall-throughwithout re-inserting the originalbreak;.This looks like just an optimisation to avoid unnecessary updates, but probably safer to put it back in for now - I've filed bug 1575197 to handle that.
Yeah, that's what happened. Sorry about that and thank you for fixing it.
Updated•3 years ago
|
Description
•