summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-12 15:00:00 +0000
committerThom May <thom@chef.io>2016-01-12 15:00:00 +0000
commite3400c0b6c53c5ba11657f21abffb1f72408d4a9 (patch)
treedbd1ab964dab36596b1a7a55229b8f731530e360 /Rakefile
parent0944320b72ee1ab16a18a149f5ecb743ace0c0d3 (diff)
downloadchef-e3400c0b6c53c5ba11657f21abffb1f72408d4a9.tar.gz
Per RFC 64, do style checking of the Chef repo
This commit enables ChefStyle, but with no active cops. Cops will be added per the RFC (one at a time, with a supporting PR to this repo) as we go on.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 25ad13f097..9fe1147928 100644
--- a/Rakefile
+++ b/Rakefile
@@ -45,6 +45,13 @@ task :register_eventlog do
end
end
+
+require "chefstyle"
+require "rubocop/rake_task"
+RuboCop::RakeTask.new(:style) do |task|
+ task.options += ["--display-cop-names", "--no-color"]
+end
+
begin
require 'yard'
DOC_FILES = [ "README.rdoc", "LICENSE", "spec/tiny_server.rb", "lib/**/*.rb" ]