Closed Bug 1968301 Opened 1 year ago Closed 1 year ago

Fix a ruff warning in config/check_spidermonkey_style.py

Categories

(Developer Infrastructure :: Lint and Formatting, task)

task
Not set
normal

Tracking

(firefox143 fixed)

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: Sylvestre, Assigned: viet-hung.nhu)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=python])

Attachments

(1 external file)

Filling as a good first bug to learn workflows.

config/check_spidermonkey_style.py
766:22: warning Consider merging multiple comparisons: `included_kind in (FileKind.H, FileKind.INL_H)`. Use a `set` if the elements are hashable. PLR1714 (ruff)

Link to the code:
https://searchfox.org/mozilla-central/source/config/check_spidermonkey_style.py#766
To run the linter:

./mach lint -W -l ruff config/check_spidermonkey_style.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.

Assignee: nobody → viet-hung.nhu
Status: NEW → ASSIGNED

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:viet-hung.nhu, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(viet-hung.nhu)
Flags: needinfo?(sledru)
Flags: needinfo?(sledru)
Flags: needinfo?(viet-hung.nhu)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: