Closed
Bug 1460100
Opened 7 years ago
Closed 3 years ago
Add ESLint rule to prevent use of nsIScriptableUnicodeConverter
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Tracking
(firefox96 fixed)
RESOLVED
FIXED
96 Branch
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: kmag, Assigned: onuohaoluebube05, Mentored)
References
Details
(Whiteboard: [lang=js][good-next-bug])
Attachments
(1 file)
nsIScriptableUnicodeConverter is going away, but that fact unfortunately does not stop people from cargo culting existing uses of it for new code.
We should add a rule to point people who try to use it to TextEncoder().
Updated•6 years ago
|
Version: Version 3 → 3 Branch
Comment 1•3 years ago
|
||
I'm happy to mentor this. Here's what I think we should do:
- Create a new rule, i.e.
reject-scriptableunicodeconverter
, this can be based on the existing reject-osfile rule. This should largely be duplicating the existing references toreject-osfile
and then updating the rule & test.- The rule should pick up on the use of
Ci.nsIScriptableUnicodeConverter
in code.
- The rule should pick up on the use of
- The rule can be tested via the unit tests
- The rule should also be tested against the full tree using
./mach eslint --warnings
(note there are currently other warnings output as well at the moment. - Ensure documentation is added similar to the existing .rst file, documentation can be checked via
./mach doc
Mentor: standard8
Whiteboard: [lang=js][good-next-bug]
Assignee | ||
Comment 2•3 years ago
|
||
Hello,
Should the rules be in the same files with the "reject-osfile" or in the a separate file in the same folder.
Thanks
Flags: needinfo?(standard8)
Comment 3•3 years ago
|
||
As discussed on Matrix, these should be a separate file in the same folder.
Flags: needinfo?(standard8)
Assignee | ||
Comment 4•3 years ago
|
||
Updated•3 years ago
|
Assignee: nobody → onuohaoluebube05
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•3 years ago
|
||
I just submitted a patch for this bug. Please review and guide me on the next step forward.
Thanks.
Flags: needinfo?(standard8)
Assignee | ||
Comment 6•3 years ago
|
||
Hello,
I actually forgot to do hg add
Have done that.
Thanks
Comment 7•3 years ago
|
||
No need to request info / comment when submitting a patch - review requests are automatically notified to us.
Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3c2ab42e8391
Added ESLint rule to prevent use of nsIScriptableUnicodeConverter r=Standard8
Comment 9•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox96:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•