varvet/godmin

View on GitHub
lib/godmin/resources/resource_service/batch_actions.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for include_batch_action? is too high. [18.71/15]
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)) ||

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

There are no issues that match your filters.

Category
Status