foodcritic 15.0.0 → 15.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. checksums.yaml +4 -4
  2. data/chef_dsl_metadata/{chef_14.7.17.json → chef_14.8.12.json} +61 -1
  3. data/foodcritic.gemspec +1 -3
  4. data/lib/foodcritic/linter.rb +1 -1
  5. data/lib/foodcritic/version.rb +1 -1
  6. metadata +5 -232
  7. data/Rakefile +0 -73
  8. data/features/002_check_string_interpolation.feature +0 -50
  9. data/features/005_check_for_resource_repetition.feature +0 -64
  10. data/features/006_check_file_mode.feature +0 -36
  11. data/features/009_check_for_unrecognised_resource_attributes.feature +0 -55
  12. data/features/014_check_for_long_ruby_blocks.feature +0 -30
  13. data/features/018_check_for_old_lwrp_notification_syntax.feature +0 -25
  14. data/features/019_check_for_consistent_node_access.feature +0 -108
  15. data/features/021_check_for_dodgy_lwrp_conditions.feature +0 -28
  16. data/features/022_check_for_dodgy_conditions_within_loop.feature +0 -43
  17. data/features/024_check_for_missing_platforms.feature +0 -43
  18. data/features/027_check_for_internal_attribute_use.feature +0 -22
  19. data/features/030_check_for_debugger_breakpoints.feature +0 -25
  20. data/features/032_check_for_invalid_notification_timing.feature +0 -24
  21. data/features/033_check_for_missing_template.feature +0 -39
  22. data/features/034_check_for_unused_template_variables.feature +0 -80
  23. data/features/037_check_for_invalid_notification_action.feature +0 -34
  24. data/features/038_check_for_invalid_action.feature +0 -39
  25. data/features/039_check_for_key_access_to_node_methods.feature +0 -33
  26. data/features/044_check_for_bare_attribute_keys.feature +0 -53
  27. data/features/046_check_for_assign_unless_nil_attributes.feature +0 -21
  28. data/features/047_check_for_attribute_assignment_without_precedence.feature +0 -49
  29. data/features/051_check_for_template_partial_loops.feature +0 -40
  30. data/features/build_framework_support.feature +0 -109
  31. data/features/checking_all_types_of_file.feature +0 -40
  32. data/features/choose_rules_to_apply.feature +0 -47
  33. data/features/command_line_help.feature +0 -58
  34. data/features/continuous_integration_support.feature +0 -33
  35. data/features/exclude_paths_to_lint.feature +0 -12
  36. data/features/ignore_via_line_comments.feature +0 -69
  37. data/features/include_custom_rules.feature +0 -29
  38. data/features/individual_file.feature +0 -28
  39. data/features/limit_rules_to_specific_versions.feature +0 -65
  40. data/features/multiple_paths.feature +0 -35
  41. data/features/show_lines_matched.feature +0 -20
  42. data/features/sort_warnings.feature +0 -10
  43. data/features/specify_search_grammar.feature +0 -25
  44. data/features/step_definitions/cookbook_steps.rb +0 -1826
  45. data/features/support/command_helpers.rb +0 -418
  46. data/features/support/cookbook_helpers.rb +0 -599
  47. data/features/support/env.rb +0 -19
  48. data/man/foodcritic.1.ronn +0 -76
  49. data/spec/functional/fc001_spec.rb +0 -72
  50. data/spec/functional/fc004_spec.rb +0 -84
  51. data/spec/functional/fc007_spec.rb +0 -127
  52. data/spec/functional/fc008_spec.rb +0 -33
  53. data/spec/functional/fc009_spec.rb +0 -37
  54. data/spec/functional/fc010_spec.rb +0 -32
  55. data/spec/functional/fc011_spec.rb +0 -20
  56. data/spec/functional/fc013_spec.rb +0 -39
  57. data/spec/functional/fc015_spec.rb +0 -19
  58. data/spec/functional/fc016_spec.rb +0 -57
  59. data/spec/functional/fc025_spec.rb +0 -60
  60. data/spec/functional/fc026_spec.rb +0 -66
  61. data/spec/functional/fc028_spec.rb +0 -93
  62. data/spec/functional/fc029_spec.rb +0 -33
  63. data/spec/functional/fc031_spec.rb +0 -14
  64. data/spec/functional/fc037_spec.rb +0 -75
  65. data/spec/functional/fc038_spec.rb +0 -28
  66. data/spec/functional/fc040_spec.rb +0 -156
  67. data/spec/functional/fc041_spec.rb +0 -121
  68. data/spec/functional/fc042_spec.rb +0 -13
  69. data/spec/functional/fc043_spec.rb +0 -28
  70. data/spec/functional/fc045_spec.rb +0 -18
  71. data/spec/functional/fc048_spec.rb +0 -67
  72. data/spec/functional/fc049_spec.rb +0 -56
  73. data/spec/functional/fc050_spec.rb +0 -85
  74. data/spec/functional/fc052_spec.rb +0 -13
  75. data/spec/functional/fc053_spec.rb +0 -13
  76. data/spec/functional/fc055_spec.rb +0 -18
  77. data/spec/functional/fc056_spec.rb +0 -18
  78. data/spec/functional/fc058_spec.rb +0 -102
  79. data/spec/functional/fc060_spec.rb +0 -45
  80. data/spec/functional/fc061_spec.rb +0 -48
  81. data/spec/functional/fc062_spec.rb +0 -13
  82. data/spec/functional/fc063_spec.rb +0 -18
  83. data/spec/functional/fc064_spec.rb +0 -13
  84. data/spec/functional/fc065_spec.rb +0 -13
  85. data/spec/functional/fc066_spec.rb +0 -33
  86. data/spec/functional/fc067_spec.rb +0 -13
  87. data/spec/functional/fc068_spec.rb +0 -13
  88. data/spec/functional/fc069_spec.rb +0 -38
  89. data/spec/functional/fc070_spec.rb +0 -65
  90. data/spec/functional/fc071_spec.rb +0 -36
  91. data/spec/functional/fc072_spec.rb +0 -13
  92. data/spec/functional/fc073_spec.rb +0 -56
  93. data/spec/functional/fc074_spec.rb +0 -39
  94. data/spec/functional/fc075_spec.rb +0 -41
  95. data/spec/functional/fc076_spec.rb +0 -13
  96. data/spec/functional/fc077_spec.rb +0 -13
  97. data/spec/functional/fc078_spec.rb +0 -35
  98. data/spec/functional/fc079_spec.rb +0 -21
  99. data/spec/functional/fc080_spec.rb +0 -68
  100. data/spec/functional/fc081_spec.rb +0 -25
  101. data/spec/functional/fc082_spec.rb +0 -23
  102. data/spec/functional/fc083_spec.rb +0 -34
  103. data/spec/functional/fc084_spec.rb +0 -49
  104. data/spec/functional/fc085_spec.rb +0 -77
  105. data/spec/functional/fc086_spec.rb +0 -45
  106. data/spec/functional/fc087_spec.rb +0 -43
  107. data/spec/functional/fc088_spec.rb +0 -18
  108. data/spec/functional/fc089_spec.rb +0 -23
  109. data/spec/functional/fc091_spec.rb +0 -38
  110. data/spec/functional/fc092_spec.rb +0 -31
  111. data/spec/functional/fc093_spec.rb +0 -27
  112. data/spec/functional/fc094_spec.rb +0 -18
  113. data/spec/functional/fc095_spec.rb +0 -18
  114. data/spec/functional/fc096_spec.rb +0 -18
  115. data/spec/functional/fc097_spec.rb +0 -18
  116. data/spec/functional/fc098_spec.rb +0 -18
  117. data/spec/functional/fc099_spec.rb +0 -18
  118. data/spec/functional/fc100_spec.rb +0 -18
  119. data/spec/functional/fc101_spec.rb +0 -23
  120. data/spec/functional/fc102_spec.rb +0 -18
  121. data/spec/functional/fc103_spec.rb +0 -30
  122. data/spec/functional/fc104_spec.rb +0 -54
  123. data/spec/functional/fc105_spec.rb +0 -36
  124. data/spec/functional/fc106_spec.rb +0 -21
  125. data/spec/functional/fc107_spec.rb +0 -22
  126. data/spec/functional/fc108_spec.rb +0 -43
  127. data/spec/functional/fc109_spec.rb +0 -22
  128. data/spec/functional/fc110_spec.rb +0 -21
  129. data/spec/functional/fc111_spec.rb +0 -17
  130. data/spec/functional/fc112_spec.rb +0 -17
  131. data/spec/functional/fc113_spec.rb +0 -98
  132. data/spec/functional/fc114_spec.rb +0 -31
  133. data/spec/functional/fc115_spec.rb +0 -24
  134. data/spec/functional/fc116_spec.rb +0 -18
  135. data/spec/functional/fc117_spec.rb +0 -23
  136. data/spec/functional/fc118_spec.rb +0 -17
  137. data/spec/functional/fc119_spec.rb +0 -27
  138. data/spec/functional/fc120_spec.rb +0 -21
  139. data/spec/functional/fc121_spec.rb +0 -45
  140. data/spec/functional/fc122_spec.rb +0 -18
  141. data/spec/functional/root_aliases_spec.rb +0 -13
  142. data/spec/regression/cookbooks.txt +0 -83
  143. data/spec/regression/expected/activemq.txt +0 -6
  144. data/spec/regression/expected/aix.txt +0 -27
  145. data/spec/regression/expected/apparmor.txt +0 -9
  146. data/spec/regression/expected/apt.txt +0 -14
  147. data/spec/regression/expected/ark.txt +0 -3
  148. data/spec/regression/expected/auditd.txt +0 -2
  149. data/spec/regression/expected/aws.txt +0 -16
  150. data/spec/regression/expected/bluepill.txt +0 -12
  151. data/spec/regression/expected/boost.txt +0 -8
  152. data/spec/regression/expected/build-essential.txt +0 -8
  153. data/spec/regression/expected/chef-client.txt +0 -17
  154. data/spec/regression/expected/chef-ingredient.txt +0 -6
  155. data/spec/regression/expected/chef-server.txt +0 -13
  156. data/spec/regression/expected/chef-vault.txt +0 -7
  157. data/spec/regression/expected/chef.txt +0 -104
  158. data/spec/regression/expected/chef_client_updater.txt +0 -2
  159. data/spec/regression/expected/chef_handler.txt +0 -7
  160. data/spec/regression/expected/chef_hostname.txt +0 -3
  161. data/spec/regression/expected/chef_nginx.txt +0 -4
  162. data/spec/regression/expected/cron.txt +0 -7
  163. data/spec/regression/expected/database.txt +0 -42
  164. data/spec/regression/expected/dmg.txt +0 -11
  165. data/spec/regression/expected/docker.txt +0 -4
  166. data/spec/regression/expected/drbd.txt +0 -29
  167. data/spec/regression/expected/dynect.txt +0 -33
  168. data/spec/regression/expected/erlang.txt +0 -6
  169. data/spec/regression/expected/fail2ban.txt +0 -5
  170. data/spec/regression/expected/firewall.txt +0 -11
  171. data/spec/regression/expected/gecode.txt +0 -10
  172. data/spec/regression/expected/gems.txt +0 -32
  173. data/spec/regression/expected/gunicorn.txt +0 -11
  174. data/spec/regression/expected/heartbeat.txt +0 -8
  175. data/spec/regression/expected/homebrew.txt +0 -7
  176. data/spec/regression/expected/iis.txt +0 -22
  177. data/spec/regression/expected/iptables.txt +0 -9
  178. data/spec/regression/expected/jetty.txt +0 -13
  179. data/spec/regression/expected/jpackage.txt +0 -9
  180. data/spec/regression/expected/keepalived.txt +0 -3
  181. data/spec/regression/expected/kickstart.txt +0 -15
  182. data/spec/regression/expected/libarchive.txt +0 -6
  183. data/spec/regression/expected/logwatch.txt +0 -5
  184. data/spec/regression/expected/lvm.txt +0 -14
  185. data/spec/regression/expected/maradns.txt +0 -14
  186. data/spec/regression/expected/maven.txt +0 -8
  187. data/spec/regression/expected/memcached.txt +0 -31
  188. data/spec/regression/expected/motd-tail.txt +0 -5
  189. data/spec/regression/expected/mysql.txt +0 -19
  190. data/spec/regression/expected/ohai.txt +0 -9
  191. data/spec/regression/expected/openldap.txt +0 -12
  192. data/spec/regression/expected/openssh.txt +0 -6
  193. data/spec/regression/expected/openssl.txt +0 -6
  194. data/spec/regression/expected/partial_search.txt +0 -7
  195. data/spec/regression/expected/passenger_apache2.txt +0 -31
  196. data/spec/regression/expected/perl.txt +0 -14
  197. data/spec/regression/expected/php.txt +0 -6
  198. data/spec/regression/expected/postfix.txt +0 -8
  199. data/spec/regression/expected/powershell.txt +0 -8
  200. data/spec/regression/expected/resolver.txt +0 -7
  201. data/spec/regression/expected/rsync.txt +0 -9
  202. data/spec/regression/expected/rsyslog.txt +0 -11
  203. data/spec/regression/expected/runit.txt +0 -4
  204. data/spec/regression/expected/smokeping.txt +0 -6
  205. data/spec/regression/expected/sql_server.txt +0 -7
  206. data/spec/regression/expected/ssh_known_hosts.txt +0 -6
  207. data/spec/regression/expected/stompserver.txt +0 -6
  208. data/spec/regression/expected/subversion.txt +0 -6
  209. data/spec/regression/expected/sudo.txt +0 -10
  210. data/spec/regression/expected/tar.txt +0 -10
  211. data/spec/regression/expected/tftp.txt +0 -6
  212. data/spec/regression/expected/tomcat.txt +0 -18
  213. data/spec/regression/expected/transmission.txt +0 -13
  214. data/spec/regression/expected/ubuntu.txt +0 -5
  215. data/spec/regression/expected/ufw.txt +0 -12
  216. data/spec/regression/expected/unicorn.txt +0 -7
  217. data/spec/regression/expected/users.txt +0 -12
  218. data/spec/regression/expected/vcruntime.txt +0 -8
  219. data/spec/regression/expected/vim.txt +0 -7
  220. data/spec/regression/expected/webpi.txt +0 -7
  221. data/spec/regression/expected/whitelist-node-attrs.txt +0 -7
  222. data/spec/regression/expected/windows.txt +0 -35
  223. data/spec/regression/expected/wix.txt +0 -5
  224. data/spec/regression/expected/xml.txt +0 -7
  225. data/spec/regression/expected/yum.txt +0 -15
  226. data/spec/regression/regression_spec.rb +0 -23
  227. data/spec/spec_helper.rb +0 -132
  228. data/spec/unit/api_spec.rb +0 -1939
  229. data/spec/unit/chef_spec.rb +0 -66
  230. data/spec/unit/command_line_spec.rb +0 -136
  231. data/spec/unit/domain_spec.rb +0 -78
  232. data/spec/unit/linter_spec.rb +0 -107
  233. data/spec/unit/template_spec.rb +0 -53
@@ -1,17 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC112" do
4
- context "with a cookbook with a resource that uses dsl_name" do
5
- library_file <<-EOF
6
- my_resource = MyResource.dsl_name
7
- EOF
8
- it { is_expected.to violate_rule }
9
- end
10
-
11
- context "with a cookbook with a resource that uses resource_name" do
12
- library_file <<-EOF
13
- my_resource = MyResource.resource_name
14
- EOF
15
- it { is_expected.not_to violate_rule }
16
- end
17
- end
@@ -1,98 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC113" do
4
- context "with a cookbook with a library provider with use_inline_resources" do
5
- library_file <<-EOF
6
- class MyResources
7
- class Site < Chef::Resource::LWRPBase
8
- provides :site
9
- resource_name :site
10
- actions :create
11
- attribute :name, :kind_of => String, :name_attribute => true
12
- end
13
- end
14
-
15
- class MyProviders
16
- class Site < Chef::Provider::LWRPBase
17
- provides :site
18
-
19
- use_inline_resources
20
-
21
- action :create do
22
- file "/tmp/foo.txt"
23
- end
24
- end
25
- end
26
- EOF
27
- it { is_expected.to violate_rule }
28
- end
29
-
30
- context "with a cookbook with a library provider without use_inline_resources" do
31
- library_file <<-EOF
32
- class MyResources
33
- class Site < Chef::Resource::LWRPBase
34
- provides :site
35
- resource_name :site
36
- actions :create
37
- attribute :name, :kind_of => String, :name_attribute => true
38
- end
39
- end
40
-
41
- class MyProviders
42
- class Site < Chef::Provider::LWRPBase
43
- provides :site
44
-
45
- action :create do
46
- file "/tmp/foo.txt"
47
- end
48
- end
49
- end
50
- EOF
51
- it { is_expected.not_to violate_rule }
52
- end
53
-
54
- context "with a cookbook with plain old library file" do
55
- library_file <<-EOF
56
- def something
57
- puts "I'm just a method"
58
- end
59
- EOF
60
- it { is_expected.not_to violate_rule }
61
- end
62
-
63
- context "with a cookbook with LWRP not using use_inline_resources" do
64
- provider_file <<-EOF
65
- action :create do
66
- template "/etc/something.conf" do
67
- notifies :restart, "service[something]"
68
- end
69
- end
70
- EOF
71
- it { is_expected.not_to violate_rule }
72
- end
73
-
74
- context "with a cookbook with LWRP using use_inline_resources" do
75
- provider_file <<-EOF
76
- use_inline_resources
77
-
78
- action :create do
79
- template "/etc/something.conf" do
80
- notifies :restart, "service[something]"
81
- end
82
- end
83
- EOF
84
- it { is_expected.to violate_rule }
85
- end
86
-
87
- context "with a cookbook ignoring the rule" do
88
- provider_file <<-EOF.gsub(/^ /, "") # When we drop 2.2 support, this can use <<~EOF.
89
- # ~FC059
90
- action :create do
91
- template "/etc/something.conf" do
92
- notifies :restart, "service[something]"
93
- end
94
- end
95
- EOF
96
- it { is_expected.not_to violate_rule }
97
- end
98
- end
@@ -1,31 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC114" do
4
- context "with a cookbook that uses the legacy Ohai config" do
5
- library_file <<-EOF
6
- Ohai::Config[:something]
7
- EOF
8
- it { is_expected.to violate_rule }
9
- end
10
-
11
- context "with a cookbook that sets the legacy Ohai config value" do
12
- library_file <<-EOF
13
- Ohai::Config[:something] = 'something'
14
- EOF
15
- it { is_expected.to violate_rule }
16
- end
17
-
18
- context "with a cookbook that uses the new full form Ohai config" do
19
- library_file <<-EOF
20
- Ohai::Config.ohai[:something] = 'something'
21
- EOF
22
- it { is_expected.not_to violate_rule }
23
- end
24
-
25
- context "with a cookbook that uses the new short form Ohai config" do
26
- library_file <<-EOF
27
- Ohai.config[:something] = 'something'
28
- EOF
29
- it { is_expected.not_to violate_rule }
30
- end
31
- end
@@ -1,24 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC115" do
4
- context "with a resource that requires a name property" do
5
- resource_file <<-EOF
6
- property :url, String, name_property: true, required: true
7
- EOF
8
- it { is_expected.to violate_rule }
9
- end
10
-
11
- context "with a resource that explicitly doesn't required a name property" do
12
- resource_file <<-EOF
13
- property :url, String, name_property: true, required: false
14
- EOF
15
- it { is_expected.not_to violate_rule }
16
- end
17
-
18
- context "with a resource that requires a name property with the name of 'name'" do
19
- resource_file <<-EOF
20
- property :name, String, name_property: true, required: true
21
- EOF
22
- it { is_expected.not_to violate_rule }
23
- end
24
- end
@@ -1,18 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC116" do
4
- context "with metadata depending on compat_resource" do
5
- metadata_file "name 'test'\ndepends 'compat_resource'"
6
- it { is_expected.to violate_rule }
7
- end
8
-
9
- context "with metadata depending on foo" do
10
- metadata_file "name 'test'\ndepends 'foo'"
11
- it { is_expected.to_not violate_rule }
12
- end
13
-
14
- context "with metadata depending on nothing" do
15
- metadata_file "name 'test'"
16
- it { is_expected.to_not violate_rule }
17
- end
18
- end
@@ -1,23 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC117" do
4
- context "with a custom resource that includes kind_of in the property definition" do
5
- resource_file <<-EOF
6
- property :name, kind_of: String, name_property: true
7
-
8
- action :create do
9
- end
10
- EOF
11
- it { is_expected.to violate_rule }
12
- end
13
-
14
- context "with a custom resource that does not include kind_of in the property definition" do
15
- resource_file <<-EOF
16
- property :name, String, name_property: true
17
-
18
- action :create do
19
- end
20
- EOF
21
- it { is_expected.not_to violate_rule }
22
- end
23
- end
@@ -1,17 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC118" do
4
- context "with a property that sets the name_attribute value" do
5
- resource_file <<-EOF
6
- property :url, String, name_attribute: true
7
- EOF
8
- it { is_expected.to violate_rule }
9
- end
10
-
11
- context "with a property that sets the name_property value" do
12
- resource_file <<-EOF
13
- property :url, String, name_property: true
14
- EOF
15
- it { is_expected.not_to violate_rule }
16
- end
17
- end
@@ -1,27 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC119" do
4
- context "with a windows_task resource that uses the :change action" do
5
- recipe_file <<-EOF
6
- windows_task 'chef-client' do
7
- user 'Administrator'
8
- password 'N3wPassW0Rd'
9
- command 'chef-client'
10
- action :change
11
- end
12
- EOF
13
- it { is_expected.to violate_rule }
14
- end
15
-
16
- context "with a windows_task resource that uses the :create action" do
17
- recipe_file <<-EOF
18
- windows_task 'chef-client' do
19
- user 'Administrator'
20
- password 'N3wPassW0Rd'
21
- command 'chef-client'
22
- action :create
23
- end
24
- EOF
25
- it { is_expected.not_to violate_rule }
26
- end
27
- end
@@ -1,21 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC120" do
4
- context "with a resource that sets the name property" do
5
- recipe_file <<-EOF
6
- foo 'bar' do
7
- name 'Administrator'
8
- end
9
- EOF
10
- it { is_expected.to violate_rule }
11
- end
12
-
13
- context "with a resource that does not set the name property" do
14
- recipe_file <<-EOF
15
- foo 'bar' do
16
- foo_name 'Administrator'
17
- end
18
- EOF
19
- it { is_expected.not_to violate_rule }
20
- end
21
- end
@@ -1,45 +0,0 @@
1
- # Enable these once we turn FC121 back on
2
- #
3
- # require "spec_helper"
4
- #
5
- # describe "FC121" do
6
- # context "with metadata depending on build-essential" do
7
- # metadata_file "name 'test'\ndepends 'build-essential'"
8
- # it { is_expected.to violate_rule }
9
- # end
10
- #
11
- # context "with metadata depending on swap" do
12
- # metadata_file "name 'test'\ndepends 'swap'"
13
- # it { is_expected.to violate_rule }
14
- # end
15
- #
16
- # context "with metadata depending on dmg" do
17
- # metadata_file "name 'test'\ndepends 'dmg'"
18
- # it { is_expected.to violate_rule }
19
- # end
20
- #
21
- # context "with metadata depending on mac_os_x" do
22
- # metadata_file "name 'test'\ndepends 'mac_os_x'"
23
- # it { is_expected.to violate_rule }
24
- # end
25
- #
26
- # context "with metadata depending on chef_handler" do
27
- # metadata_file "name 'test'\ndepends 'chef_handler'"
28
- # it { is_expected.to violate_rule }
29
- # end
30
- #
31
- # context "with metadata depending on chef_hostname" do
32
- # metadata_file "name 'test'\ndepends 'chef_hostname'"
33
- # it { is_expected.to violate_rule }
34
- # end
35
- #
36
- # context "with metadata depending on foo" do
37
- # metadata_file "name 'test'\ndepends 'foo'"
38
- # it { is_expected.to_not violate_rule }
39
- # end
40
- #
41
- # context "with metadata depending on nothing" do
42
- # metadata_file "name 'test'"
43
- # it { is_expected.to_not violate_rule }
44
- # end
45
- # end
@@ -1,18 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "FC122" do
4
- context "with a recipe that includes build-essential" do
5
- recipe_file "include_recipe 'build-essential'"
6
- it { is_expected.to violate_rule }
7
- end
8
-
9
- context "with a recipe that includes build-essential::default" do
10
- recipe_file "include_recipe 'build-essential::default'"
11
- it { is_expected.to violate_rule }
12
- end
13
-
14
- context "with a recipe that includes build-essential-mycorp" do
15
- recipe_file "include_recipe 'build-essential-mycorp'"
16
- it { is_expected.to_not violate_rule }
17
- end
18
- end
@@ -1,13 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "root aliases" do
4
- context "with a recipe root alias" do
5
- file "recipe.rb", "log node[:foo]\n"
6
- it { is_expected.to violate_rule("FC001") }
7
- end
8
-
9
- context "with an attributes root alias" do
10
- file "attributes.rb", "default[:foo] = 1\n"
11
- it { is_expected.to violate_rule("FC001") }
12
- end
13
- end
@@ -1,83 +0,0 @@
1
- activemq:5dce4ca5283d2a6252130a2d800b9387a57d6e01
2
- aix:f40afb959cc5edc3e838072c6c4f817708657f1b
3
- apparmor:fd09a6fda4f6fc722d4c8d5b8a5c815feda280c0
4
- apt:ea834265247cc8b507ac37ab3a34a9b44ed27a11
5
- ark:950ed665bc82c13194cb7c0cac3154a4b73e40c7
6
- auditd:eff59f9ca300ac0514e8c96769bc3e8e8c22a76a
7
- aws:a9530561bf559c6db2cb40a93b125607c5ef3efa
8
- bluepill:1d6422afcbc910e587c9639e4e0a28c72727c90b
9
- boost:14f30e36040a4fcd038f030d9ee1c7fb29b08b68
10
- build-essential:0c636536fb1236f792974f3af38f2950a03ed4b2
11
- chef:dac09eea9fa0d611b7b010160d6b8fa7f4d6ae1e
12
- chef-client:7fc4472c9913c9cb1762f979e05047a674318ef5
13
- chef-ingredient:e9c2f58af73d49b5783754757f0a38aa87abd37f
14
- chef-server:d98b96d69962c7988b9640fe5bee09f771ba8977
15
- chef-vault:6ad7e34f9b860dc1b339a0c1814214595098e4b0
16
- chef_client_updater:01b39eaa81f017cebca3ab3a941683eb962d9bd2
17
- chef_handler:d147ca9644f146b97a2d53324ca344321799b45f
18
- chef_hostname:24776c9ea403a82b5aecc6b1a4a829e892f4db95
19
- chef_nginx:1f22dd7b7e04e60a1ea9fd0cc4ab980a4be05d4d
20
- cron:dce04363b6a02d36f8da88f202cedfae2daa6a2c
21
- database:1ab3822ca50824fbdc14f7c89341faa7ae1e90cb
22
- docker:e0f18072406abf1ade70745a7ef7e5529f00c109
23
- dmg:11caf56f57a1168a891f01f0614a01b879aff624
24
- drbd:e65b60894b48855163c3a13ead40fb897d66c4b8
25
- dynect:5ef2328cc612cc4c36882742367af0e2bdbd0367
26
- erlang:58290537b49b495bc18e7a06d9d7560b4d239582
27
- fail2ban:7b1939c9bc345f3a449545cb8e7ddb8190a6fe5f
28
- firewall:81a8db5a868f9f486ba694a7fe8eb969a2ae99d1
29
- gecode:87dc9114bf79e67b8eea9f2a0c42929040d08e4b
30
- gems:6f8c222cf8326b5266ca3c68344accbbf8d5c468
31
- gunicorn:89be74c6b47bdb980ee1d98f9aae6b747f1d11e8
32
- heartbeat:da496afa31286512a9b977974bec5ff51d6de9d8
33
- homebrew:f42d8d09d8ae3d45f5bdb680dd52da351cb80e2e
34
- iis:ab7e4823d375e8eb4f927dee5b7ab0591301cb0e
35
- iptables:da126cf900af3cc36bf212973bb8d0be69fa2b9f
36
- jetty:d165775c2c7ce3cc484cbe8c7aadf6649505d078
37
- jpackage:23e6f4b717620455ee9d29cbf82d9a7ab7fa6e5b
38
- keepalived:0c8bc5ea5aba93b5bc58ebea8661c1e1762ea463
39
- kickstart:6523fca008362ed72f8fbb25f0c7af70d563b96d
40
- logwatch:706174796a3bc1d85d57d3aee792e78cb13570ac
41
- libarchive:5f21a614017c7cffb3fe7f56185c0b988fad7826
42
- lvm:57bd5291fbaa41e7a13f25c4553cdacbfc3ad3dd
43
- maradns:e975ded4303432629ad37234cb7a05c9d6edcf73
44
- maven:e486321f1e89f7ad2b9700c08fcbc68c32daa599
45
- memcached:db13b6c4088e93faf995441df4aa856adc84c565
46
- motd-tail:e01096b73c387a46302f63ae6f838fac94e0ca81
47
- mysql:1709b1ea22339a0c829cf5ced8c5a7ed4a186615
48
- ohai:8ad8c92b14d5198ffa5ebd094acd83ba0c5c828c
49
- openldap:2f21ae90544b4f938e554f914955e3fac1a885de
50
- openssh:a61b47fb0efbdab731e7929506bb1dc6902f0091
51
- openssl:7f5b84a942f015191ade6badf65a49f1fe7b05b1
52
- partial_search:9a96d68a4af2eff1cf5d3e8ed7ff2ede723a09c8
53
- passenger_apache2:793f7bbaac7a883d5f9ef1414260718e33958ae8
54
- perl:bd6f978aea0ad7e65a8e6266951476b717a9a074
55
- php:f3f5db8d823db821ac696f7b52b2a613c1e2f167
56
- postfix:d7d149e7a7235b2733455e524d86e3a984b9b97c
57
- powershell:4b175affe1a8a7d091a8ca905a580bf975af5edc
58
- resolver:105ad0a2fc9c065a7c4455cfc07ab7771b8e0da0
59
- rsync:41756f404fc39f3ce407cce9fe03294dd907c0fe
60
- rsyslog:8830d558d2ee3126fef56ea3a25a4f0253ce269f
61
- runit:92c60395a0727bc4941b58e95a4d67cc163a2b98
62
- smokeping:db0b62ab6d71a782d378c550d37464f024abe144
63
- sql_server:d9702f8fc29f208c9e712627cda64ccae2d71321
64
- ssh_known_hosts:a89f0c32e8e2c408a2e153153cc703f1184c6b72
65
- stompserver:bf81830bb7783f4198565201c825c23267e1d515
66
- subversion:cad4c069deca1fbbfb6b8f4d21b6c341cc9c6b55
67
- sudo:00d024f293afb9df4fea23ba127529d67c1daf14
68
- tar:8586d01346324f413fea9c4b48a214f5e12d3a49
69
- tftp:f4016b14eae2c0fe7fb48020bf28039c2de043a4
70
- tomcat:a99c916e8ec00b2e008c16e8b4aa9adcffbb1056
71
- transmission:c3d62aa4741a55b693630d9cc48b012ff22d2e7b
72
- ubuntu:7d21b626873ee397755d59aa222cf7fa681f6e90
73
- ufw:6bc6de62a84f6fa6f172edf0a490f1a332e89e29
74
- unicorn:bacbb2400dcb476dd53784aa965fa9329e8c3869
75
- users:c51c96afca83b382678dc21b8deb25677e6a3d8a
76
- vcruntime:87ea6e2bb16871ec132f03ca014e481e473f958a
77
- vim:88e8d018267d2cd5cfa3260ce55a0025f52dae6f
78
- webpi:6cb4fde9dedf2abc980fa49880753512baa26b23
79
- whitelist-node-attrs:2d76a2d179096e3ab048547d0d7849238ac2a5d3
80
- windows:1601558f5fce30bed47bfc6d458a80891e127c61
81
- wix:422b8da1dcf706bb4742d83abc44a649522afe83
82
- xml:0b538834aa26c4df5918aa193029d285d7b1d4de
83
- yum:b1191511b011790b2fc5c35cfbc78d0cc7bbc5b8