Permalink
Browse files

Modify cane in Rakefile to use .cane file.

This allows a developer to run the `cane` command as well as `rake cane`
or `rake quality`.
  • Loading branch information...
1 parent 5426e92 commit 94949eb9fd267ebae5b64d4b2ad9224c549738fe @fnichol fnichol committed Dec 23, 2013
Showing with 6 additions and 16 deletions.
  1. +5 −0 .cane
  2. +1 −16 Rakefile
View
5 .cane
@@ -0,0 +1,5 @@
+--abc-max 20
+--style-measure 120
+--abc-exclude Kitchen::ThorTasks#define
+--style-exclude lib/vendor/**/*.rb
+--doc-exclude lib/vendor/**/.rb
View
@@ -30,22 +30,7 @@ unless RUBY_ENGINE == 'jruby'
desc "Run cane to check quality metrics"
Cane::RakeTask.new do |cane|
- cane.abc_max = 20
- cane.abc_exclude = %w(
- Kitchen::RakeTasks#define
- Kitchen::ThorTasks#define
- Kitchen::CLI#pry_prompts
- Kitchen::CLI#debug_instance
- Kitchen::Instance#synchronize_or_call
- Kitchen::Driver::SSHBase#converge
- )
- cane.style_exclude = %w(
- lib/vendor/hash_recursive_merge.rb
- )
- cane.doc_exclude = %w(
- lib/vendor/hash_recursive_merge.rb
- )
- cane.style_measure = 160
+ cane.canefile = './.cane'
end
Tailor::RakeTask.new do |task|

0 comments on commit 94949eb

Please sign in to comment.