$ gjslint invoice.js
----- FILE : /home/peterbe/dev/DJANGO/lc/media/js/invoice.js -----
Line 2, E:0002: Missing space before "("
Line 4, E:0002: Missing space before "("
Line 9, E:0002: Missing space before "("
Line 10, E:0002: Missing space before "("
Line 19, E:0001: Extra space at end of line
Found 5 errors, including 0 new errors, in 1 files (0 files OK).
Some of the errors reported by GJsLint may be auto-fixable using the
script
fixjsstyle. Please double check any changes it makes and report any
bugs. The
script can be run by executing:
fixjsstyle invoice.js
$ fixjsstyle invoice.js
Traceback (most recent call last):
File "/usr/local/bin/fixjsstyle", line 9, in <module>
load_entry_point('closure-linter==2.2.1', 'console_scripts',
'fixjsstyle')()
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/fixjsstyle.py", line 38, in main
files = fileflags.GetFileList(argv, 'JavaScript', ['.js'])
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/common/simplefileflags.py", line 186, in
GetFileList
return sorted(GetAllSpecifiedFiles(argv, suffixes))
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/common/simplefileflags.py", line 126, in
GetAllSpecifiedFiles
files = _GetUserSpecifiedFiles(argv, suffixes)
File "/usr/local/lib/python2.6/dist-packages/closure_linter-2.2.1-
py2.6.egg/closure_linter/common/simplefileflags.py", line 76, in
_GetUserSpecifiedFiles
files = argv[1:] or []
TypeError: 'NoneType' object is unsubscriptable
If you want to see the file itself, it's here:
http://static.peterbe.com/invoice.js