class RuboCop::Cop::Chef::Correctness::InvalidDefaultAction
Default actions in resources should be symbols or an array of symbols.
@example
#### incorrect default_action 'create' #### correct default_action :create
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/correctness/invalid_default_action.rb, line 38 def on_send(node) default_action?(node) do |match| return if %i(send sym array).include?(match.type) add_offense(node, severity: :refactor) end end