Skip to content

Commit

Permalink
Update rubbocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Jul 14, 2023
1 parent e0f02b3 commit 11defe7
Show file tree
Hide file tree
Showing 5 changed files with 434 additions and 50 deletions.
11 changes: 10 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
inherit_from:
- .rubocop_todo.yml
- .rubocop/layout.yml
- .rubocop/metrics.yml
- .rubocop/style.yml

require:
- rubocop-performance
- rubocop-rake
- rubocop-rspec

AllCops:
NewCops: enable
DefaultFormatter: fuubar
DisplayCopNames: true
NewCops: enable
DisplayStyleGuide: true
ExtraDetails: true
SuggestExtensions: true
TargetRubyVersion: 2.6
17 changes: 17 additions & 0 deletions .rubocop/metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Metrics/BlockLength:
Enabled: true
Exclude:
- "spec/**/*_spec.rb"
- "**/*.gemspec"

Metrics/ClassLength:
Enabled: true
CountAsOne: [array, hash, heredoc, method_call]

Metrics/MethodLength:
Enabled: true
CountAsOne: [array, hash, heredoc, method_call]

Metrics/ModuleLength:
Enabled: true
CountAsOne: [array, hash, heredoc, method_call]
Loading

0 comments on commit 11defe7

Please sign in to comment.