Skip to content

Commit

Permalink
Add more formatting rules to the rubocop config
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed May 22, 2021
1 parent 4f1feba commit 5564f84
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
AllCops:
NewCops: enable

Layout/FirstArrayElementIndentation:
Enabled: false

Layout/LineLength:
Max: 82

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Lint/AssignmentInCondition:
Enabled: false

Expand All @@ -10,7 +19,7 @@ Metrics/AbcSize:
Metrics/BlockLength:
CountComments: true
Max: 25
ExcludedMethods: []
IgnoredMethods: []
Exclude:
- "spec/**/*"

Expand All @@ -20,30 +29,33 @@ Metrics/ClassLength:
Metrics/CyclomaticComplexity:
Enabled: false

Layout/LineLength:
Max: 80

Metrics/MethodLength:
Max: 20

Naming/BinaryOperatorParameterName:
Enabled: false

Naming/FileName:
Exclude:
- "lib/tty-editor.rb"

Style/AsciiComments:
Enabled: false

Style/BlockDelimiters:
Enabled: false

Style/CommentedKeyword:
Enabled: false

Style/LambdaCall:
EnforcedStyle: braces

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/TrivialAccessors:
Enabled: false

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

Style/CommentedKeyword:
Style/TrivialAccessors:
Enabled: false

0 comments on commit 5564f84

Please sign in to comment.