lib/rubocop/cop/chef/deprecation/run_command_helper.rb in cookstyle-5.23.0 vs lib/rubocop/cop/chef/deprecation/run_command_helper.rb in cookstyle-6.0.19
- old
+ new
@@ -41,18 +41,18 @@
def_node_search :defines_run_command?, '(def {:run_command :run_command_with_systems_locale} ...)'
def on_send(node)
calls_run_command?(node) do
- add_offense(node, location: :expression, message: MSG, severity: :refactor) unless defines_run_command?(processed_source.ast)
+ add_offense(node, location: :expression, message: MSG, severity: :warning) unless defines_run_command?(processed_source.ast)
end
require_mixin_command?(node) do
- add_offense(node, location: :expression, message: MSG, severity: :refactor)
+ add_offense(node, location: :expression, message: MSG, severity: :warning)
end
include_mixin_command?(node) do
- add_offense(node, location: :expression, message: MSG, severity: :refactor)
+ add_offense(node, location: :expression, message: MSG, severity: :warning)
end
end
end
end
end