Skip to content

Commit 8b523d8

Browse files
committed
[Fix rubocop#796] Add several directories to Exclude
Fixes rubocop#796. This PR adds several directories to `Exclude` to prevent slow investigation. These directories (`log`, `public`, and `storage`) provided by `bin/rails` are expected not to contain Ruby code. And `tmp` and `vendor` directories have already been excluded in the RuboCop core. https://github.com/rubocop/rubocop/blob/v1.36.0/config/default.yml#L65-L66
1 parent 6e6e072 commit 8b523d8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#796](https://github.com/rubocop/rubocop-rails/issues/796): Add several directories to `Exclude` to prevent slow investigation. ([@koic][])

config/default.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ AllCops:
1010
# Exclude db/schema.rb and db/[CONFIGURATION_NAMESPACE]_schema.rb by default.
1111
# See: https://guides.rubyonrails.org/active_record_multiple_databases.html#setting-up-your-application
1212
- db/*schema.rb
13+
- log/**/*
14+
- public/**/*
15+
- storage/**/*
1316
# Enable checking Active Support extensions.
1417
# See: https://docs.rubocop.org/rubocop/configuration.html#enable-checking-active-support-extensions
1518
ActiveSupportExtensionsEnabled: true

0 commit comments

Comments
 (0)