From 972ff930b72b1bf16b2509f68d2aa581c1635051 Mon Sep 17 00:00:00 2001 From: Elizabeth Tackett Date: Mon, 6 Jul 2020 09:57:39 -0500 Subject: [PATCH] fix incorrect file changes --- Library/Homebrew/.rubocop.yml | 68 +++++++++++++++++------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 06fdc5eb64..c38bbe045f 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -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: