Skip to content

Commit eff73cc

Browse files
committed
rubcop: exclude vendor directories
1 parent 3bcc7d3 commit eff73cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins:
77
- rubocop-rake
88
- rubocop-rspec
99

10+
# without excluding the vendor dirs below, rubocop will load all rubocop config files from installed gems ¯\_(ツ)_/¯
1011
AllCops:
1112
TargetRubyVersion: 3.1
1213
Include:
@@ -21,6 +22,8 @@ AllCops:
2122
- 'lib/puppet/vendor/**/*'
2223
- 'lib/puppet/pops/model/ast.rb'
2324
- 'lib/puppet/pops/parser/eparser.rb'
25+
- 'vendor/**/*'
26+
- '.vendor/**/*'
2427

2528
# The formatting of defaults is unusual, so let's skip layout cops.
2629
Layout:

0 commit comments

Comments
 (0)