From 635b067f3355dd06af9e187ff3f4cd4b543df935 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 23 Aug 2024 16:20:52 +0100 Subject: [PATCH] actions/sync/shared-config: fix vendor exclude. This should be in the general rubocop, not the docs one. --- .github/actions/sync/shared-config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index bd974653..0092f716 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -44,6 +44,7 @@ def git(*args) homebrew_repository_path/"Library/#{rubocop_yaml}", permitted_classes: [Symbol, Regexp], ) +homebrew_rubocop_config_yaml["AllCops"]["Exclude"] << '"vendor/**/*"' homebrew_rubocop_config = homebrew_rubocop_config_yaml.reject do |key, _| key.match?(%r{\Arequire|inherit_from|inherit_mode|Cask/|Formula|Homebrew|Performance/|RSpec|Sorbet/}) end.to_yaml @@ -51,7 +52,6 @@ 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