diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 0f347c452b..81854eb8f3 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -3,6 +3,7 @@ inherit_from: AllCops: Include: + - '**/*.rb' - 'Library/Homebrew/.simplecov' Exclude: - 'bin/*' @@ -13,6 +14,10 @@ Layout/MultilineMethodCallIndentation: Exclude: - '**/*_spec.rb' +# Gets false positives with our heredocs nested inside arrays +Layout/ClosingHeredocIndentation: + Enabled: false + # so many of these in formulae but none in here Lint/AmbiguousRegexpLiteral: Enabled: true @@ -72,6 +77,11 @@ Naming/PredicateName: Naming/UncommunicativeMethodParamName: Enabled: false +# I'm not sure how to correct these, and seems to get false positives on +# modifiers used on symbols of methods +Style/AccessModifierDeclarations: + Enabled: false + Style/BlockDelimiters: Exclude: - '**/*_spec.rb' diff --git a/Library/Homebrew/constants.rb b/Library/Homebrew/constants.rb index 25326075e5..e7c71fdf77 100644 --- a/Library/Homebrew/constants.rb +++ b/Library/Homebrew/constants.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true # RuboCop version used for `brew style` and `brew cask style` -HOMEBREW_RUBOCOP_VERSION = "0.55.0" +HOMEBREW_RUBOCOP_VERSION = "0.57.1" HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.19.0" # has to be updated when RuboCop version changes