Skip to content

Commit

Permalink
tune rubocop for this codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed Apr 29, 2024
1 parent 0be26dd commit 2b551f5
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ AllCops:
- 'tmp/**/*'
- '*.gemspec'
- 'vendor/bundle/**/*'
- 'examples/*'

Layout/ExtraSpacing:
AllowBeforeTrailingComments: true
Expand All @@ -30,41 +31,28 @@ Metrics/AbcSize:
CountRepeatedAttributes: false
Max: 25
Exclude:
- 'test/**/*'
- 'tasks/**/*'

Metrics/BlockLength:
CountAsOne:
- heredoc
Exclude:
- 'tasks/**/*'
- 'spec/**/*'

Metrics/ClassLength:
Max: 175
CountAsOne:
- heredoc
- array

Metrics/CyclomaticComplexity:
Max: 10
Exclude:
- 'tasks/**/*'

Metrics/MethodLength:
Max: 20
CountAsOne:
- heredoc
- array
Exclude:
- 'test/**/*'

Metrics/ParameterLists:
CountKeywordArgs: false
# keeps want to combine examples
Style/CombinableLoops:
Exclude:
- README.md

Style/Documentation:
Exclude:
- 'test/**/*'

Style/SafeNavigation:
Enabled: false
- 'spec/**/*'

Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex
Expand All @@ -81,3 +69,5 @@ Style/StringLiterals:

ThreadSafety/InstanceVariableInClassMethod:
Enabled: false
ThreadSafety/NewThread:
Enabled: false

0 comments on commit 2b551f5

Please sign in to comment.