cookstyle 6.3.4 → 6.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/config/cookstyle.yml +290 -15
  4. data/config/disable_all.yml +13 -1
  5. data/config/upstream.yml +82 -22
  6. data/lib/cookstyle.rb +1 -1
  7. data/lib/cookstyle/version.rb +2 -2
  8. data/lib/rubocop/chef/platform_helpers.rb +2 -1
  9. data/lib/rubocop/cop/chef/correctness/invalid_platform_family_values_in_case.rb +77 -0
  10. data/lib/rubocop/cop/chef/correctness/invalid_platform_values_in_case.rb +77 -0
  11. data/lib/rubocop/cop/chef/correctness/lazy_eval_node_attribute_defaults.rb +56 -0
  12. data/lib/rubocop/cop/chef/correctness/node_normal.rb +1 -1
  13. data/lib/rubocop/cop/chef/correctness/node_normal_unless.rb +1 -1
  14. data/lib/rubocop/cop/chef/correctness/openssl_password_helpers.rb +45 -0
  15. data/lib/rubocop/cop/chef/deprecation/depends_compat_resource.rb +1 -1
  16. data/lib/rubocop/cop/chef/deprecation/depends_partial_search.rb +1 -1
  17. data/lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb +10 -4
  18. data/lib/rubocop/cop/chef/deprecation/easy_install.rb +2 -2
  19. data/lib/rubocop/cop/chef/deprecation/erl_call.rb +1 -1
  20. data/lib/rubocop/cop/chef/deprecation/hwrp_without_provides.rb +141 -0
  21. data/lib/rubocop/cop/chef/deprecation/locale_lc_all_property.rb +2 -2
  22. data/lib/rubocop/cop/chef/deprecation/node_methods_not_attributes.rb +1 -1
  23. data/lib/rubocop/cop/chef/deprecation/node_set.rb +2 -3
  24. data/lib/rubocop/cop/chef/deprecation/node_set_unless.rb +2 -3
  25. data/lib/rubocop/cop/chef/deprecation/powershell_cookbook_helpers.rb +3 -3
  26. data/lib/rubocop/cop/chef/deprecation/resource_uses_only_resource_name.rb +86 -0
  27. data/lib/rubocop/cop/chef/deprecation/ruby_27_keyword_argument_warnings.rb +59 -0
  28. data/lib/rubocop/cop/chef/deprecation/user_supports_property.rb +6 -1
  29. data/lib/rubocop/cop/chef/deprecation/xml_ruby_recipe.rb +3 -3
  30. data/lib/rubocop/cop/chef/modernize/includes_mixin_shellout.rb +24 -3
  31. data/lib/rubocop/cop/chef/modernize/shell_out_helper.rb +64 -0
  32. data/lib/rubocop/cop/chef/modernize/use_multipackage_installs.rb +8 -4
  33. data/lib/rubocop/cop/chef/style/overly_complex_supports_depends_metadata.rb +1 -1
  34. data/lib/rubocop/cop/target_chef_version.rb +4 -0
  35. data/lib/rubocop/monkey_patches/team.rb +24 -0
  36. metadata +13 -6
  37. data/lib/rubocop/cop/chef/deprecation/resource_without_name_or_provides.rb +0 -81
  38. data/lib/rubocop/monkey_patches/commissioner.rb +0 -26
@@ -17,10 +17,9 @@ module RuboCop
17
17
  module Cop
18
18
  module Chef
19
19
  module ChefDeprecations
20
- # The node.set method has been removed in Chef-13 and must be replaced by node.normal.
20
+ # The `node.set` method has been removed in Chef Infra Client 13 and usage must be replaced with `node.normal`.
21
21
  #
22
- # Note that node.normal keeps the semantics identical, but the use of node.normal is
23
- # also discouraged.
22
+ # This cop will autocorrect code to use node.normal, which is functionally identical to node.set, but we also discourage the use of that method as normal level attributes persist on the node even if the code setting the attribute is later removed.
24
23
  #
25
24
  # @example
26
25
  #
@@ -17,10 +17,9 @@ module RuboCop
17
17
  module Cop
18
18
  module Chef
19
19
  module ChefDeprecations
20
- # The node.set_unless method has been removed in Chef-13 and must be replaced by node.normal_unless.
20
+ # The node.set_unless method has been removed in Chef Infra Client 13 and usage must be replaced with node.normal_unless.
21
21
  #
22
- # Note that node.normal_unless keeps the semantics identical, but the use of node.normal is
23
- # also discouraged.
22
+ # This cop will autocorrect code to use node.normal_unless, which is functionally identical to node.set_unless, but we also discourage the use of that method as normal level attributes persist on the node even if the code setting the attribute is later removed.
24
23
  #
25
24
  # @example
26
25
  #
@@ -18,7 +18,7 @@ module RuboCop
18
18
  module Cop
19
19
  module Chef
20
20
  module ChefDeprecations
21
- # Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 16+ instead of the deprecated PowerShell cookbook helpers
21
+ # Use `node['powershell']['version']` or the new `powershell_version` helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers
22
22
  #
23
23
  # @example
24
24
  #
@@ -28,11 +28,11 @@ module RuboCop
28
28
  # # good
29
29
  # node['powershell']['version'].to_f == 4.0
30
30
  #
31
- # # good (Chef Infra Client 16+)
31
+ # # better (Chef Infra Client 15.8+)
32
32
  # powershell_version == 4.0
33
33
  #
34
34
  class PowershellCookbookHelpers < Cop
35
- MSG = "Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 16+ instead of the deprecated PowerShell cookbook helpers.".freeze
35
+ MSG = "Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers.".freeze
36
36
 
37
37
  def_node_matcher :ps_cb_helper?, <<-PATTERN
38
38
  (send
@@ -0,0 +1,86 @@
1
+ #
2
+ # Copyright:: Copyright (c) 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
+ #
17
+ module RuboCop
18
+ module Cop
19
+ module Chef
20
+ module ChefDeprecations
21
+ # Starting with Chef Infra Client 16, using `resource_name` without also using `provides` will result in resource failures. Make sure to use both `resource_name` and `provides` to change the name of the resource. You can also omit `resource_name` entirely if the value set matches the name Chef Infra Client automatically assigns based on COOKBOOKNAME_FILENAME.
22
+ #
23
+ # @example
24
+ #
25
+ # # bad
26
+ # mycookbook/resources/myresource.rb:
27
+ # resource_name :mycookbook_myresource
28
+ #
29
+ class ResourceUsesOnlyResourceName < Cop
30
+ include RuboCop::Chef::CookbookHelpers
31
+ include RangeHelp
32
+
33
+ MSG = 'Starting with Chef Infra Client 16, using `resource_name` without also using `provides` will result in resource failures. Make sure to use both `resource_name` and `provides` to change the name of the resource. You can also omit `resource_name` entirely if the value set matches the name Chef Infra Client automatically assigns based on COOKBOOKNAME_FILENAME.'.freeze
34
+
35
+ def_node_matcher :resource_name?, '(send nil? :resource_name (sym $_ ))'
36
+
37
+ def_node_search :cb_name_match, '(send nil? :name (str $_))'
38
+
39
+ def_node_search :provides, '(send nil? :provides (sym $_) ...)'
40
+
41
+ # determine the cookbook name either by parsing metdata.rb or by parsing metata.json
42
+ #
43
+ # @returns [String] the cookbook name
44
+ def cookbook_name
45
+ cb_path = File.expand_path(File.join(processed_source.file_path, '../..'))
46
+
47
+ if File.exist?(File.join(cb_path, 'metadata.rb'))
48
+ cb_metadata_ast = ProcessedSource.from_file(File.join(cb_path, 'metadata.rb'), @config.target_ruby_version).ast
49
+ cb_name_match(cb_metadata_ast).first
50
+ elsif File.exist?(File.join(cb_path, 'metadata.json')) # this exists only for supermarket files that lack metadata.rb
51
+ JSON.parse(File.read(File.join(cb_path, 'metadata.json')))['name']
52
+ end
53
+ end
54
+
55
+ # given a resource name make sure there's a provides that matches that name
56
+ #
57
+ # @returns [TrueClass, FalseClass]
58
+ def valid_provides?(resource_name)
59
+ provides_ast = provides(processed_source.ast)
60
+ return false unless provides_ast
61
+
62
+ provides_ast.include?(resource_name)
63
+ end
64
+
65
+ def on_send(node)
66
+ resource_name?(node) do |r_name|
67
+ add_offense(node, location: :expression, message: MSG, severity: :warning) unless valid_provides?(r_name)
68
+ end
69
+ end
70
+
71
+ def autocorrect(node)
72
+ lambda do |corrector|
73
+ resource_name?(node) do |name|
74
+ if name.to_s == "#{cookbook_name}_#{File.basename(processed_source.path, '.rb')}"
75
+ corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left))
76
+ else
77
+ corrector.insert_after(node.source_range, "\n#{node.source.gsub('resource_name', 'provides')}")
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,59 @@
1
+ #
2
+ # Copyright:: 2020, 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
+ #
17
+
18
+ module RuboCop
19
+ module Cop
20
+ module Chef
21
+ module ChefDeprecations
22
+ # Pass options to shell_out helpers without the brackets to avoid Ruby 2.7 deprecation warnings.
23
+ #
24
+ # @example
25
+ #
26
+ # # bad
27
+ # shell_out!('hostnamectl status', { returns: [0, 1] })
28
+ # shell_out('hostnamectl status', { returns: [0, 1] })
29
+ #
30
+ # # good
31
+ # shell_out!('hostnamectl status', returns: [0, 1])
32
+ # shell_out('hostnamectl status', returns: [0, 1])
33
+ #
34
+ class Ruby27KeywordArgumentWarnings < Cop
35
+ include RuboCop::Chef::CookbookHelpers
36
+
37
+ MSG = 'Pass options to shell_out helpers without the brackets to avoid Ruby 2.7 deprecation warnings.'.freeze
38
+
39
+ def_node_matcher :positional_shellout?, <<-PATTERN
40
+ (send nil? {:shell_out :shell_out!} ... $(hash ... ))
41
+ PATTERN
42
+
43
+ def on_send(node)
44
+ positional_shellout?(node) do |h|
45
+ add_offense(h, location: :expression, message: MSG, severity: :refactor) if h.braces?
46
+ end
47
+ end
48
+
49
+ def autocorrect(node)
50
+ lambda do |corrector|
51
+ # @todo when we drop ruby 2.4 support we can convert to to just delete_prefix delete_suffix
52
+ corrector.replace(node.loc.expression, node.loc.expression.source.gsub(/^{/, '').gsub(/}$/, ''))
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -54,8 +54,13 @@ module RuboCop
54
54
  def autocorrect(node)
55
55
  lambda do |corrector|
56
56
  new_text = []
57
+
57
58
  node.arguments.first.each_pair do |k, v|
58
- new_text << "#{k.value} #{v.source}"
59
+ # account for a strange edge case where the person incorrectly makes "manage_home a method
60
+ # the code would be broken, but without this handling cookstyle would explode
61
+ key_value = (k.send_type? && k.method_name == :manage_home) ? 'manage_home' : k.value
62
+
63
+ new_text << "#{key_value} #{v.source}"
59
64
  end
60
65
 
61
66
  corrector.replace(node.loc.expression, new_text.join("\n "))
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: 2019, Chef Software, Inc.
2
+ # Copyright:: 2019-2020, Chef Software, Inc.
3
3
  # Author:: Tim Smith (<tsmith@chef.io>)
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,8 +18,7 @@ module RuboCop
18
18
  module Cop
19
19
  module Chef
20
20
  module ChefDeprecations
21
- # Do not include the deprecated xml::ruby recipe to install the nokogiri gem.
22
- # Chef Infra Client 12 and later ships with nokogiri included.
21
+ # Do not include the deprecated xml::ruby recipe to install the nokogiri gem. Chef Infra Client 12 and later ships with nokogiri included.
23
22
  #
24
23
  # @example
25
24
  #
@@ -35,6 +34,7 @@ module RuboCop
35
34
 
36
35
  def on_send(node)
37
36
  xml_ruby_recipe?(node) do
37
+ node = node.parent if node.parent&.conditional? && node.parent&.single_line_condition? # make sure we catch any inline conditionals
38
38
  add_offense(node, location: :expression, message: MSG, severity: :warning)
39
39
  end
40
40
  end
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: 2019, Chef Software Inc.
2
+ # Copyright:: 2019-2020, Chef Software Inc.
3
3
  # Author:: Tim Smith (<tsmith@chef.io>)
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -42,13 +42,34 @@ module RuboCop
42
42
  (send nil? :require ( str {"chef/mixin/shell_out" "chef/mixin/powershell_out"} ))
43
43
  PATTERN
44
44
 
45
+ def_node_search :hwrp_classes?, <<-PATTERN
46
+ (class
47
+ (const ... )
48
+ {(const
49
+ (const
50
+ (const nil? :Chef) :Provider) :LWRPBase)
51
+ (const
52
+ (const nil? :Chef) :Provider)
53
+ }
54
+ ...)
55
+ PATTERN
56
+
57
+ def check_for_offenses(node)
58
+ containing_dir = File.basename(File.dirname(processed_source.path))
59
+
60
+ # only add offenses when we're in a custom resource or HWRP, but not a plain old library
61
+ if containing_dir == 'resources' || hwrp_classes?(processed_source.ast)
62
+ add_offense(node, location: :expression, message: MSG, severity: :refactor)
63
+ end
64
+ end
65
+
45
66
  def on_send(node)
46
67
  require_shellout?(node) do
47
- add_offense(node, location: :expression, message: MSG, severity: :refactor)
68
+ check_for_offenses(node)
48
69
  end
49
70
 
50
71
  include_shellout?(node) do
51
- add_offense(node, location: :expression, message: MSG, severity: :refactor)
72
+ check_for_offenses(node)
52
73
  end
53
74
  end
54
75
 
@@ -0,0 +1,64 @@
1
+ #
2
+ # 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
+ #
17
+
18
+ module RuboCop
19
+ module Cop
20
+ module Chef
21
+ module ChefModernize
22
+ # Use the built-in `shell_out` helper available in Chef Infra Client 12.11+ instead of calling `Mixlib::ShellOut.new('foo').run_command`.
23
+ #
24
+ # @example
25
+ #
26
+ # # bad
27
+ # Mixlib::ShellOut.new('foo').run_command
28
+ #
29
+ # # good
30
+ # shell_out('foo')
31
+ #
32
+ class ShellOutHelper < Cop
33
+ extend TargetChefVersion
34
+
35
+ minimum_target_chef_version '12.11'
36
+
37
+ MSG = "Use the built-in `shell_out` helper available in Chef Infra Client 12.11+ instead of calling `Mixlib::ShellOut.new('foo').run_command`.".freeze
38
+
39
+ def_node_matcher :mixlib_shellout_run_cmd?, <<-PATTERN
40
+ (send
41
+ (send
42
+ (const
43
+ (const nil? :Mixlib) :ShellOut) :new
44
+ $(...)) :run_command)
45
+ PATTERN
46
+
47
+ def on_send(node)
48
+ mixlib_shellout_run_cmd?(node) do
49
+ add_offense(node, location: :expression, message: MSG, severity: :refactor)
50
+ end
51
+ end
52
+
53
+ def autocorrect(node)
54
+ mixlib_shellout_run_cmd?(node) do |cmd|
55
+ lambda do |corrector|
56
+ corrector.replace(node.loc.expression, "shell_out(#{cmd.loc.expression.source})")
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -47,12 +47,14 @@ module RuboCop
47
47
  (send
48
48
  $(array ... ) :each)
49
49
  (args ... )
50
- (block
50
+ {(block
51
51
  (send nil? :package
52
52
  (lvar ... ))
53
53
  (args)
54
54
  (send nil? :action
55
- (sym :install)))) nil?)
55
+ (sym :install)))
56
+ (send nil? :package
57
+ (lvar _))}) nil?)
56
58
  PATTERN
57
59
 
58
60
  def_node_matcher :package_array_install?, <<-PATTERN
@@ -60,12 +62,14 @@ module RuboCop
60
62
  (send
61
63
  $(array ... ) :each)
62
64
  (args ... )
63
- (block
65
+ {(block
64
66
  (send nil? :package
65
67
  (lvar ... ))
66
68
  (args)
67
69
  (send nil? :action
68
- (sym :install))))
70
+ (sym :install)))
71
+ (send nil? :package
72
+ (lvar _))})
69
73
  PATTERN
70
74
 
71
75
  # see if all platforms in the when condition are multipackage compliant
@@ -18,7 +18,7 @@ module RuboCop
18
18
  module Cop
19
19
  module Chef
20
20
  module ChefStyle
21
- # Don't loop over an array to set cookbook dependencies or supported platforms if you have fewer than three values to set. Setting multiple `supports` or `depends` values is simpler and easier to understand for new users.
21
+ # Don't loop over an array to set cookbook dependencies or supported platforms if you have fewer than three values to set. Setting multiple `supports` or `depends` values is simpler and easier to understand for new users.
22
22
  #
23
23
  # @example
24
24
  #
@@ -6,6 +6,10 @@ module RuboCop
6
6
  module Cop
7
7
  # Common functionality for checking target chef version.
8
8
  module TargetChefVersion
9
+ def required_minimum_chef_version
10
+ @minimum_target_chef_version
11
+ end
12
+
9
13
  def minimum_target_chef_version(version)
10
14
  @minimum_target_chef_version = version
11
15
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RuboCop
4
+ module Cop
5
+ class Team
6
+ def support_target_chef_version?(cop)
7
+ return true unless cop.class.respond_to?(:support_target_chef_version?)
8
+
9
+ cop.class.support_target_chef_version?(cop.target_chef_version)
10
+ end
11
+
12
+ ### START COOKSTYLE MODIFICATION
13
+ def roundup_relevant_cops(filename)
14
+ cops.reject do |cop|
15
+ cop.excluded_file?(filename) ||
16
+ !support_target_ruby_version?(cop) ||
17
+ !support_target_chef_version?(cop) ||
18
+ !support_target_rails_version?(cop)
19
+ end
20
+ end
21
+ ### END COOKSTYLE MODIFICATION
22
+ end
23
+ end
24
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.4
4
+ version: 6.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-16 00:00:00.000000000 Z
12
+ date: 2020-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.82.0
20
+ version: 0.85.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.82.0
27
+ version: 0.85.1
28
28
  description:
29
29
  email:
30
30
  - thom@chef.io
@@ -57,17 +57,21 @@ files:
57
57
  - lib/rubocop/cop/chef/correctness/incorrect_library_injection.rb
58
58
  - lib/rubocop/cop/chef/correctness/invalid_notification_timing.rb
59
59
  - lib/rubocop/cop/chef/correctness/invalid_platform_family_helper.rb
60
+ - lib/rubocop/cop/chef/correctness/invalid_platform_family_values_in_case.rb
60
61
  - lib/rubocop/cop/chef/correctness/invalid_platform_helper.rb
61
62
  - lib/rubocop/cop/chef/correctness/invalid_platform_metadata.rb
63
+ - lib/rubocop/cop/chef/correctness/invalid_platform_values_in_case.rb
62
64
  - lib/rubocop/cop/chef/correctness/invalid_value_for_platform_family_helper.rb
63
65
  - lib/rubocop/cop/chef/correctness/invalid_value_for_platform_helper.rb
64
66
  - lib/rubocop/cop/chef/correctness/invalid_version_metadata.rb
67
+ - lib/rubocop/cop/chef/correctness/lazy_eval_node_attribute_defaults.rb
65
68
  - lib/rubocop/cop/chef/correctness/malformed_value_for_platform.rb
66
69
  - lib/rubocop/cop/chef/correctness/metadata_missing_name.rb
67
70
  - lib/rubocop/cop/chef/correctness/node_normal.rb
68
71
  - lib/rubocop/cop/chef/correctness/node_normal_unless.rb
69
72
  - lib/rubocop/cop/chef/correctness/node_save.rb
70
73
  - lib/rubocop/cop/chef/correctness/notifies_action_not_symbol.rb
74
+ - lib/rubocop/cop/chef/correctness/openssl_password_helpers.rb
71
75
  - lib/rubocop/cop/chef/correctness/powershell_delete_file.rb
72
76
  - lib/rubocop/cop/chef/correctness/resource_sets_internal_properties.rb
73
77
  - lib/rubocop/cop/chef/correctness/resource_sets_name_property.rb
@@ -96,6 +100,7 @@ files:
96
100
  - lib/rubocop/cop/chef/deprecation/eol_audit_mode.rb
97
101
  - lib/rubocop/cop/chef/deprecation/epic_fail.rb
98
102
  - lib/rubocop/cop/chef/deprecation/erl_call.rb
103
+ - lib/rubocop/cop/chef/deprecation/hwrp_without_provides.rb
99
104
  - lib/rubocop/cop/chef/deprecation/inherits_compat_resource.rb
100
105
  - lib/rubocop/cop/chef/deprecation/launchd_deprecated_hash_property.rb
101
106
  - lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb
@@ -115,9 +120,10 @@ files:
115
120
  - lib/rubocop/cop/chef/deprecation/require_recipe.rb
116
121
  - lib/rubocop/cop/chef/deprecation/resource_overrides_provides_method.rb
117
122
  - lib/rubocop/cop/chef/deprecation/resource_uses_dsl_name_method.rb
123
+ - lib/rubocop/cop/chef/deprecation/resource_uses_only_resource_name.rb
118
124
  - lib/rubocop/cop/chef/deprecation/resource_uses_provider_base_method.rb
119
125
  - lib/rubocop/cop/chef/deprecation/resource_uses_updated_method.rb
120
- - lib/rubocop/cop/chef/deprecation/resource_without_name_or_provides.rb
126
+ - lib/rubocop/cop/chef/deprecation/ruby_27_keyword_argument_warnings.rb
121
127
  - lib/rubocop/cop/chef/deprecation/ruby_block_create_action.rb
122
128
  - lib/rubocop/cop/chef/deprecation/run_command_helper.rb
123
129
  - lib/rubocop/cop/chef/deprecation/search_uses_positional_parameters.rb
@@ -183,6 +189,7 @@ files:
183
189
  - lib/rubocop/cop/chef/modernize/respond_to_resource_name.rb
184
190
  - lib/rubocop/cop/chef/modernize/sc_windows_resource.rb
185
191
  - lib/rubocop/cop/chef/modernize/seven_zip_archive.rb
192
+ - lib/rubocop/cop/chef/modernize/shell_out_helper.rb
186
193
  - lib/rubocop/cop/chef/modernize/shellouts_to_chocolatey.rb
187
194
  - lib/rubocop/cop/chef/modernize/simplify_apt_ppa_setup.rb
188
195
  - lib/rubocop/cop/chef/modernize/systctl_param_resource.rb
@@ -238,9 +245,9 @@ files:
238
245
  - lib/rubocop/cop/chef/style/use_platform_helpers.rb
239
246
  - lib/rubocop/cop/target_chef_version.rb
240
247
  - lib/rubocop/monkey_patches/comment_config.rb
241
- - lib/rubocop/monkey_patches/commissioner.rb
242
248
  - lib/rubocop/monkey_patches/config.rb
243
249
  - lib/rubocop/monkey_patches/cop.rb
250
+ - lib/rubocop/monkey_patches/team.rb
244
251
  homepage:
245
252
  licenses:
246
253
  - Apache-2.0