Add rubocop task to Rakefile

This commit is contained in:
Josh Hagins 2015-03-04 01:52:42 -05:00
parent d3ba0471e0
commit 2148e6d43a

View file

@ -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'