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