Permalink
Browse files

Foodcritic: enable rule FC042

Prefer 'include_recipe' to 'require_recipe' (deprecated)
  • Loading branch information...
1 parent 19744a6 commit 83e0c072e2d1e4010a718664ab4722c77c663269 @gildegoma gildegoma committed May 20, 2013
View
@@ -7,7 +7,7 @@ task :default => [:foodcritic]
FoodCritic::Rake::LintTask.new do |t|
t.files = [ 'ci_environment', 'worker_host' ]
t.options = {
- :fail_tags => %w( ~FC002 ~FC003 ~FC004 ~FC005 ~FC007 ~FC011 ~FC012 ~FC013 ~FC014 ~FC015 ~FC016 ~FC017 ~FC019 ~FC023 ~FC024 ~FC031 ~FC033 ~FC042 ~FC043 ~FC045 )
+ :fail_tags => %w( ~FC002 ~FC003 ~FC004 ~FC005 ~FC007 ~FC011 ~FC012 ~FC013 ~FC014 ~FC015 ~FC016 ~FC017 ~FC019 ~FC023 ~FC024 ~FC031 ~FC033 ~FC043 ~FC045 )
}
end
@@ -1,4 +1,4 @@
-require_recipe 'users'
+include_recipe 'users'
package "sudo" do
action :upgrade
@@ -1,5 +1,5 @@
-require_recipe 'runit'
-require_recipe 'jruby'
+include_recipe 'runit'
+include_recipe 'jruby'
users = if Chef::Config[:solo]
node[:users]
@@ -1,5 +1,5 @@
-require_recipe 'runit'
-require_recipe 'jruby'
+include_recipe 'runit'
+include_recipe 'jruby'
users = if Chef::Config[:solo]
node[:users]
@@ -1,4 +1,4 @@
-require_recipe 'collectd'
+include_recipe 'collectd'
collectd_plugin "load"
@@ -1,4 +1,4 @@
-require_recipe 'collectd'
+include_recipe 'collectd'
collectd_plugin "load"

0 comments on commit 83e0c07

Please sign in to comment.