Skip to content

Commit

Permalink
Add metrics, naming and style rules to the rubocop configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Mar 27, 2024
1 parent e25f8be commit 01698aa
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions .rubocop.yml
Expand Up @@ -2,60 +2,53 @@ AllCops:
NewCops: enable
TargetRubyVersion: 2.0

Layout/FirstArrayElementIndentation:
Gemspec/DevelopmentDependencies:
Enabled: false

Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent

Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

Layout/LineLength:
Max: 82
Max: 80

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Metrics/AbcSize:
Max: 35

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

Metrics/ClassLength:
Max: 1500

Metrics/CyclomaticComplexity:
Max: 10

Metrics/MethodLength:
Max: 20
Metrics/ModuleLength:
Enabled: false

Metrics/PerceivedComplexity:
Max: 10
Max: 5

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

Style/AccessorGrouping:
Enabled: false

Style/AsciiComments:
Enabled: false

Style/BlockDelimiters:
Enabled: false

Style/CommentedKeyword:
Enabled: false

Style/FetchEnvVar:
Enabled: false

Style/LambdaCall:
EnforcedStyle: braces

Style/ParallelAssignment:
Enabled: false

Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes

0 comments on commit 01698aa

Please sign in to comment.