From 2148e6d43a2cbb7f7aff37cc4c67a517ff2cdcc6 Mon Sep 17 00:00:00 2001 From: Josh Hagins Date: Wed, 4 Mar 2015 01:52:42 -0500 Subject: [PATCH] Add rubocop task to Rakefile --- Rakefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'