From 9f0e38f2eb0984986c4779b27a1d2daf8aad19d8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 23 Aug 2024 16:09:13 +0100 Subject: [PATCH] actions/sync/shared-config: exclude vendor from docs RuboCop. This will avoid trying to check gems in the vendor directory. --- .github/actions/sync/shared-config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index 370c2b6f..bd974653 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -51,6 +51,7 @@ def git(*args) homebrew_repository_path/"docs/#{rubocop_yaml}", permitted_classes: [Symbol, Regexp], ) +homebrew_docs_rubocop_config_yaml["AllCops"]["Exclude"] << '"vendor/**/*"' homebrew_docs_rubocop_config = homebrew_docs_rubocop_config_yaml.reject do |key, _| key.match?(%r{\AFormulaAudit/|Sorbet/}) end.to_yaml