mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Switch to chefstyle in test:lint task
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
c8836e6856
commit
a141870d19
1 changed files with 4 additions and 1 deletions
5
Rakefile
5
Rakefile
|
@ -61,8 +61,11 @@ namespace :test do
|
|||
task default: [:accept_license]
|
||||
|
||||
begin
|
||||
require "chefstyle"
|
||||
require "rubocop/rake_task"
|
||||
RuboCop::RakeTask.new(:lint)
|
||||
RuboCop::RakeTask.new(:lint) do |task|
|
||||
task.options += ["--display-cop-names", "--no-color", "--parallel"]
|
||||
end
|
||||
rescue LoadError
|
||||
puts "rubocop is not available. Install the rubocop gem to run the lint tests."
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue