cookstyle 5.14.1 → 5.15.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/config/cookstyle.yml +191 -120
  3. data/cookstyle.gemspec +8 -1
  4. data/lib/cookstyle.rb +1 -0
  5. data/lib/cookstyle/version.rb +1 -1
  6. data/lib/rubocop/chef/cookbook_helpers.rb +16 -0
  7. data/lib/rubocop/chef/platform_helpers.rb +70 -0
  8. data/lib/rubocop/cop/chef/correctness/invalid_platform_family_helper.rb +53 -0
  9. data/lib/rubocop/cop/chef/correctness/invalid_platform_helper.rb +54 -0
  10. data/lib/rubocop/cop/chef/correctness/invalid_platform_metadata.rb +5 -30
  11. data/lib/rubocop/cop/chef/correctness/invalid_value_for_platform_family_helper.rb +67 -0
  12. data/lib/rubocop/cop/chef/correctness/invalid_value_for_platform_helper.rb +66 -0
  13. data/lib/rubocop/cop/chef/correctness/scoped_file_exist.rb +53 -0
  14. data/lib/rubocop/cop/chef/modernize/allowed_actions_initializer.rb +76 -0
  15. data/lib/rubocop/cop/chef/modernize/berksfile_source.rb +9 -0
  16. data/lib/rubocop/cop/chef/modernize/default_action_initializer.rb +7 -1
  17. data/lib/rubocop/cop/chef/{correctness → modernize}/ohai_default_recipe.rb +1 -1
  18. data/lib/rubocop/cop/chef/{correctness → modernize}/property_with_name_attribute.rb +2 -3
  19. data/lib/rubocop/cop/chef/modernize/respond_to_resource_name.rb +1 -3
  20. data/lib/rubocop/cop/chef/modernize/unnecessary_mixlib_shellout_require.rb +2 -2
  21. data/lib/rubocop/cop/chef/{deprecation → redundant}/attribute_metadata.rb +3 -3
  22. data/lib/rubocop/cop/chef/{deprecation → redundant}/conflicts_metadata.rb +3 -3
  23. data/lib/rubocop/cop/chef/{modernize/resource_with_allowed_actions.rb → redundant/custom_resource_with_allowed_actions.rb} +13 -29
  24. data/lib/rubocop/cop/chef/{deprecation → redundant}/long_description_metadata.rb +3 -3
  25. data/lib/rubocop/cop/chef/{correctness → redundant}/name_property_and_required.rb +1 -1
  26. data/lib/rubocop/cop/chef/{correctness → redundant}/property_with_default_and_required.rb +1 -1
  27. data/lib/rubocop/cop/chef/{deprecation → redundant}/provides_metadata.rb +3 -3
  28. data/lib/rubocop/cop/chef/{deprecation → redundant}/recipe_metadata.rb +3 -4
  29. data/lib/rubocop/cop/chef/{deprecation → redundant}/replaces_metadata.rb +3 -3
  30. data/lib/rubocop/cop/chef/{correctness → redundant}/resource_with_nothing_action.rb +1 -1
  31. data/lib/rubocop/cop/chef/{deprecation → redundant}/suggests_metadata.rb +3 -3
  32. data/lib/rubocop/cop/chef/{correctness → redundant}/unnecessary_name_property.rb +1 -1
  33. data/lib/rubocop/cop/chef/{correctness → sharing}/default_maintainer_metadata.rb +1 -1
  34. data/lib/rubocop/cop/chef/{correctness → sharing}/empty_metadata_field.rb +1 -1
  35. data/lib/rubocop/cop/chef/{correctness → sharing}/insecure_cookbook_url.rb +1 -1
  36. data/lib/rubocop/cop/chef/{correctness → sharing}/invalid_license_string.rb +1 -1
  37. metadata +34 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0fe10480691d3522f05f3d4a0db77cac9543e29cd50ed9f6764d45294973c2f
4
- data.tar.gz: 7308ec701ae4d522633a62a59cf28d6eab5b1460179ef1af5be3a7926a8d688c
3
+ metadata.gz: 394f526dcec8c22ebd9db30e8c32686fe508cf388d3903769157428c49690c6d
4
+ data.tar.gz: abba87a8fea82ef987ca27c3631fa25bc925c55ac7f59b6d07735123092d279a
5
5
  SHA512:
6
- metadata.gz: d3659fda58293a623b91d907a30fd5f5f1229da9dcbd7a8d5ebc83083baa101db9e274e15a1feae9f14071c274dbac4ee7a86069dc05c0b69fdf3650fd622da9
7
- data.tar.gz: b08f3957087487156952dc5856bf2ece8c0f4f432e11d8551d9c4492c10ff148cce4ebad8cdef712a6e1179190106893c6490f07443c54dbef92062c1d8308a1
6
+ metadata.gz: '08e6f1c8d8563494ab21c7d69021c4955d4b2ed2af6cb6e59394510fc07eff5eabf23b6a1575afcb8994d1dfbe11446a26a456395a8d7ce1392cf1c10074d548'
7
+ data.tar.gz: '09eecb0aebc0837b48e72741f805ac13fd4bb2b64e53d0d762053dfb6d6763f3c53ef81c6fc647c2909bf76351fad15d28264484ea0c8d81494c4482a1476976'
@@ -115,25 +115,6 @@ ChefCorrectness/TmpPath:
115
115
  Exclude:
116
116
  - '**/metadata.rb'
117
117
 
118
- ChefCorrectness/InsecureCookbookURL:
119
- Description: Insecure http Github or Gitlab URLs for metadata source_url/issues_url fields
120
- Enabled: true
121
- VersionAdded: '5.1.0'
122
- Include:
123
- - '**/metadata.rb'
124
-
125
- ChefCorrectness/NamePropertyIsRequired:
126
- Description: Resource properties marked as name properties should not also be required properties
127
- Enabled: true
128
- VersionAdded: '5.1.0'
129
-
130
- ChefCorrectness/InvalidLicenseString:
131
- Description: Cookbook metadata.rb does not use a SPDX compliant license string or "all rights reserved"
132
- Enabled: true
133
- VersionAdded: '5.2.0'
134
- Include:
135
- - '**/metadata.rb'
136
-
137
118
  ChefCorrectness/InvalidPlatformMetadata:
138
119
  Description: metadata.rb "supports" platform is invalid
139
120
  Enabled: true
@@ -148,29 +129,6 @@ ChefCorrectness/CookbookUsesNodeSave:
148
129
  Exclude:
149
130
  - '**/metadata.rb'
150
131
 
151
- ChefCorrectness/DefaultMetadataMaintainer:
152
- Description: Metadata contains default maintainer information from the cookbook generator. Add actual cookbook maintainer information to the metadata.rb.
153
- Enabled: true
154
- VersionAdded: '5.4.0'
155
- Include:
156
- - '**/metadata.rb'
157
-
158
- ChefCorrectness/PropertyWithNameAttribute:
159
- Description: Resource property sets name_attribute not name_property
160
- Enabled: true
161
- VersionAdded: '5.1.0'
162
- Include:
163
- - '**/resources/*.rb'
164
- - '**/libraries/*.rb'
165
-
166
- ChefCorrectness/PropertyWithRequiredAndDefault:
167
- Description: Resource property should not be both required and have a default value
168
- Enabled: true
169
- VersionAdded: '5.1.0'
170
- Include:
171
- - '**/resources/*.rb'
172
- - '**/libraries/*.rb'
173
-
174
132
  ChefCorrectness/CookbooksDependsOnSelf:
175
133
  Description: A cookbook cannot depend on itself
176
134
  Enabled: true
@@ -213,28 +171,6 @@ ChefCorrectness/ResourceWithNoneAction:
213
171
  Exclude:
214
172
  - '**/metadata.rb'
215
173
 
216
- ChefCorrectness/IncludingOhaiDefaultRecipe:
217
- Description: Use the ohai_plugin resource to ship custom Ohai plugins instead of using the ohai::default recipe. If you're not shipping custom Ohai plugins, then you can remove this recipe entirely.
218
- Enabled: true
219
- VersionAdded: '5.4.0'
220
- Exclude:
221
- - '**/metadata.rb'
222
-
223
- ChefCorrectness/UnnecessaryNameProperty:
224
- Description: There is no need to define a property named :name in a resource as Chef Infra defines that property for all resources by default.
225
- Enabled: true
226
- VersionAdded: '5.8.0'
227
- Include:
228
- - '**/resources/*.rb'
229
- - '**/libraries/*.rb'
230
-
231
- ChefCorrectness/EmptyMetadataField:
232
- Description: metadata.rb should not include fields with an empty string. Either don't include the field or add a value.
233
- Enabled: true
234
- VersionAdded: '5.8.0'
235
- Include:
236
- - '**/metadata.rb'
237
-
238
174
  ChefCorrectness/InvalidVersionMetadata:
239
175
  Description: Cookbook metadata.rb version field should follow X.Y.Z version format.
240
176
  Enabled: true
@@ -256,100 +192,113 @@ ChefCorrectness/IncorrectLibraryInjection:
256
192
  Include:
257
193
  - '**/libraries/*.rb'
258
194
 
259
- ChefCorrectness/ResourceWithNothingAction:
260
- Description: There is no need to define a :nothing action in your resource as Chef Infra Client provides the :nothing action by default for every resource.
195
+ ChefCorrectness/InvalidPlatformHelper:
196
+ Description: Pass valid platforms to the platform? helper.
261
197
  Enabled: true
262
- VersionAdded: '5.12.0'
263
- Include:
264
- - '**/libraries/*.rb'
265
- - '**/resources/*.rb'
266
- - '**/providers/*.rb'
267
-
268
- ###############################
269
- # ChefDeprecations: Resolving Deprecations that block upgrading Chef Infra Client
270
- ###############################
198
+ VersionAdded: '5.15.0'
199
+ Exclude:
200
+ - '**/metadata.rb'
271
201
 
272
- ChefDeprecations/NodeDeepFetch:
273
- Description: Do not use the deprecated chef-sugar node.deep_fetch methods
202
+ ChefCorrectness/InvalidPlatformFamilyHelper:
203
+ Description: Pass valid platform families to the platform_family? helper.
274
204
  Enabled: true
275
- VersionAdded: '5.12.0'
205
+ VersionAdded: '5.15.0'
276
206
  Exclude:
277
207
  - '**/metadata.rb'
278
208
 
279
- ChefDeprecations/NodeSet:
280
- Description: Do not use the deprecated node.set method
209
+ ChefCorrectness/ScopedFileExist:
210
+ Description: Scope file exist to access the correct File class by using ::File.exist? not File.exist?.
281
211
  Enabled: true
282
- VersionAdded: '5.0.0'
212
+ VersionAdded: '5.15.0'
283
213
  Exclude:
284
214
  - '**/metadata.rb'
285
215
 
286
- ChefDeprecations/NodeSetUnless:
287
- Description: Do not use the deprecated node.set_unless method
216
+ ChefCorrectness/InvalidPlatformValueForPlatformFamilyHelper:
217
+ Description: Pass valid platforms families to the value_for_platform_family helper.
288
218
  Enabled: true
289
- VersionAdded: '5.1.0'
219
+ VersionAdded: '5.15.0'
290
220
  Exclude:
291
221
  - '**/metadata.rb'
292
222
 
293
- ChefDeprecations/EpicFail:
294
- Description: Use ignore_failure method instead of the deprecated epic_fail method
223
+ ChefCorrectness/InvalidPlatformValueForPlatformHelper:
224
+ Description: Pass valid platforms to the value_for_platform helper.
295
225
  Enabled: true
296
- VersionAdded: '5.1.0'
226
+ VersionAdded: '5.15.0'
297
227
  Exclude:
298
228
  - '**/metadata.rb'
299
229
 
300
- ChefDeprecations/CookbookDependsOnPoise:
301
- Description: Cookbooks should not depend on the deprecated Poise framework
230
+ ###############################
231
+ # ChefSharing: Issues that prevent sharing code with other teams or with the Chef community in general
232
+ ###############################
233
+
234
+ ChefSharing/InsecureCookbookURL:
235
+ Description: Insecure http Github or Gitlab URLs for metadata source_url/issues_url fields
302
236
  Enabled: true
303
237
  VersionAdded: '5.1.0'
238
+ VersionChanged: '5.15.0'
304
239
  Include:
305
240
  - '**/metadata.rb'
306
241
 
307
- ChefDeprecations/ConflictsMetadata:
308
- Description: Don't use the deprecated 'conflicts' metadata value
242
+ ChefSharing/InvalidLicenseString:
243
+ Description: Cookbook metadata.rb does not use a SPDX compliant license string or "all rights reserved"
309
244
  Enabled: true
310
- VersionAdded: '5.1.0'
245
+ VersionAdded: '5.2.0'
246
+ VersionChanged: '5.15.0'
311
247
  Include:
312
248
  - '**/metadata.rb'
313
249
 
314
- ChefDeprecations/SuggestsMetadata:
315
- Description: Don't use the deprecated 'suggests' metadata value
250
+ ChefSharing/DefaultMetadataMaintainer:
251
+ Description: Metadata contains default maintainer information from the cookbook generator. Add actual cookbook maintainer information to the metadata.rb.
316
252
  Enabled: true
317
- VersionAdded: '5.1.0'
253
+ VersionAdded: '5.4.0'
254
+ VersionChanged: '5.15.0'
318
255
  Include:
319
256
  - '**/metadata.rb'
320
257
 
321
- ChefDeprecations/ProvidesMetadata:
322
- Description: Don't use the deprecated 'provides' metadata value
258
+ ChefSharing/EmptyMetadataField:
259
+ Description: metadata.rb should not include fields with an empty string. Either don't include the field or add a value.
323
260
  Enabled: true
324
- VersionAdded: '5.1.0'
261
+ VersionAdded: '5.8.0'
262
+ VersionChanged: '5.15.0'
325
263
  Include:
326
264
  - '**/metadata.rb'
327
265
 
328
- ChefDeprecations/ReplacesMetadata:
329
- Description: Don't use the deprecated 'replaces' metadata value
266
+ ###############################
267
+ # ChefDeprecations: Resolving Deprecations that block upgrading Chef Infra Client
268
+ ###############################
269
+
270
+ ChefDeprecations/NodeDeepFetch:
271
+ Description: Do not use the deprecated chef-sugar node.deep_fetch methods
330
272
  Enabled: true
331
- VersionAdded: '5.1.0'
332
- Include:
273
+ VersionAdded: '5.12.0'
274
+ Exclude:
333
275
  - '**/metadata.rb'
334
276
 
335
- ChefDeprecations/AttributeMetadata:
336
- Description: Don't use the deprecated 'attribute' metadata value
277
+ ChefDeprecations/NodeSet:
278
+ Description: Do not use the deprecated node.set method
279
+ Enabled: true
280
+ VersionAdded: '5.0.0'
281
+ Exclude:
282
+ - '**/metadata.rb'
283
+
284
+ ChefDeprecations/NodeSetUnless:
285
+ Description: Do not use the deprecated node.set_unless method
337
286
  Enabled: true
338
287
  VersionAdded: '5.1.0'
339
- Include:
288
+ Exclude:
340
289
  - '**/metadata.rb'
341
290
 
342
- ChefDeprecations/LongDescriptionMetadata:
343
- Description: The long_description metadata.rb method is not used and is unnecessary in cookbooks
291
+ ChefDeprecations/EpicFail:
292
+ Description: Use ignore_failure method instead of the deprecated epic_fail method
344
293
  Enabled: true
345
- VersionAdded: '5.2.0'
346
- Include:
294
+ VersionAdded: '5.1.0'
295
+ Exclude:
347
296
  - '**/metadata.rb'
348
297
 
349
- ChefDeprecations/RecipeMetadata:
350
- Description: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the README.md file instead.
298
+ ChefDeprecations/CookbookDependsOnPoise:
299
+ Description: Cookbooks should not depend on the deprecated Poise framework
351
300
  Enabled: true
352
- VersionAdded: '5.6.0'
301
+ VersionAdded: '5.1.0'
353
302
  Include:
354
303
  - '**/metadata.rb'
355
304
 
@@ -698,14 +647,6 @@ ChefModernize/CustomResourceWithAttributes:
698
647
  Include:
699
648
  - '**/resources/*.rb'
700
649
 
701
- ChefModernize/CustomResourceWithAllowedActions:
702
- Description: Resources no longer need to define the allowed actions using the allowed_actions / actions helper methods or within an initialize method.
703
- Enabled: true
704
- VersionAdded: '5.2.0'
705
- Include:
706
- - '**/resources/*.rb'
707
- - '**/libraries/*.rb'
708
-
709
650
  ChefModernize/IncludingAptDefaultRecipe:
710
651
  Description: Do not include the Apt default recipe to update package cache. Instead use the apt_update resource, which is built into Chef Infra Client 12.7 and later.
711
652
  Enabled: true
@@ -944,6 +885,136 @@ ChefModernize/ChefGemNokogiri:
944
885
  - '**/metadata.rb'
945
886
  - '**/attributes/*.rb'
946
887
 
888
+ ChefModernize/PropertyWithNameAttribute:
889
+ Description: Resource property sets name_attribute not name_property
890
+ Enabled: true
891
+ VersionAdded: '5.1.0'
892
+ VersionChanged: '5.15.0'
893
+ Include:
894
+ - '**/resources/*.rb'
895
+ - '**/libraries/*.rb'
896
+
897
+ ChefModernize/IncludingOhaiDefaultRecipe:
898
+ Description: Use the ohai_plugin resource to ship custom Ohai plugins instead of using the ohai::default recipe. If you're not shipping custom Ohai plugins, then you can remove this recipe entirely.
899
+ Enabled: true
900
+ VersionAdded: '5.4.0'
901
+ VersionChanged: '5.15.0'
902
+ Exclude:
903
+ - '**/metadata.rb'
904
+
905
+ ChefModernize/AllowedActionsFromInitialize:
906
+ Description: The allowed actions of a resource can be set with the "allowed_actions" helper instead of using the initialize method.
907
+ Enabled: true
908
+ VersionAdded: '5.15.0'
909
+ Include:
910
+ - '**/resources/*.rb'
911
+ - '**/libraries/*.rb'
912
+
913
+ ###############################
914
+ # ChefRedundantCode: Cleanup unncessary code in your cookbooks regardless of chef-client release
915
+ ###############################
916
+
917
+ ChefRedundantCode/ConflictsMetadata:
918
+ Description: Don't use the deprecated 'conflicts' metadata value
919
+ Enabled: true
920
+ VersionAdded: '5.1.0'
921
+ VersionChanged: '5.15.0'
922
+ Include:
923
+ - '**/metadata.rb'
924
+
925
+ ChefRedundantCode/SuggestsMetadata:
926
+ Description: Don't use the deprecated 'suggests' metadata value
927
+ Enabled: true
928
+ VersionAdded: '5.1.0'
929
+ VersionChanged: '5.15.0'
930
+ Include:
931
+ - '**/metadata.rb'
932
+
933
+ ChefRedundantCode/ProvidesMetadata:
934
+ Description: Don't use the deprecated 'provides' metadata value
935
+ Enabled: true
936
+ VersionAdded: '5.1.0'
937
+ VersionChanged: '5.15.0'
938
+ Include:
939
+ - '**/metadata.rb'
940
+
941
+ ChefRedundantCode/ReplacesMetadata:
942
+ Description: Don't use the deprecated 'replaces' metadata value
943
+ Enabled: true
944
+ VersionAdded: '5.1.0'
945
+ VersionChanged: '5.15.0'
946
+ Include:
947
+ - '**/metadata.rb'
948
+
949
+ ChefRedundantCode/AttributeMetadata:
950
+ Description: Don't use the deprecated 'attribute' metadata value
951
+ Enabled: true
952
+ VersionAdded: '5.1.0'
953
+ VersionChanged: '5.15.0'
954
+ Include:
955
+ - '**/metadata.rb'
956
+
957
+ ChefRedundantCode/LongDescriptionMetadata:
958
+ Description: The long_description metadata.rb method is not used and is unnecessary in cookbooks
959
+ Enabled: true
960
+ VersionAdded: '5.2.0'
961
+ VersionChanged: '5.15.0'
962
+ Include:
963
+ - '**/metadata.rb'
964
+
965
+ ChefRedundantCode/RecipeMetadata:
966
+ Description: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the README.md file instead.
967
+ Enabled: true
968
+ VersionAdded: '5.6.0'
969
+ VersionChanged: '5.15.0'
970
+ Include:
971
+ - '**/metadata.rb'
972
+
973
+ ChefRedundantCode/ResourceWithNothingAction:
974
+ Description: There is no need to define a :nothing action in your resource as Chef Infra Client provides the :nothing action by default for every resource.
975
+ Enabled: true
976
+ VersionAdded: '5.12.0'
977
+ VersionChanged: '5.15.0'
978
+ Include:
979
+ - '**/libraries/*.rb'
980
+ - '**/resources/*.rb'
981
+ - '**/providers/*.rb'
982
+
983
+ ChefRedundantCode/UnnecessaryNameProperty:
984
+ Description: There is no need to define a property named :name in a resource as Chef Infra defines that property for all resources by default.
985
+ Enabled: true
986
+ VersionAdded: '5.8.0'
987
+ VersionChanged: '5.15.0'
988
+ Include:
989
+ - '**/resources/*.rb'
990
+ - '**/libraries/*.rb'
991
+
992
+ ChefRedundantCode/PropertyWithRequiredAndDefault:
993
+ Description: Resource property should not be both required and have a default value
994
+ Enabled: true
995
+ VersionAdded: '5.1.0'
996
+ VersionChanged: '5.15.0'
997
+ Include:
998
+ - '**/resources/*.rb'
999
+ - '**/libraries/*.rb'
1000
+
1001
+ ChefRedundantCode/NamePropertyIsRequired:
1002
+ Description: Resource properties marked as name properties should not also be required properties
1003
+ Enabled: true
1004
+ VersionAdded: '5.1.0'
1005
+ VersionChanged: '5.15.0'
1006
+ Include:
1007
+ - '**/resources/*.rb'
1008
+ - '**/libraries/*.rb'
1009
+
1010
+ ChefRedundant/CustomResourceWithAllowedActions:
1011
+ Description: It is not necessary to set `actions` or `allowed_actions` in custom resources as Chef Infra Client determines these automatically from the set of all actions defined in the resource.
1012
+ Enabled: true
1013
+ VersionAdded: '5.2.0'
1014
+ VersionChanged: '5.15.0'
1015
+ Include:
1016
+ - '**/resources/*.rb'
1017
+
947
1018
  ###############################
948
1019
  # Migrating to new patterns
949
1020
  ###############################
@@ -9,7 +9,6 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['Thom May', 'Tim Smith']
10
10
  spec.email = ['thom@chef.io', 'tsmith@chef.io']
11
11
  spec.summary = 'Cookstyle is a code linting tool that helps you to write better Chef Infra cookbooks by detecting and automatically correcting style, syntax, and logic mistakes in your code.'
12
- spec.homepage = 'https://github.com/chef/cookstyle'
13
12
  spec.license = 'Apache-2.0'
14
13
  spec.required_ruby_version = '>= 2.4'
15
14
 
@@ -19,4 +18,12 @@ Gem::Specification.new do |spec|
19
18
  spec.require_paths = ['lib']
20
19
 
21
20
  spec.add_dependency('rubocop', Cookstyle::RUBOCOP_VERSION)
21
+
22
+ spec.metadata = {
23
+ 'homepage_uri' => 'https://github.com/chef/cookstyle',
24
+ 'changelog_uri' => 'https://github.com/chef/cookstyle/blob/master/CHANGELOG.md',
25
+ 'source_code_uri' => 'https://github.com/chef/cookstyle',
26
+ 'documentation_uri' => 'https://docs.chef.io/cookstyle.html',
27
+ 'bug_tracker_uri' => 'https://github.com/chef/cookstyle/issues',
28
+ }
22
29
  end
@@ -34,6 +34,7 @@ end
34
34
 
35
35
  require 'rubocop/chef'
36
36
  require 'rubocop/chef/cookbook_helpers'
37
+ require 'rubocop/chef/platform_helpers'
37
38
  require 'rubocop/chef/cookbook_only'
38
39
 
39
40
  # Chef specific cops
@@ -1,4 +1,4 @@
1
1
  module Cookstyle
2
- VERSION = "5.14.1".freeze # rubocop: disable Style/StringLiterals
2
+ VERSION = "5.15.7".freeze # rubocop: disable Style/StringLiterals
3
3
  RUBOCOP_VERSION = '0.75.1'.freeze
4
4
  end
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright:: Copyright 2019, Chef Software Inc.
3
+ # Author:: Tim Smith (<tsmith@chef.io>)
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
1
17
  module RuboCop
2
18
  module Chef
3
19
  # Common node helpers used for matching against Chef Infra Cookbooks