Skip to content

Commit

Permalink
Updating shared rubocop config with commonly-used modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaangott committed Mar 22, 2023
1 parent 96806d5 commit 2e0e804
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Feel free to use rubocop-md for linting Markdown files with Ruby code snippets

require:
- rubocop-capybara
- rubocop-performance
- rubocop-rails
- rubocop-rake
Expand Down Expand Up @@ -44,7 +45,7 @@ Layout/LineLength:
Exclude:
- '**/bin/**/*'
- '**/config/**/*'
- '**/db/migrate/**/*'
- '**/db/**/*'
- '**/spec/**/*'
Max: 80
Layout/MultilineArrayLineBreaks:
Expand Down Expand Up @@ -74,6 +75,7 @@ Lint/NumberConversion:
Metrics/AbcSize:
Exclude:
- '**/db/migrate/**/*'
- '**/db/seeds/**/*'
Metrics/BlockLength:
Exclude:
- '**/config/**/*'
Expand All @@ -83,15 +85,22 @@ Metrics/BlockLength:
- '**/spec/**/*'
Metrics/CyclomaticComplexity:
Max: 5
Exclude:
- '**/db/migrate/**/*'
- '**/db/seeds/**/*'
Metrics/MethodLength:
Max: 15
Exclude:
- '**/db/migrate/**/*'
- '**/db/seeds/**/*'
Metrics/ModuleLength:
Exclude:
- '**/db/seeds/**/*'
Metrics/PerceivedComplexity:
Max: 5
Exclude:
- '**/db/migrate/**/*'
- '**/db/seeds/**/*'

Naming/AccessorMethodName:
Exclude:
Expand Down Expand Up @@ -203,6 +212,8 @@ RSpec/MessageChain:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/NestedGroups:
Expand Down Expand Up @@ -233,7 +244,7 @@ Style/Documentation:
- '**/app/mailers/application_mailer.rb'
- '**/app/models/application_record.rb'
- '**/controllers/**/*'
- '**/db/migrate/**/*'
- '**/db/**/*'
- '**/presenters/**/*'
Style/EmptyMethod:
EnforcedStyle: expanded
Expand Down

0 comments on commit 2e0e804

Please sign in to comment.