diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 78dd2c2e74..4b579cd488 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -338,6 +338,8 @@ Style/BarePercentLiterals: # make rspec formatting more flexible Style/BlockDelimiters: + BracesRequiredMethods: + - "sig" Exclude: - "Homebrew/**/*_spec.rb" - "Homebrew/**/shared_examples/**/*.rb" @@ -367,10 +369,6 @@ Style/Documentation: - "**/{Formula,Casks}/**/*.rb" - "**/*.rbi" -Style/DocumentationMethod: - Include: - - "Homebrew/formula.rb" - # This is quite a large change, so don't enforce this yet for formulae. # We should consider doing so in the future, but be aware of the impact on third-party taps. Style/FetchEnvVar: diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index b0c21afab7..3015754abc 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -60,13 +60,13 @@ Style/Documentation: - utils/string_inreplace_extension.rb - version.rb +Style/DocumentationMethod: + Include: + - "formula.rb" + Style/HashAsLastArrayItem: Exclude: - "test/utils/spdx_spec.rb" -Style/BlockDelimiters: - BracesRequiredMethods: - - "sig" - Bundler/GemFilename: Enabled: false