Even with Closure-linter v2.2.1 I've got this 2 errors:
I always got this bug with "fixjsstyle" -> "
Traceback (most recent call last):
File "/usr/local/bin/fixjsstyle", line 8, in
load_entry_point('closure-linter==2.2.1', 'console_scripts',
'fixjsstyle')()
File "build/bdist.macosx-10.6-universal/egg/closure_linter/
fixjsstyle.py", line 38, in main
File "build/bdist.macosx-10.6-universal/egg/closure_linter/common/
simplefileflags.py", line 186, in GetFileList
File "build/bdist.macosx-10.6-universal/egg/closure_linter/common/
simplefileflags.py", line 126, in GetAllSpecifiedFiles
File "build/bdist.macosx-10.6-universal/egg/closure_linter/common/
simplefileflags.py", line 76, in _GetUserSpecifiedFiles
TypeError: 'NoneType' object is unsubscriptable"
And sometimes this one with gjslint -> "
Traceback (most recent call last):
File "build/bdist.macosx-10.6-universal/egg/closure_linter/
checkerbase.py", line 190, in CheckLines
self.__metadata_pass.Process(token)
File "build/bdist.macosx-10.6-universal/egg/closure_linter/
ecmametadatapass.py", line 395, in Process
self._ProcessToken()
File "build/bdist.macosx-10.6-universal/egg/closure_linter/
ecmametadatapass.py", line 412, in _ProcessToken
context = (self._ProcessContext() or self._context)
File "build/bdist.macosx-10.6-universal/egg/closure_linter/
ecmametadatapass.py", line 291, in _ProcessContext
if keyword_token.string in ('if', 'for', 'while'):
AttributeError: 'NoneType' object has no attribute 'string'"
On 2 sep, 09:28, Steven Hall <
stvh...@gmail.com> wrote:
> I thought I'd just add some more instructions for this. I'm on
> Windows, though it should work across other platforms.
>
> When you call easy_install from the command line, add the -Z flag.
> This will ensure the Linter is unzipped and you can access the files.
> So that's:
>
> Linux:
> $ cd /tmp
> /tmp$ sudo easy_install -Zhttp://
closure-linter.googlecode.com/files/closure_linter-latest.tar.gz
> > easy_install -Zhttp://
closure-linter.googlecode.com/files/closure_linter-latest.tar.gz