public
Created

A lenient cane script for a Rails project

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.