From 9399d7c93a4a009996762809faabb1712bb7bb73 Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Wed, 19 Oct 2022 14:57:07 +0100 Subject: [PATCH] (MAINT) Add Exclude setting When inheriting from a gem, the AllCops/exclude property doesn't seem to be propagated. Running rubocop with --degbug confirms that it is recognising the directive to inherit .rubocop.yml from puppet-line and rules seem to be valid. This commit adds the AllCops/Exclude containing a single value that excludes the "vendor" directory that appears when running in ci. --- .rubocop.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 9896608..3623c93 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,2 +1,6 @@ inherit_gem: - puppet-lint: .rubocop.yml + puppet-lint: + - .rubocop.yml +AllCops: + Exclude: + - "vendor/**/*"