lib/rubocop/cop/chef/deprecation/deprecated_mixins.rb in cookstyle-7.30.1 vs lib/rubocop/cop/chef/deprecation/deprecated_mixins.rb in cookstyle-7.30.3

- old
+ new

@@ -52,22 +52,22 @@ (send nil? :require ( str {"chef/mixin/language" "chef/mixin/language_include_attribute" "chef/mixin/language_include_recipe"})) PATTERN def on_send(node) deprecated_mixin?(node) do - add_offense(node, message: MSG, severity: :warning) do |corrector| + add_offense(node, severity: :warning) do |corrector| corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left)) end end deprecated_dsl?(node) do - add_offense(node, message: MSG, severity: :warning) do |corrector| + add_offense(node, severity: :warning) do |corrector| corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left)) end end dsl_mixin_require?(node) do - add_offense(node, message: MSG, severity: :warning) do |corrector| + add_offense(node, severity: :warning) do |corrector| corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left)) end end end end