Last active
July 18, 2018 21:07
-
-
Save jewelsjacobs/5718645 to your computer and use it in GitHub Desktop.
[Fixes Closure Linter] #lint #automation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################################## | |
## Fixes closure linter ## | |
## (https://developers.google.com/closure/utilities/) ## | |
## errors in JavaScript files. Requires closure ## | |
## compiler ## | |
## (https://developers.google.com/closure/compiler/) ## | |
## ## | |
## Usage: ## | |
## fixjs /path/myfile.js or ## | |
## fixjs /path ## | |
######################################################## | |
for file in $(find $1 -name "*.js"); | |
do | |
echo $file | |
fixjsstyle --strict --jsdoc --custom_jsdoc_tags=file,namespace,memberof,function,inner,public,private,protected,todo $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment