Skip to content

Commit

Permalink
Remove unused rubocops
Browse files Browse the repository at this point in the history
  • Loading branch information
Burgestrand committed Mar 7, 2024
1 parent 3982ac3 commit f276b6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -62,12 +53,6 @@ Style/StringLiteralsInInterpolation:
Style/StructInheritance:
Enabled: false

Style/AndOr:
Enabled: false

Style/Not:
Enabled: false

Style/DoubleNegation:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion lib/pundit/policy_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f276b6a

Please sign in to comment.