lib/godmin/resources/resource_service/batch_actions.rb
Assignment Branch Condition size for include_batch_action? is too high. [18.71/15] Open
Open
def include_batch_action?(action)
options = batch_action_map[action.to_sym]
(options[:only].nil? && options[:except].nil?) ||
(options[:only] && options[:only].include?(scope.to_sym)) ||
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric