diff --git a/.rubocop.yml b/.rubocop.yml index 973e4a9d..007b2a28 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -23,15 +23,6 @@ Metrics/ModuleLength: Layout/LineLength: Max: 120 -Metrics/AbcSize: - Enabled: false - -Metrics/CyclomaticComplexity: - Enabled: false - -Metrics/PerceivedComplexity: - Enabled: false - Gemspec/RequiredRubyVersion: Enabled: false @@ -62,12 +53,6 @@ Style/StringLiteralsInInterpolation: Style/StructInheritance: Enabled: false -Style/AndOr: - Enabled: false - -Style/Not: - Enabled: false - Style/DoubleNegation: Enabled: false diff --git a/lib/pundit/policy_finder.rb b/lib/pundit/policy_finder.rb index 40467d9d..ecc6e9bb 100644 --- a/lib/pundit/policy_finder.rb +++ b/lib/pundit/policy_finder.rb @@ -56,7 +56,7 @@ def policy! # @return [String] the name of the key this object would have in a params hash # - def param_key + def param_key # rubocop:disable Metrics/AbcSize model = object.is_a?(Array) ? object.last : object if model.respond_to?(:model_name)