Enable the "no-else-return" rule in pylint and fix the existing issues
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox80 fixed)
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: manish.giri.me, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=python])
Attachments
(2 files, 1 obsolete file)
This can be done by adding the option here:
https://searchfox.org/mozilla-central/source/tools/lint/python/pylint.py#109
Then run with
$ ./mach lint -l pylint --verbose
As the change should be easy, it is just to learn how to contribute to Firefox.
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
Assignee | ||
Comment 1•4 years ago
|
||
Hello, I have previously submitted a few one-line patches to Mozilla, but that was in C++, and not in the "Lint and Formatting" project. I just wanted to check if I can still submit a patch for this.
Reporter | ||
Comment 2•4 years ago
|
||
Sure :)
Assignee | ||
Comment 3•4 years ago
|
||
Thank You! I'll get on it right away.
Assignee | ||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D82507
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ff64dd0c6510 mozlint/pylint - Enable 'no-else-return' rule r=sylvestre https://hg.mozilla.org/integration/autoland/rev/4a5fa0f58c63 Address the defects found by the pylint/no-else-return rule. r=sylvestre
Comment 8•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ff64dd0c6510
https://hg.mozilla.org/mozilla-central/rev/4a5fa0f58c63
Updated•2 years ago
|
Description
•