Skip to content

Commit

Permalink
style: move the rubocop violations which are not intended for fixing …
Browse files Browse the repository at this point in the history
…to .rubocop.yml

.rubocop_todo.yml should not exist, but if it does it should contain only exceptions pending for correction
  • Loading branch information
knarewski committed Nov 11, 2024
1 parent 04f65b2 commit 7f969dc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
15 changes: 15 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,18 @@ AllCops:

Metrics/BlockLength:
CountAsOne: ['array', 'hash', 'heredoc', 'method_call']
AllowedMethods:
- describe
- context
- shared_examples
- RSpec::Matchers.define

Naming/MethodParameterName:
AllowedNames:
- x
- y
- cr
- x1
- y1
- x2
- y2
20 changes: 0 additions & 20 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ Gemspec/RequiredRubyVersion:
Metrics/AbcSize:
Max: 94

# Offense count: 3
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
# IgnoredMethods: refine
Metrics/BlockLength:
AllowedMethods:
- describe
- context
- shared_examples
- RSpec::Matchers.define

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Expand All @@ -53,16 +43,6 @@ Metrics/ParameterLists:
Metrics/PerceivedComplexity:
Max: 17

Naming/MethodParameterName:
AllowedNames:
- x
- y
- cr
- x1
- y1
- x2
- y2

# Offense count: 1
Naming/AccessorMethodName:
Exclude:
Expand Down

0 comments on commit 7f969dc

Please sign in to comment.