Rakefile in missing_validators-1.1.0 vs Rakefile in missing_validators-2.0.0
- old
+ new
@@ -1,8 +1,14 @@
#!/usr/bin/env rake
-require "bundler/gem_tasks"
-
+require 'bundler/gem_tasks'
+require 'cane/rake_task'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
-task :default => :spec
+task default: :spec
+
+desc 'Run cane to check quality metrics'
+Cane::RakeTask.new(:quality) do |cane|
+ cane.abc_max = 10
+ cane.no_style = true
+end