Skip to content

Commit

Permalink
customized rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed May 3, 2024
1 parent 4d09848 commit dba7ea3
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ AllCops:
Layout/ExtraSpacing:
AllowBeforeTrailingComments: true

Layout/LineLength:
Max: 175

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: space

Expand All @@ -30,13 +33,15 @@ Metrics/AbcSize:
CountRepeatedAttributes: false
Max: 25
Exclude:
- 'test/**/*'
- 'spec/**/*'
- 'tasks/**/*'

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

Metrics/ClassLength:
Expand All @@ -45,23 +50,32 @@ Metrics/ClassLength:
- heredoc
- array

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

Metrics/CyclomaticComplexity:
Max: 10

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

Metrics/ParameterLists:
CountKeywordArgs: false

Naming/PredicateName:
Enabled: false

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

Style/StringLiterals:
Enabled: true
Expand All @@ -71,13 +85,20 @@ Style/StringLiterals:
Style/SafeNavigation:
Enabled: false

# this gem outputs to stderr on purpose
Style/StderrPuts:
Enabled: false

Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex

Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrivialAccessors:
Exclude:
- lib/launchy.rb

ThreadSafety/InstanceVariableInClassMethod:
Enabled: false

0 comments on commit dba7ea3

Please sign in to comment.