VOOZH about

URL: https://bugzilla.mozilla.org/2031357

⇱ 2031357 - Fix a ruff warning in js/src/frontend/align_stack_comment.py


Closed Bug 2031357 Opened 2 months ago Closed 1 month ago

Fix a ruff warning in js/src/frontend/align_stack_comment.py

Fix a ruff warning in js/src/frontend/align_stack_comment.py
Developer Infrastructure
Lint and Formatting
unspecified
All
All
RESOLVED FIXED
RESOLVED
FIXED
152 Branch
Accessibility Severity
Tracking Status
firefox152 --- fixed
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
firefox-esr115
firefox-esr140
firefox-esr153
firefox152
firefox153
firefox154
---
[lang=python]
QA Whiteboard:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 

Filing as a good first bug to learn workflows.

js/src/frontend/align_stack_comment.py
 41:13 warning `for` loop variable `line` overwritten by assignment target PLW2901 (ruff)

Link to the code:
https://searchfox.org/mozilla-central/source/js/src/frontend/align_stack_comment.py#41

To run the linter:

./mach lint -W -l ruff js/src/frontend/align_stack_comment.py

As the change is trivial, it is just to learn how to contribute to Firefox.

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Mentor: sledru
Assignee: nobody → ffhpno1
Status: NEW → ASSIGNED

Comment 2

1 month ago
Pushed by arai_a@mac.com: https://github.com/mozilla-firefox/firefox/commit/22e548652af6 https://hg.mozilla.org/integration/autoland/rev/2ff65b4325d7 Fix ruff PLW2901 by not overwriting loop variable in align_stack_comment.py. r=arai

Comment 3

1 month ago
bugherder
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.