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)

defect
Not set
normal

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.
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+
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.
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
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: