Skip to content

Commit

Permalink
Add rubocop config
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Feb 8, 2021
1 parent bb9877a commit bfc339c
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
AllCops:
NewCops: enable

Layout/LineLength:
Max: 80

Lint/AssignmentInCondition:
Enabled: false

Metrics/AbcSize:
Max: 35

Metrics/BlockLength:
CountComments: true
Max: 32
IgnoredMethods: []
Exclude:
- "spec/**/*"

Metrics/ClassLength:
Max: 1500

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/MethodLength:
Max: 20

Naming/BinaryOperatorParameterName:
Enabled: false

Style/AccessorGrouping:
Enabled: false

Style/AsciiComments:
Enabled: false

Style/LambdaCall:
EnforcedStyle: braces

Style/FormatString:
EnforcedStyle: percent

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/TrivialAccessors:
Enabled: false

# { ... } for multi-line blocks is okay
Style/BlockDelimiters:
Enabled: false

Style/CommentedKeyword:
Enabled: false

0 comments on commit bfc339c

Please sign in to comment.