upgrade to Rubocop 0.57.1

This commit is contained in:
Andrew Janke 2018-06-06 23:05:00 -04:00
parent 0d33aba0b7
commit f99d7b29ef
2 changed files with 11 additions and 1 deletions

View File

@ -3,6 +3,7 @@ inherit_from:
AllCops: AllCops:
Include: Include:
- '**/*.rb'
- 'Library/Homebrew/.simplecov' - 'Library/Homebrew/.simplecov'
Exclude: Exclude:
- 'bin/*' - 'bin/*'
@ -13,6 +14,10 @@ Layout/MultilineMethodCallIndentation:
Exclude: Exclude:
- '**/*_spec.rb' - '**/*_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 # so many of these in formulae but none in here
Lint/AmbiguousRegexpLiteral: Lint/AmbiguousRegexpLiteral:
Enabled: true Enabled: true
@ -72,6 +77,11 @@ Naming/PredicateName:
Naming/UncommunicativeMethodParamName: Naming/UncommunicativeMethodParamName:
Enabled: false 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: Style/BlockDelimiters:
Exclude: Exclude:
- '**/*_spec.rb' - '**/*_spec.rb'

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# RuboCop version used for `brew style` and `brew cask style` # 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 HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.19.0" # has to be updated when RuboCop version changes