Skip to content

Commit

Permalink
actions/sync/shared-config: fix vendor exclude.
Browse files Browse the repository at this point in the history
This should be in the general rubocop, not the docs one.
  • Loading branch information
MikeMcQuaid committed Aug 23, 2024
1 parent 47f31b2 commit 635b067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/sync/shared-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ 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
homebrew_docs_rubocop_config_yaml = YAML.load_file(
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
Expand Down

0 comments on commit 635b067

Please sign in to comment.