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|
17 desc 'Run all style checks'
18 task style: ['style:chef', 'style:ruby']
20 desc 'Run ChefSpec examples'
21 RSpec::Core::RakeTask.new(:spec)
23 task default: ['style', 'spec']