google / closure-linter

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

Ignore folder #102

Closed TomBarryy closed 8 years ago

TomBarryy commented 8 years ago

Could there be a parameter to ignore a specific sub directory when recursively linting?

For example running gjslint -r RootDirectory --ignore SubDirectoryOne --ignore SubDirectoryTwo would use the linter on all files in the RootDirectory except for those contained in SubDirectoryOne and SubDirectoryTwo etc.

If this is already a feature can you point me to docs on it's usage?

rumpeltux commented 8 years ago

The -r flag is there just for convenience, if you have more complicated logic you’ll need to build the filelist yourself, e.g. using something like gjslint $(find -path ./ignore -prune -o -name \*.js)

TomBarryy commented 8 years ago

Ok thanks, I was hoping there would be some in built options for that.