Skip to content

Instantly share code, notes, and snippets.

@therealadam
Created February 19, 2012 04:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therealadam/1862005 to your computer and use it in GitHub Desktop.
Save therealadam/1862005 to your computer and use it in GitHub Desktop.
A lenient cane script for a Rails project
#!/bin/sh
max_violations=0 # We run a tight ship...
complexity_max=60 # ...but we've got stuff to clean up
cane \
--max-violations $max_violations \
--abc-glob '{app,lib}/**/*.rb' \
--abc-max=$complexity_max \
--no-style \
--no-doc
# TODO include SimpleCov metrics
# TODO start tracking style and docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment