Merge lp://staging/~adiroiban/pocket-lint/1168854-google-closure into lp://staging/pocket-lint
Proposed by
Adi Roiban
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 510 | ||||
Proposed branch: | lp://staging/~adiroiban/pocket-lint/1168854-google-closure | ||||
Merge into: | lp://staging/pocket-lint | ||||
Diff against target: |
169 lines (+101/-5) 3 files modified
pocketlint/formatcheck.py (+53/-4) pocketlint/tests/__init__.py (+8/-0) pocketlint/tests/test_javascript.py (+40/-1) |
||||
To merge this branch: | bzr merge lp://staging/~adiroiban/pocket-lint/1168854-google-closure | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey | code | Approve | |
Adi Roiban (community) | Needs Resubmitting | ||
Review via email: mp+158787@code.staging.launchpad.net |
Description of the change
This is the initial code for supporting Google Closure Linter.
Since this dependes on Google Closure Linter, the tests are skip if closure_linter is not found.
Installing closure linter is a bit of a pain, since there is no PyPi package.
Here are the steps for testing with closure_linter
virtualenv venv
. venv/bin/activate
svn checkout http://
cd closure-
python setup.py install
cd ..
python test.py
To post a comment you must log in.
The tests could have a guard at the top. I think some css tests do this...and I see your function does this. The test can do the same.
I am concerned about the change on lines 40-41. I added this to test under python3. Did the tests pass under py2 and py3 after this change?
What does closure_linter provide that jslint does not? Am I going to see duplicate warnings and errors? Do jsline and closure_lint disagree about style, making it impossible to write without warngings? I think this provides jsdoc checking too. http:// anton.averin. pro/2012/ 08/17/js_ quality_ tools_jshint_ jslint_ gjslinter/ implies there could be disagreement, and that it is not going to catch the errors that jslint does.