Fix ruff 'warning-rules' warnings and upgrade them to errors
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox148 fixed)
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: ahochheiden, Assigned: ahochheiden)
References
Details
Attachments
(21 files, 1 obsolete file)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 2003412 - Fix PLR1704 warnings: Avoid redefining argument with local variable r?sylvestre,emilio
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 2003412 - Fix PLW0642 warnings: Avoid reassigning self/cls variable in method r?sylvestre,emilio
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 2003412 - Fix PLW1510 warnings: Add explicit check argument to subprocess.run r?sylvestre,emilio
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
When adding new lints, various warnings/categories were downgraded from errors to warnings. This was because in some cases, there's thousands of violations and it was too time consuming to fix them all. We made a sacrifice on some rules (downgrading them to warnings) so we could get others as errors.
Ideally, most/all of these warnings should be errors. This task is to burn down the list of warning-rules so that we may one day be in the ideal state.
With the use of tools like Claude, we should be able to automate most of this.
| Assignee | ||
Comment 1•1 month ago
|
||
| Assignee | ||
Comment 2•1 month ago
|
||
| Assignee | ||
Comment 3•1 month ago
|
||
| Assignee | ||
Comment 4•1 month ago
|
||
With PLR rules now enabled as errors, auto-fix removes the useless
return statement (PLR1711), so we expect 3 fixes instead of 2.
| Assignee | ||
Comment 5•1 month ago
|
||
| Assignee | ||
Comment 6•1 month ago
|
||
| Assignee | ||
Comment 7•1 month ago
|
||
| Assignee | ||
Comment 8•1 month ago
|
||
| Assignee | ||
Comment 9•1 month ago
|
||
| Assignee | ||
Comment 10•1 month ago
|
||
| Assignee | ||
Comment 11•1 month ago
|
||
| Assignee | ||
Comment 12•1 month ago
|
||
| Assignee | ||
Comment 13•1 month ago
|
||
| Assignee | ||
Comment 14•1 month ago
|
||
| Assignee | ||
Comment 15•1 month ago
|
||
| Assignee | ||
Comment 16•1 month ago
|
||
| Assignee | ||
Comment 17•1 month ago
|
||
| Assignee | ||
Comment 18•1 month ago
|
||
| Assignee | ||
Comment 19•1 month ago
|
||
| Assignee | ||
Comment 20•1 month ago
|
||
| Assignee | ||
Comment 21•1 month ago
|
||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 22•1 month ago
|
||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 23•1 month ago
|
||
Comment 24•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4e953d3f1017
https://hg.mozilla.org/mozilla-central/rev/f30257261397
https://hg.mozilla.org/mozilla-central/rev/6114fca8f0f0
https://hg.mozilla.org/mozilla-central/rev/ea036cd9dc4c
https://hg.mozilla.org/mozilla-central/rev/61b4cd1506d5
https://hg.mozilla.org/mozilla-central/rev/a267ad2b09e1
https://hg.mozilla.org/mozilla-central/rev/d06254b1a30d
https://hg.mozilla.org/mozilla-central/rev/ff85eadd0dd1
https://hg.mozilla.org/mozilla-central/rev/2da9e5b17aae
https://hg.mozilla.org/mozilla-central/rev/eb523d20a7ad
https://hg.mozilla.org/mozilla-central/rev/22255f7b9eb9
https://hg.mozilla.org/mozilla-central/rev/b6793acb31c4
https://hg.mozilla.org/mozilla-central/rev/195f5c54493b
https://hg.mozilla.org/mozilla-central/rev/89d61e421573
https://hg.mozilla.org/mozilla-central/rev/78f5953c0330
https://hg.mozilla.org/mozilla-central/rev/8ebe55eb0f53
https://hg.mozilla.org/mozilla-central/rev/f18da5a3e155
https://hg.mozilla.org/mozilla-central/rev/a8342d803801
https://hg.mozilla.org/mozilla-central/rev/861c705c5dd8
https://hg.mozilla.org/mozilla-central/rev/834a0cc175cd
https://hg.mozilla.org/mozilla-central/rev/fe26fd151122
Description
•