Permalink
Browse files

lower cane ABC complexity threshold from 15 to 10

  • Loading branch information...
1 parent ef013d9 commit 57604c563b8000689fcfe623fd5b9f23e66a3b5f @mislav mislav committed Jun 5, 2012
Showing with 5 additions and 4 deletions.
  1. +2 −2 Gemfile
  2. +3 −2 Rakefile
View
@@ -1,8 +1,8 @@
source 'http://rubygems.org'
-platforms :ruby_19 do
+platforms :mri_19 do
gem 'simplecov'
- gem 'cane'
+ gem 'cane', '>= 0.3'
end
gem 'json', :platforms => [:ruby_18, :jruby]
View
@@ -1,4 +1,4 @@
-if defined? RUBY_ENGINE and 'ruby' == RUBY_ENGINE and '1.9.3' == RUBY_VERSION
+if defined? RUBY_ENGINE and 'ruby' == RUBY_ENGINE and '1.9' < RUBY_VERSION
task :default => [:enable_coverage, :spec, :test, :quality]
else
task :default => [:spec, :test]
@@ -20,7 +20,8 @@ end
task :quality do
sh 'cane',
+ '--abc-max=10',
'--style-measure=100',
'--gte=coverage/covered_percent,99',
- '--max-violations=2' # TODO: remove for cane > 1.0.0
+ '--max-violations=2'
end

0 comments on commit 57604c5

Please sign in to comment.