google / closure-linter

Automatically exported from code.google.com/p/closure-linter
Apache License 2.0
109 stars 37 forks source link

Allow for -m and directory execution #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The attached patch allows the Closure Linter to be executed from a checkout in 
two ways. One, is you can pass the directory location. Two, you use Python's -m 
option. With either option you specify either 'lint' or 'fix' as the first 
argument to Python to choose whether to run `gjslint` or `fixjsstyle`, 
respectively.

So, specifying the directory to lint a file `foo.js` is `python closure-linter 
lint foo.js`. Assuming you are in the checkout directory and want do use the -m 
option, `python -m closure_linter lint foo.js`.

Original issue reported on code.google.com by bcannon on 2 Oct 2010 at 11:57

Attachments: