Skip to content

Instantly share code, notes, and snippets.

@jewelsjacobs
Last active July 18, 2018 21:07
Show Gist options
  • Save jewelsjacobs/5718645 to your computer and use it in GitHub Desktop.
Save jewelsjacobs/5718645 to your computer and use it in GitHub Desktop.
[Fixes Closure Linter] #lint #automation
#!/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