Showing 2 of 2 total issues
Method initialize
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def initialize(options = {}) if options.is_a? String message = options else @query = options[:query]
- Read upRead up
Method cached_find
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def cached_find(record) policy_cache.fetch(user: user, record: record) do klass = yield policy_finder(record) next unless klass
- Read upRead up