Elusive JavaScript lint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Jeroen T. Vermeulen |
Bug Description
This has been confounding us for ages now: sometimes our lint checks report lint in our JavaScript, sometimes they don't.
Here's the lint I just saw reported in trunk r3185:
«
./src/maasserve
70: Expected ';' and instead saw 'this'.
191: Expected '===' and instead saw '=='.
195: Expected ';' and instead saw '}'.
197: Expected ';' and instead saw '}'.
223: Expected ';' and instead saw 'if'.
244: Expected '{' and instead saw 'this'.
246: Expected '{' and instead saw 'this'.
249: Expected '{' and instead saw 'this'.
251: Expected '{' and instead saw 'this'.
254: Expected '===' and instead saw '=='.
./src/maasserve
183: Unexpected ','.
196: Unexpected ','.
209: Unexpected ','.
210: Unexpected ','.
330: Unexpected ','.
335: Unexpected ','.
»
Some of this looks like it may affect browser compatibility — definitely the ones in the test.
Related branches
- Christian Reis (community): Approve
- Blake Rouse (community): Approve
-
Diff: 47 lines (+6/-6)1 file modifiedsrc/maasserver/static/js/tests/test_image_views.js (+6/-6)
- Newell Jensen (community): Approve
-
Diff: 103 lines (+25/-16)2 files modifiedrequired-packages/dev (+1/-0)
src/maasserver/static/js/image_views.js (+24/-16)
Changed in maas: | |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
status: | Triaged → In Progress |
milestone: | none → 1.7.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Turns out you get these extra lint checks if you have gjs installed.