Skip to content

Commit

Permalink
Merge pull request #14850 from issyl0/rubocop-consolidation
Browse files Browse the repository at this point in the history
rubocop: Consolidate more rules into the right files
  • Loading branch information
MikeMcQuaid committed Mar 1, 2023
2 parents 9296db0 + d16b241 commit a3cc4bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Library/.rubocop.yml
Expand Up @@ -338,6 +338,8 @@ Style/BarePercentLiterals:

# make rspec formatting more flexible
Style/BlockDelimiters:
BracesRequiredMethods:
- "sig"
Exclude:
- "Homebrew/**/*_spec.rb"
- "Homebrew/**/shared_examples/**/*.rb"
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions Library/Homebrew/.rubocop.yml
Expand Up @@ -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

0 comments on commit a3cc4bc

Please sign in to comment.