diff --git a/Rakefile b/Rakefile index bc76c8a61..fb2e80351 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ require 'rake/testtask' require 'rspec/core/rake_task' +require 'rubocop/rake_task' Rake::TestTask.new do |t| t.name = 'minitest' @@ -9,8 +10,13 @@ end RSpec::Core::RakeTask.new(:spec) +RuboCop::RakeTask.new do |t| + t.name = 'rubocop' + t.options = ['--force-exclusion'] +end + task :test => [:minitest, :spec] -task :default => :test +task :default => [:test, :rubocop] task :console do sh 'irb -Ilib -rvendor/homebrew-fork/global -rhbc'