1 require 'rspec/core/rake_task'
2 require 'rubocop/rake_task'
6 desc 'Run Ruby style checks'
7 RuboCop::RakeTask.new(:ruby)
9 desc 'Run Chef style checks'
10 FoodCritic::Rake::LintTask.new(:chef) do |t|
18 desc 'Run all style checks'
19 task style: ['style:chef', 'style:ruby']
21 desc 'Run ChefSpec examples'
22 RSpec::Core::RakeTask.new(:spec)
24 task default: ['style', 'spec']