Closed
Bug 1246365
Opened 9 years ago
Closed 9 years ago
Enable eslint "comma-spacing" and "semi" rules for PSM
Categories
(Core :: Security: PSM, defect)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: Cykesiopka, Assigned: Cykesiopka)
References
Details
Attachments
(1 file)
comma-spacing enforces having spaces after commas (not before etc).
semi enforces semicolons at the end of statements.
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/35467/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/35467/
Attachment #8720784 -
Flags: review?(dkeeler)
Comment on attachment 8720784 [details]
MozReview Request: Bug 1246365 - Enable eslint "comma-spacing" and "semi" rules for PSM. r=keeler
https://reviewboard.mozilla.org/r/35467/#review32197
Great - LGTM with comment about braces addressed.
::: security/manager/pki/resources/content/certpicker.js:56
(Diff revision 1)
> -function doOK()
> +function doOK() {
This brace placement seems inconsistent with the rest of this file. Should we defer these changes to if/when we enable a rule that applies to these braces?
::: security/manager/pki/resources/content/choosetoken.js:29
(Diff revision 1)
> -function doOK()
> +function doOK() {
Same here, etc.
Attachment #8720784 -
Flags: review?(dkeeler) → review+
Assignee | ||
Comment 3•9 years ago
|
||
https://reviewboard.mozilla.org/r/35467/#review32197
Thanks for the review!
> This brace placement seems inconsistent with the rest of this file. Should we defer these changes to if/when we enable a rule that applies to these braces?
I deferred the brace changes. My original plan was to make the changes here to save some future review. However, it looks moving the braces here doesn't make a huge difference, and I'm wavering on whether we should even bother turning on the rule.
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8720784 [details]
MozReview Request: Bug 1246365 - Enable eslint "comma-spacing" and "semi" rules for PSM. r=keeler
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/35467/diff/1-2/
Attachment #8720784 -
Attachment description: MozReview Request: Bug 1246365 - Enable eslint "comma-spacing" and "semi" rules for PSM. → MozReview Request: Bug 1246365 - Enable eslint "comma-spacing" and "semi" rules for PSM. r=keeler
Assignee | ||
Comment 5•9 years ago
|
||
Keywords: checkin-needed
Keywords: checkin-needed
Comment 7•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•