Skip to content

Commit

Permalink
add a cop for line length
Browse files Browse the repository at this point in the history
  • Loading branch information
swiknaba committed Mar 19, 2024
1 parent d3209c8 commit 34abeae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/cops/layout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ Layout/ParameterAlignment:
SupportedStyles:
- with_first_parameter
- with_fixed_indentation

Layout/LineLength:
Max: 120
Safe: false
AllowedPatterns: ['\s#\s'] # allows comments to overflow the line length. E.g. for URLs
Exclude:
- 'spec/**/*'

0 comments on commit 34abeae

Please sign in to comment.