(maint) Add rubocop for testing

This commit adds the rubocop gem, a rubocop rake task and an initial rubocop
configuration file in prepartion for using rubocop in CI.

This commit also adds a rubocop todo file that exempts existing files from
violations.
This commit is contained in:
Glenn Sarti 2017-02-09 13:30:29 -08:00
parent 71a5af9e88
commit 85a2fa4f20
4 changed files with 578 additions and 0 deletions

View file

@ -1,4 +1,5 @@
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
desc 'Run rspec tests with coloring.'
RSpec::Core::RakeTask.new(:test) do |t|
@ -12,4 +13,9 @@ RSpec::Core::RakeTask.new(:junit) do |t|
t.pattern = 'spec/'
end
desc 'Run RuboCop'
RuboCop::RakeTask.new(:rubocop) do |task|
task.options << '--display-cop-names'
end
task :default => [:test]