Skip to content

Commit

Permalink
Add rubocop configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Aug 11, 2021
1 parent aa9944f commit 24aa67e
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,55 @@
AllCops:
NewCops: enable

Layout/FirstArrayElementIndentation:
Enabled: false

Layout/LineLength:
Max: 82

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Metrics/AbcSize:
Max: 35

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

Metrics/ClassLength:
Max: 1500

Metrics/CyclomaticComplexity:
Max: 10

Metrics/MethodLength:
Max: 20

Metrics/PerceivedComplexity:
Max: 10

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

Style/AsciiComments:
Enabled: false

Style/BlockDelimiters:
Enabled: false

Style/CommentedKeyword:
Enabled: false

Style/LambdaCall:
EnforcedStyle: braces

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes

0 comments on commit 24aa67e

Please sign in to comment.