Closed Bug 1243182 Opened 8 years ago Closed 8 years ago

Enable eslint "space-infix-ops" rule 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, 1 obsolete file)

The rule means spaces around infix operations are required.

In other words, things like these are prevented:
> var x=0;
> a+b

This helps enforce coding style.
Assignee: nobody → cykesiopka.bmo
Status: NEW → ASSIGNED
Attachment #8716151 - Flags: review?(dkeeler)
Comment on attachment 8716151 [details] [diff] [review]
bug1243182_enable-space-infix-ops_v1.patch

Review of attachment 8716151 [details] [diff] [review]:
-----------------------------------------------------------------

Great!

::: security/manager/pki/resources/content/certManager.js
@@ +193,5 @@
>  /**
>   * Returns true if nothing in the given cert tree is selected or if the
>   * selection includes a container. Returns false otherwise.
>   *
> + * @param {nsCertTree} certTree

I imagine we still want to call this an nsICertTree, since that's the interface, right?

::: security/manager/pki/resources/content/viewCertDetails.js
@@ +219,1 @@
>        AddUsage(usageList[i],verifyInfoBox);

Space after comma? (I guess that's another rule we'll have to enable...)
Attachment #8716151 - Flags: review?(dkeeler) → review+
Thanks for the review!

(In reply to David Keeler [:keeler] (use needinfo?) from comment #2)
> I imagine we still want to call this an nsICertTree, since that's the
> interface, right?

On second thought, yeah, putting the interface here makes more sense.

> ::: security/manager/pki/resources/content/viewCertDetails.js
> @@ +219,1 @@
> >        AddUsage(usageList[i],verifyInfoBox);
> 
> Space after comma? (I guess that's another rule we'll have to enable...)

Yeah, another patch sitting in my queue. I filed Bug 1246365 for this.
+ Address nsICertTree comment
Attachment #8716151 - Attachment is obsolete: true
Attachment #8716594 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/18b9f0924b4a
Status: ASSIGNED → RESOLVED
Closed: 8 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: