Skip to content

Commit

Permalink
Don't reinvent the wheel - foodcritic tags
Browse files Browse the repository at this point in the history
Instead of parsing a bespoke .foodcritic.yml-file, make use of the OOTB .foodcritic file
  • Loading branch information
djoos committed Aug 23, 2016
1 parent 87d620c commit 55ea2bd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions .foodcritic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
~FC037
5 changes: 0 additions & 5 deletions .foodcritic.yml

This file was deleted.

8 changes: 1 addition & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ module ReleaseCommands
end
end

def self.foodcritic_options
YAML.load(File.read('.foodcritic.yml'))
end

def self.pre_publish
GitCommands.ensure_branch('master')

Expand Down Expand Up @@ -214,9 +210,7 @@ namespace :style do
RuboCop::RakeTask.new(:ruby)

desc 'Run Chef style checks (FoodCritic)'
FoodCritic::Rake::LintTask.new(:chef) do |task|
task.options = ReleaseCommands.foodcritic_options
end
FoodCritic::Rake::LintTask.new(:chef)
end

desc 'Run all syntax/lint checks'
Expand Down

0 comments on commit 55ea2bd

Please sign in to comment.