JS syntax checking is broken in packaging

Bug #742619 reported by Benji York
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Unassigned
pocket-lint
Fix Released
High
Unassigned

Bug Description

Some browsers (IE in particular) can't handle trailing commas on the last element of a list or object literal. Our linter (as invoked by "make lint" doesn't' report such trailing commas.

To reproduce open up a JS file (e.g., lib/lp/registry/javascript/structural-subscription.js), add a comma to the last element in a literal, and do "make lint". No lint will be reported.

Curtis Hovey (sinzui)
affects: launchpad → pocket-lint
Curtis Hovey (sinzui)
Changed in pocket-lint:
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui)
Changed in pocket-lint:
milestone: none → 0.5.6
Changed in launchpad:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Curtis Hovey (sinzui) wrote :

I think the JavascriptChecker is no longer passing the the arguments are not being passed correctly to js interpreter. I will explore the command directly to determine what the python needs to do when calling the subproc.

Revision history for this message
Curtis Hovey (sinzui) wrote :

BTW, This means that no js syntax is being analysed. http://www.jslint.com/lint.html reports several issues that need looking into in some of the js files.

Revision history for this message
Curtis Hovey (sinzui) wrote :

The script being linted is not being quoted properly in the subproc.

Curtis Hovey (sinzui)
Changed in pocket-lint:
status: Triaged → In Progress
assignee: nobody → Curtis Hovey (sinzui)
Revision history for this message
Curtis Hovey (sinzui) wrote :

The js files (pocketlint/jsreport.js, pocketlink/contrib/fulljslint) are not in the package; bad MANIFEST.in.

Curtis Hovey (sinzui)
Changed in pocket-lint:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
summary: - "make lint" doesn't compaint about trailing commas
+ JS syntax checking is broken in packaging
Curtis Hovey (sinzui)
Changed in pocket-lint:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → Fix Released
Curtis Hovey (sinzui)
Changed in pocket-lint:
assignee: Curtis Hovey (sinzui) → nobody
Changed in launchpad:
assignee: Curtis Hovey (sinzui) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.