mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(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:
parent
71a5af9e88
commit
85a2fa4f20
4 changed files with 578 additions and 0 deletions
6
Rakefile
6
Rakefile
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue