Skip to content

Commit 615c37a

Browse files
committed
Fix RuboCop to inherit default Exclude patterns
- Add `inherit_mode: { merge: [Exclude] }` to inherit default exclusion patterns - Remove explicit `vendor/**/*` exclusion (now inherited from default config) - Remove obsolete `gemfiles/**/*` exclusion (gemfiles directory was removed) This ensures that `vendor/bundle` is properly excluded when using `bundler-cache: true` in GitHub Actions workflow, preventing RuboCop from inspecting gem files and loading their .rubocop.yml configurations. Fixes the issue where RuboCop tried to require 'rubocop-rake' from gems installed in vendor/bundle.
1 parent 4013b4a commit 615c37a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.rubocop.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
inherit_mode:
2+
merge:
3+
- Exclude
4+
15
AllCops:
26
TargetRubyVersion: 2.5
37
DisabledByDefault: true
48
SuggestExtensions: false
5-
Exclude:
6-
- 'gemfiles/**/*'
7-
- 'vendor/**/*'
89

910
Style/AndOr:
1011
Enabled: true

0 commit comments

Comments
 (0)