rubocop: exclude more tap files from the top-level method cop

Basically, this started failing for me on my personal tap because
there are some methods defined at the top-level in my Rakefile.
That seems acceptable to me and since we're already ignoring all
other Ruby files in the tap I figured we might as well just ignore
all of them.

I ended up changing one other use of `Taps/**/*.rb` to `Taps/**/*.rb`
as well.
This commit is contained in:
apainintheneck 2024-02-03 15:06:30 -08:00
parent 377dbfc117
commit 648c50e9a6

View File

@ -373,7 +373,7 @@ Style/NumericLiterals:
Style/OpenStructUse:
Exclude:
- "Taps/**/*.rb"
- "Taps/**/*"
# TODO: This is a pre-existing violation and should be corrected
# to define methods so that call sites can be type-checked.
- "Homebrew/cli/args.rb"
@ -426,7 +426,7 @@ Style/TernaryParentheses:
Style/TopLevelMethodDefinition:
Enabled: true
Exclude:
- "Taps/**/*.rb"
- "Taps/**/*"
# Trailing commas make diffs nicer.
Style/TrailingCommaInArguments: