foodcritic 11.0.0 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -1
  3. data/README.md +1 -1
  4. data/chef_dsl_metadata/chef_12.20.3.json +20067 -0
  5. data/lib/foodcritic/command_line.rb +4 -0
  6. data/lib/foodcritic/linter.rb +2 -2
  7. data/lib/foodcritic/rules/fc080.rb +1 -1
  8. data/lib/foodcritic/rules/fc081.rb +2 -2
  9. data/lib/foodcritic/rules/fc082.rb +1 -1
  10. data/lib/foodcritic/rules/fc083.rb +1 -1
  11. data/lib/foodcritic/rules/fc086.rb +10 -0
  12. data/lib/foodcritic/rules/fc087.rb +7 -0
  13. data/lib/foodcritic/rules/fc088.rb +11 -0
  14. data/lib/foodcritic/rules/fc089.rb +11 -0
  15. data/lib/foodcritic/version.rb +1 -1
  16. data/spec/functional/fc086_spec.rb +36 -0
  17. data/spec/functional/fc087_spec.rb +29 -0
  18. data/spec/functional/fc088_spec.rb +18 -0
  19. data/spec/functional/fc089_spec.rb +23 -0
  20. data/spec/regression/expected/aix.txt +1 -1
  21. data/spec/regression/expected/apt.txt +4 -0
  22. data/spec/regression/expected/aws.txt +3 -3
  23. data/spec/regression/expected/bluepill.txt +6 -0
  24. data/spec/regression/expected/chef-client.txt +2 -2
  25. data/spec/regression/expected/chef-vault.txt +2 -0
  26. data/spec/regression/expected/chef.txt +67 -67
  27. data/spec/regression/expected/cron.txt +1 -0
  28. data/spec/regression/expected/database.txt +7 -1
  29. data/spec/regression/expected/drbd.txt +1 -1
  30. data/spec/regression/expected/dynect.txt +4 -0
  31. data/spec/regression/expected/firewall.txt +3 -0
  32. data/spec/regression/expected/gunicorn.txt +3 -0
  33. data/spec/regression/expected/homebrew.txt +1 -0
  34. data/spec/regression/expected/jetty.txt +1 -1
  35. data/spec/regression/expected/libarchive.txt +1 -0
  36. data/spec/regression/expected/maven.txt +1 -0
  37. data/spec/regression/expected/mysql.txt +4 -4
  38. data/spec/regression/expected/openssh.txt +1 -1
  39. data/spec/regression/expected/partial_search.txt +1 -0
  40. data/spec/regression/expected/perl.txt +1 -0
  41. data/spec/regression/expected/postfix.txt +1 -1
  42. data/spec/regression/expected/rsync.txt +1 -0
  43. data/spec/regression/expected/rsyslog.txt +1 -1
  44. data/spec/regression/expected/smokeping.txt +3 -1
  45. data/spec/regression/expected/sql_server.txt +1 -1
  46. data/spec/regression/expected/sudo.txt +2 -0
  47. data/spec/regression/expected/transmission.txt +2 -0
  48. data/spec/regression/expected/ufw.txt +1 -1
  49. data/spec/regression/expected/users.txt +4 -2
  50. data/spec/regression/expected/xml.txt +1 -1
  51. data/spec/regression/expected/yum.txt +2 -0
  52. data/spec/unit/command_line_spec.rb +14 -0
  53. data/spec/unit/linter_spec.rb +1 -1
  54. metadata +12 -3
@@ -46,6 +46,10 @@ module FoodCritic
46
46
  "of Chef.") do |c|
47
47
  @options[:chef_version] = c
48
48
  end
49
+ opts.on("-r", "--rule-file PATH",
50
+ "Specify file with rules to be used or ignored ") do |c|
51
+ @options[:rule_file] = c
52
+ end
49
53
  opts.on("-B", "--cookbook-path PATH",
50
54
  "Cookbook path(s) to check.") do |b|
51
55
  @options[:cookbook_paths] << b
@@ -9,7 +9,7 @@ module FoodCritic
9
9
 
10
10
  # The default version that will be used to determine relevant rules. This
11
11
  # can be over-ridden at the command line with the `--chef-version` option.
12
- DEFAULT_CHEF_VERSION = "12.19.36"
12
+ DEFAULT_CHEF_VERSION = "12.20.3"
13
13
  attr_reader :chef_version
14
14
 
15
15
  # Perform a lint check. This method is intended for use by the command-line
@@ -201,7 +201,7 @@ module FoodCritic
201
201
 
202
202
  def cookbook_tags(file)
203
203
  tags = []
204
- fc_file = "#{cookbook_dir(file)}/.foodcritic"
204
+ fc_file = @options[:rule_file] || "#{cookbook_dir(file)}/.foodcritic"
205
205
  if File.exist? fc_file
206
206
  begin
207
207
  tag_text = File.read fc_file
@@ -1,4 +1,4 @@
1
- rule "FC080", "User resource uses supports property" do
1
+ rule "FC080", "User resource uses deprecated supports property" do
2
2
  tags %w{deprecated chef13}
3
3
  recipe do |ast|
4
4
  find_resources(ast, type: "user").xpath(%q{descendant::fcall[ident/@value='supports']|descendant::command[ident/@value='supports']})
@@ -1,5 +1,5 @@
1
- rule "FC081", "Cookbook depends on the partial_search cookbook" do
2
- tags %w{chef12}
1
+ rule "FC081", "Cookbook depends on the deprecated partial_search cookbook" do
2
+ tags %w{chef12 deprecated}
3
3
  metadata do |ast, filename|
4
4
  [file_match(filename)] if declared_dependencies(ast).include?("partial_search")
5
5
  end
@@ -1,4 +1,4 @@
1
- rule "FC082", "node.set or node.set_unless used to set node attributes" do
1
+ rule "FC082", "Deprecated node.set or node.set_unless used to set node attributes" do
2
2
  tags %w{chef14 deprecated}
3
3
  def node_sets(ast)
4
4
  ast.xpath('//call[(vcall|var_ref)/ident/@value="node"]
@@ -1,4 +1,4 @@
1
- rule "FC083", "Execute resource using 'path' property" do
1
+ rule "FC083", "Execute resource using deprecated 'path' property" do
2
2
  tags %w{deprecated chef12}
3
3
  recipe do |ast|
4
4
  find_resources(ast, type: "execute").xpath('(.//command|.//fcall)[ident/@value="path"]')
@@ -0,0 +1,10 @@
1
+ rule "FC086", "Use databag helper methods to load data bag items" do
2
+ tags %w{style}
3
+ def old_dbag(ast)
4
+ ast.xpath('//const_path_ref/const[@value="EncryptedDataBagItem" or @value="DataBagItem"]/..//const[@value="Chef"]/../../..')
5
+ end
6
+
7
+ resource { |ast| old_dbag(ast) }
8
+ recipe { |ast| old_dbag(ast) }
9
+ library { |ast| old_dbag(ast) }
10
+ end
@@ -0,0 +1,7 @@
1
+ rule "FC087", "Library maps provider with deprecated Chef::Platform.set" do
2
+ tags %w{chef13 deprecated}
3
+
4
+ library do |ast|
5
+ ast.xpath('//const_path_ref/const[@value="Platform"]/..//const[@value="Chef"]/../../../ident[@value="set"]')
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ rule "FC088", "Prefer Mixlib::Shellout over deprecated Chef::Mixin::Command" do
2
+ tags %w{chef13 deprecated}
3
+
4
+ def includes_command(ast)
5
+ ast.xpath('//const_path_ref/const[@value="Command"]/..//const[@value="Mixin"]/..//const[@value="Chef"]')
6
+ end
7
+
8
+ resource { |ast| includes_command(ast) }
9
+ recipe { |ast| includes_command(ast) }
10
+ library { |ast| includes_command(ast) }
11
+ end
@@ -0,0 +1,11 @@
1
+ rule "FC089", "Prefer Mixlib::Shellout over deprecated Chef::ShellOut" do
2
+ tags %w{chef13 deprecated}
3
+
4
+ def old_shellout(ast)
5
+ ast.xpath('//const_path_ref[var_ref/const[@value="Chef"]]/const[@value="ShellOut"]')
6
+ end
7
+
8
+ resource { |ast| old_shellout(ast) }
9
+ recipe { |ast| old_shellout(ast) }
10
+ library { |ast| old_shellout(ast) }
11
+ end
@@ -1,4 +1,4 @@
1
1
  module FoodCritic
2
2
  # The current version of foodcritic
3
- VERSION = "11.0.0"
3
+ VERSION = "11.1.0"
4
4
  end
@@ -0,0 +1,36 @@
1
+ require "spec_helper"
2
+
3
+ describe "FC086" do
4
+ context "with a cookbook with a recipe that uses Chef::EncryptedDataBagItem.load_secret" do
5
+ recipe_file 'Chef::EncryptedDataBagItem.load("users", "tsmith", key)'
6
+ it { is_expected.to violate_rule }
7
+ end
8
+
9
+ context "with a cookbook with a recipe that uses Chef::DataBagItem.load" do
10
+ recipe_file 'Chef::DataBagItem.load("users", "tsmith")'
11
+ it { is_expected.to violate_rule }
12
+ end
13
+
14
+ context "with a cookbook with a resource that uses Chef::EncryptedDataBagItem.load_secret" do
15
+ resource_file <<-EOF
16
+ action :create do
17
+ data = Chef::EncryptedDataBagItem.load("users", "tsmith", key)
18
+ end
19
+ EOF
20
+ it { is_expected.to violate_rule }
21
+ end
22
+
23
+ context "with a cookbook with a resource that uses Chef::EncryptedDataBagItem.load_secret" do
24
+ resource_file <<-EOF
25
+ action :create do
26
+ data = Chef::DataBagItem.load("users", "tsmith")
27
+ end
28
+ EOF
29
+ it { is_expected.to violate_rule }
30
+ end
31
+
32
+ context "with a cookbook with a resource that uses data_bag_item" do
33
+ recipe_file "data_bag_item('bag', 'item', IO.read('secret_file'))"
34
+ it { is_expected.not_to violate_rule }
35
+ end
36
+ end
@@ -0,0 +1,29 @@
1
+ require "spec_helper"
2
+
3
+ describe "FC087" do
4
+ context "with a cookbook with a library that maps platforms with Chef::Platform.set" do
5
+ library_file <<-EOF
6
+ Chef::Platform.set platform: :amazon, resource: :mysql_chef_gem, provider: Chef::Provider::MysqlChefGem::Mysql
7
+ Chef::Platform.set platform: :centos, version: '< 7.0', resource: :mysql_chef_gem, provider: Chef::Provider::MysqlChefGem::Mysql
8
+ EOF
9
+ it { is_expected.to violate_rule }
10
+ end
11
+
12
+ context "with a cookbook with a library that includes Chef::Platform.foo" do
13
+ library_file <<-EOF
14
+ module AuditD
15
+ module Helper
16
+ def auditd_package_name_for(platform_family)
17
+ case platform_family
18
+ when 'rhel', 'fedora'
19
+ 'audit'
20
+ else
21
+ 'auditd'
22
+ end
23
+ end
24
+ end
25
+ end
26
+ EOF
27
+ it { is_expected.to_not violate_rule }
28
+ end
29
+ end
@@ -0,0 +1,18 @@
1
+ require "spec_helper"
2
+
3
+ describe "FC088" do
4
+ context "with a cookbook with a library that uses Chef::Mixin::Command" do
5
+ library_file "include Chef::Mixin::Command"
6
+ it { is_expected.to violate_rule }
7
+ end
8
+
9
+ context "with a cookbook with a resource that uses Chef::Mixin::Command" do
10
+ resource_file "include Chef::Mixin::Command"
11
+ it { is_expected.to violate_rule }
12
+ end
13
+
14
+ context "with a cookbook with a resource that uses Bob::Mixin::Command" do
15
+ resource_file "include Bob::Mixin::Command"
16
+ it { is_expected.not_to violate_rule }
17
+ end
18
+ end
@@ -0,0 +1,23 @@
1
+ require "spec_helper"
2
+
3
+ describe "FC089" do
4
+ context "with a cookbook with a library that uses Chef::ShellOut" do
5
+ library_file "include Chef::ShellOut"
6
+ it { is_expected.to violate_rule }
7
+ end
8
+
9
+ context "with a cookbook with a resource that uses Chef::ShellOut" do
10
+ resource_file "include Chef::ShellOut"
11
+ it { is_expected.to violate_rule }
12
+ end
13
+
14
+ context "with a cookbook with a resource that uses Miblib::Shellout" do
15
+ resource_file "include Mixlib::Shellout"
16
+ it { is_expected.not_to violate_rule }
17
+ end
18
+
19
+ context "with a cookbook with a resource that uses Chef::Mixin::ShellOut" do
20
+ resource_file "include Chef::Mixin::ShellOut"
21
+ it { is_expected.not_to violate_rule }
22
+ end
23
+ end
@@ -1,3 +1,3 @@
1
1
  FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
2
2
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
3
- FC080: User resource uses supports property: ./recipes/default.rb:8
3
+ FC080: User resource uses deprecated supports property: ./recipes/default.rb:8
@@ -11,3 +11,7 @@ FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
11
11
  FC074: LWRP should use DSL to define resource's default action: ./resources/preference.rb:1
12
12
  FC074: LWRP should use DSL to define resource's default action: ./resources/repository.rb:1
13
13
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
14
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/preference.rb:26
15
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/preference.rb:59
16
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/repository.rb:87
17
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/repository.rb:121
@@ -15,6 +15,6 @@ FC075: Cookbook uses node.save to save partial node data to the chef-server mid-
15
15
  FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: ./providers/ebs_volume.rb:40
16
16
  FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: ./providers/ebs_volume.rb:60
17
17
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
18
- FC082: node.set or node.set_unless used to set node attributes: ./providers/ebs_volume.rb:32
19
- FC082: node.set or node.set_unless used to set node attributes: ./providers/ebs_volume.rb:39
20
- FC082: node.set or node.set_unless used to set node attributes: ./providers/ebs_volume.rb:59
18
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./providers/ebs_volume.rb:32
19
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./providers/ebs_volume.rb:39
20
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./providers/ebs_volume.rb:59
@@ -5,3 +5,9 @@ FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
5
5
  FC067: Ensure at least one platform supported in metadata: ./metadata.rb:1
6
6
  FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
7
7
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
8
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/service.rb:52
9
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/service.rb:59
10
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/service.rb:66
11
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/service.rb:78
12
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/service.rb:85
13
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/service.rb:93
@@ -12,5 +12,5 @@ FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
12
12
  FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
13
13
  FC070: Ensure supports metadata defines valid platforms: ./metadata.rb:1
14
14
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
15
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/service.rb:59
16
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/task.rb:49
15
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/service.rb:59
16
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/task.rb:49
@@ -2,3 +2,5 @@ FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
2
2
  FC067: Ensure at least one platform supported in metadata: ./metadata.rb:1
3
3
  FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
4
4
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
5
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./libraries/chef_vault_secret.rb:92
6
+ FC086: Use databag helper methods to load data bag items: ./libraries/helpers.rb:39
@@ -35,70 +35,70 @@ FC065: Ensure source_url is set in metadata: ./metadata.rb:1
35
35
  FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
36
36
  FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
37
37
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
38
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:27
39
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:28
40
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:29
41
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:30
42
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:31
43
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:32
44
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:33
45
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:34
46
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:35
47
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:36
48
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:37
49
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:38
50
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:39
51
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:25
52
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:26
53
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:27
54
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:28
55
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:29
56
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:30
57
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:31
58
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:32
59
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:33
60
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:34
61
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client.rb:35
62
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:24
63
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:25
64
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:26
65
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:27
66
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:28
67
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:29
68
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:30
69
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:31
70
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:32
71
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:33
72
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:34
73
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:25
74
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:26
75
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:27
76
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:28
77
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:29
78
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:30
79
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:31
80
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:32
81
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:33
82
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:34
83
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:35
84
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:36
85
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:37
86
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:38
87
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server.rb:39
88
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:23
89
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:24
90
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:25
91
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:26
92
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:27
93
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:28
94
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:29
95
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:30
96
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:31
97
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:32
98
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:33
99
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:34
100
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:35
101
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:36
102
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:37
103
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:38
104
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:39
38
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:27
39
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:28
40
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:29
41
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:30
42
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:31
43
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:32
44
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:33
45
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:34
46
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:35
47
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:36
48
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:37
49
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:38
50
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/bootstrap_server.rb:39
51
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:25
52
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:26
53
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:27
54
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:28
55
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:29
56
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:30
57
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:31
58
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:32
59
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:33
60
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:34
61
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client.rb:35
62
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:24
63
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:25
64
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:26
65
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:27
66
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:28
67
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:29
68
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:30
69
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:31
70
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:32
71
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:33
72
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/client_service.rb:34
73
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:25
74
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:26
75
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:27
76
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:28
77
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:29
78
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:30
79
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:31
80
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:32
81
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:33
82
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:34
83
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:35
84
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:36
85
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:37
86
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:38
87
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server.rb:39
88
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:23
89
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:24
90
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:25
91
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:26
92
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:27
93
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:28
94
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:29
95
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:30
96
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:31
97
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:32
98
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:33
99
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:34
100
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:35
101
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:36
102
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:37
103
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:38
104
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/server_proxy.rb:39
@@ -6,3 +6,4 @@ FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
6
6
  FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
7
7
  FC074: LWRP should use DSL to define resource's default action: ./resources/d.rb:1
8
8
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
9
+ FC085: Resource using new_resource.updated_by_last_action to converge resource: ./providers/d.rb:31
@@ -13,4 +13,10 @@ FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
13
13
  FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
14
14
  FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: ./recipes/master.rb:37
15
15
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
16
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/master.rb:36
16
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/master.rb:36
17
+ FC086: Use databag helper methods to load data bag items: ./recipes/ebs_backup.rb:22
18
+ FC086: Use databag helper methods to load data bag items: ./recipes/ebs_backup.rb:38
19
+ FC086: Use databag helper methods to load data bag items: ./recipes/ebs_volume.rb:27
20
+ FC086: Use databag helper methods to load data bag items: ./recipes/ebs_volume.rb:70
21
+ FC086: Use databag helper methods to load data bag items: ./recipes/ebs_volume.rb:78
22
+ FC086: Use databag helper methods to load data bag items: ./recipes/ebs_volume.rb:94
@@ -25,4 +25,4 @@ FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
25
25
  FC069: Ensure standardized license defined in metadata: ./metadata.rb:1
26
26
  FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: ./recipes/default.rb:21
27
27
  FC078: Ensure cookbook shared under an OSI-approved open source license: ./metadata.rb:1
28
- FC082: node.set or node.set_unless used to set node attributes: ./recipes/pair.rb:87
28
+ FC082: Deprecated node.set or node.set_unless used to set node attributes: ./recipes/pair.rb:87