Skip to content

Instantly share code, notes, and snippets.

@skwashd
Created November 27, 2011 06:36
Show Gist options
  • Save skwashd/1397096 to your computer and use it in GitHub Desktop.
Save skwashd/1397096 to your computer and use it in GitHub Desktop.
Run drush coder-review over all modules in a subdirectory. Some commonly used directories are excluded. This isn't perfect, but it will do.
for mod in $(find -maxdepth 2 -type d | egrep -v '\(.|.git|js|css|model|include|plugins\)$'); do name=$(echo $mod | sed -e 's/^.*\/\(.*\)$/\1/'); echo Processing $name; drush coder-review style comment security sql $name; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment