From f276b6a4f1180310e88b3e7c4ceda8ccf905876b Mon Sep 17 00:00:00 2001 From: Kim Burgestrand Date: Thu, 7 Mar 2024 10:05:21 +0100 Subject: [PATCH] Remove unused rubocops --- .rubocop.yml | 15 --------------- lib/pundit/policy_finder.rb | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) 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)