fix incorrect file changes

This commit is contained in:
Elizabeth Tackett 2020-07-06 09:57:39 -05:00
parent 0402f0c95e
commit 972ff930b7

View File

@ -2,12 +2,12 @@ inherit_from: ../.rubocop_rspec.yml
AllCops:
Include:
- "**/*.rb"
- "Library/Homebrew/.simplecov"
- '**/*.rb'
- 'Library/Homebrew/.simplecov'
Exclude:
- "bin/*"
- "**/Casks/**/*"
- "**/vendor/**/*"
- 'bin/*'
- '**/Casks/**/*'
- '**/vendor/**/*'
# messes up system formatting for formulae but good for Homebrew/brew
Layout/ArgumentAlignment:
@ -16,7 +16,7 @@ Layout/ArgumentAlignment:
# make rspec formatting more flexible
Layout/MultilineMethodCallIndentation:
Exclude:
- "**/*_spec.rb"
- '**/*_spec.rb'
# so many of these in formulae but none in here
Lint/AmbiguousRegexpLiteral:
@ -29,7 +29,7 @@ Lint/AssignmentInCondition:
# `formula do` uses nested method definitions
Lint/NestedMethodDefinition:
Exclude:
- "test/**/*"
- 'test/**/*'
# so many of these in formulae but none in here
Lint/ParenthesesAsGroupedExpression:
@ -47,7 +47,7 @@ Metrics/BlockLength:
Enabled: true
Max: 1100
Exclude:
- "test/formula_spec.rb"
- 'test/formula_spec.rb'
Metrics/BlockNesting:
Enabled: true
Max: 5
@ -70,7 +70,7 @@ Metrics/PerceivedComplexity:
# we won't change backward compatible predicate names
Naming/PredicateName:
Exclude:
- "compat/**/*"
- 'compat/**/*'
# can't rename these
AllowedMethods: is_32_bit?, is_64_bit?
@ -78,27 +78,27 @@ Naming/PredicateName:
# TODO: try to remove some of these
Naming/MethodParameterName:
AllowedNames:
- "_"
- "a"
- "b"
- "cc"
- "c1"
- "c2"
- "d"
- "e"
- "f"
- "ff"
- "fn"
- "id"
- "io"
- "o"
- "p"
- "pr"
- "r"
- "rb"
- "s"
- "to"
- "v"
- '_'
- 'a'
- 'b'
- 'cc'
- 'c1'
- 'c2'
- 'd'
- 'e'
- 'f'
- 'ff'
- 'fn'
- 'id'
- 'io'
- 'o'
- 'p'
- 'pr'
- 'r'
- 'rb'
- 's'
- 'to'
- 'v'
# Avoid false positives on modifiers used on symbols of methods
# See https://github.com/rubocop-hq/rubocop/issues/5953
@ -108,18 +108,18 @@ Style/AccessModifierDeclarations:
# make rspec formatting more flexible
Style/BlockDelimiters:
Exclude:
- "**/*_spec.rb"
- "**/shared_examples/**/*.rb"
- '**/*_spec.rb'
- '**/shared_examples/**/*.rb'
# document our public APIs
Style/Documentation:
Enabled: true
Include:
- "Library/Homebrew/formula.rb"
- 'Library/Homebrew/formula.rb'
Style/DocumentationMethod:
Enabled: true
Include:
- "Library/Homebrew/formula.rb"
- 'Library/Homebrew/formula.rb'
# don't want this for formulae but re-enabled for Library/Homebrew
Style/FrozenStringLiteralComment: