Skip to content

Commit

Permalink
Improve RuboCop exclusions configuration
Browse files Browse the repository at this point in the history
The default `Exclude:` is not inherited when a custom value is provided,
so the performance was degraded because time was spent searching in
`.git`.

Ref: rubocop/rubocop#9325
  • Loading branch information
tagliala committed Apr 20, 2024
1 parent 5088d96 commit 5122f6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ AllCops:
TargetRailsVersion: 7.0
TargetRubyVersion: 3.0
Exclude:
- 'gemfiles/**/*'
- 'vendor/bundle/**/*'
- 'tmp/**/*'
- .git/**/*
- .github/**/*
- bin/**/*
- gemfiles/**/*
- node_modules/**/*
- tmp/**/*
- vendor/**/*

Layout/LineLength:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5122f6e

Please sign in to comment.