Merge pull request #14825 from MikeMcQuaid/more_sharding_fixes
More Formula/Casks sharding fixes
This commit is contained in:
commit
f6af334397
@ -64,8 +64,8 @@ Homebrew/MoveToExtendOS:
|
|||||||
Layout/ArgumentAlignment:
|
Layout/ArgumentAlignment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/Formula/*.rb"
|
- "/**/Formula/**/*.rb"
|
||||||
- "**/Formula/*.rb"
|
- "**/Formula/**/*.rb"
|
||||||
|
|
||||||
# this is a bit less "floaty"
|
# this is a bit less "floaty"
|
||||||
Layout/CaseIndentation:
|
Layout/CaseIndentation:
|
||||||
@ -130,8 +130,8 @@ Layout/SpaceBeforeBrackets:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- "**/*_spec.rb"
|
- "**/*_spec.rb"
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
|
|
||||||
# favour parens-less DSL-style arguments
|
# favour parens-less DSL-style arguments
|
||||||
Lint/AmbiguousBlockAssociation:
|
Lint/AmbiguousBlockAssociation:
|
||||||
@ -140,15 +140,15 @@ Lint/AmbiguousBlockAssociation:
|
|||||||
Lint/DuplicateBranch:
|
Lint/DuplicateBranch:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
|
|
||||||
# so many of these in formulae and can't be autocorrected
|
# so many of these in formulae and can't be autocorrected
|
||||||
Lint/ParenthesesAsGroupedExpression:
|
Lint/ParenthesesAsGroupedExpression:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/Formula/*.rb"
|
- "/**/Formula/**/*.rb"
|
||||||
- "**/Formula/*.rb"
|
- "**/Formula/**/*.rb"
|
||||||
|
|
||||||
# unused keyword arguments improve APIs
|
# unused keyword arguments improve APIs
|
||||||
Lint/UnusedMethodArgument:
|
Lint/UnusedMethodArgument:
|
||||||
@ -173,11 +173,11 @@ Naming/InclusiveLanguage:
|
|||||||
# TODO: If possible, make this stricter.
|
# TODO: If possible, make this stricter.
|
||||||
slave:
|
slave:
|
||||||
AllowedRegex:
|
AllowedRegex:
|
||||||
- "gitslave" # Used in formula `gitslave`
|
- "gitslave" # Used in formula `gitslave`
|
||||||
- "log_slave" # Used in formula `ssdb`
|
- "log_slave" # Used in formula `ssdb`
|
||||||
- "ssdb_slave" # Used in formula `ssdb`
|
- "ssdb_slave" # Used in formula `ssdb`
|
||||||
- "var_slave" # Used in formula `ssdb`
|
- "var_slave" # Used in formula `ssdb`
|
||||||
- "patches/13_fix_scope_for_show_slave_status_data.patch" # Used in formula `mytop`
|
- "patches/13_fix_scope_for_show_slave_status_data.patch" # Used in formula `mytop`
|
||||||
|
|
||||||
Naming/MethodName:
|
Naming/MethodName:
|
||||||
AllowedPatterns:
|
AllowedPatterns:
|
||||||
@ -189,7 +189,27 @@ Naming/MethodParameterName:
|
|||||||
inherit_mode:
|
inherit_mode:
|
||||||
merge:
|
merge:
|
||||||
- AllowedNames
|
- AllowedNames
|
||||||
AllowedNames: ["a", "b", "cc", "c1", "c2", "d", "e", "f", "ff", "fn", "id", "o", "p", "pr", "r", "rb", "s", "v"]
|
AllowedNames:
|
||||||
|
[
|
||||||
|
"a",
|
||||||
|
"b",
|
||||||
|
"cc",
|
||||||
|
"c1",
|
||||||
|
"c2",
|
||||||
|
"d",
|
||||||
|
"e",
|
||||||
|
"f",
|
||||||
|
"ff",
|
||||||
|
"fn",
|
||||||
|
"id",
|
||||||
|
"o",
|
||||||
|
"p",
|
||||||
|
"pr",
|
||||||
|
"r",
|
||||||
|
"rb",
|
||||||
|
"s",
|
||||||
|
"v",
|
||||||
|
]
|
||||||
|
|
||||||
# Both styles are used depending on context,
|
# Both styles are used depending on context,
|
||||||
# e.g. `sha256` and `something_countable_1`.
|
# e.g. `sha256` and `something_countable_1`.
|
||||||
@ -223,7 +243,7 @@ Rails/Blank:
|
|||||||
Rails/CompactBlank:
|
Rails/CompactBlank:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Rails/Delegate:
|
Rails/Delegate:
|
||||||
Enabled: false # TODO
|
Enabled: false # TODO
|
||||||
Rails/DelegateAllowBlank:
|
Rails/DelegateAllowBlank:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Rails/DurationArithmetic:
|
Rails/DurationArithmetic:
|
||||||
@ -288,8 +308,8 @@ Sorbet/ConstantsFromStrings:
|
|||||||
Sorbet/FalseSigil:
|
Sorbet/FalseSigil:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/**/*"
|
- "Taps/**/*"
|
||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
- "Homebrew/test/**/Casks/**/*.rb"
|
- "Homebrew/test/**/Casks/**/*.rb"
|
||||||
|
|
||||||
Sorbet/StrictSigil:
|
Sorbet/StrictSigil:
|
||||||
@ -336,15 +356,15 @@ Style/DisableCopsWithinSourceCodeDirective:
|
|||||||
Enabled: true
|
Enabled: true
|
||||||
Include:
|
Include:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
|
|
||||||
# Don't enforce documentation in casks or formulae.
|
# Don't enforce documentation in casks or formulae.
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/**/*"
|
- "Taps/**/*"
|
||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/*.rbi"
|
- "**/*.rbi"
|
||||||
|
|
||||||
Style/DocumentationMethod:
|
Style/DocumentationMethod:
|
||||||
@ -356,8 +376,8 @@ Style/DocumentationMethod:
|
|||||||
Style/FetchEnvVar:
|
Style/FetchEnvVar:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/Formula/*.rb"
|
- "/**/Formula/**/*.rb"
|
||||||
- "**/Formula/*.rb"
|
- "**/Formula/**/*.rb"
|
||||||
|
|
||||||
# Prefer tokens with type annotations for consistency
|
# Prefer tokens with type annotations for consistency
|
||||||
# between formatting numbers and strings.
|
# between formatting numbers and strings.
|
||||||
@ -369,8 +389,8 @@ Style/FrozenStringLiteralComment:
|
|||||||
EnforcedStyle: always
|
EnforcedStyle: always
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
- "Homebrew/test/**/Casks/**/*.rb"
|
- "Homebrew/test/**/Casks/**/*.rb"
|
||||||
- "**/*.rbi"
|
- "**/*.rbi"
|
||||||
- "**/Brewfile"
|
- "**/Brewfile"
|
||||||
@ -384,15 +404,15 @@ Style/GlobalVars:
|
|||||||
Style/GuardClause:
|
Style/GuardClause:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
|
|
||||||
# Allow for license expressions
|
# Allow for license expressions
|
||||||
Style/HashAsLastArrayItem:
|
Style/HashAsLastArrayItem:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/Formula/*.rb"
|
- "/**/Formula/**/*.rb"
|
||||||
- "**/Formula/*.rb"
|
- "**/Formula/**/*.rb"
|
||||||
|
|
||||||
# Zero-prefixed octal literals are widely used and understood.
|
# Zero-prefixed octal literals are widely used and understood.
|
||||||
Style/NumericLiteralPrefix:
|
Style/NumericLiteralPrefix:
|
||||||
@ -426,8 +446,8 @@ Style/StderrPuts:
|
|||||||
Style/StringConcatenation:
|
Style/StringConcatenation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Taps/*/*/*.rb"
|
- "Taps/*/*/*.rb"
|
||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
|
|
||||||
# ruby style guide favorite
|
# ruby style guide favorite
|
||||||
Style/StringLiterals:
|
Style/StringLiterals:
|
||||||
|
|||||||
@ -81,7 +81,7 @@ module Homebrew
|
|||||||
if Homebrew::EnvConfig.automatically_set_no_install_from_api? &&
|
if Homebrew::EnvConfig.automatically_set_no_install_from_api? &&
|
||||||
!Homebrew::EnvConfig.no_env_hints?
|
!Homebrew::EnvConfig.no_env_hints?
|
||||||
paths.each do |path|
|
paths.each do |path|
|
||||||
next if !path.fnmatch?("**/homebrew-core/Formula/*.rb") && !path.fnmatch?("**/homebrew-cask/Casks/*.rb")
|
next if !path.fnmatch?("**/homebrew-core/Formula/**/*.rb") && !path.fnmatch?("**/homebrew-cask/Casks/**/*.rb")
|
||||||
|
|
||||||
opoo <<~EOS
|
opoo <<~EOS
|
||||||
Unless `HOMEBREW_NO_INSTALL_FROM_API` is set when running
|
Unless `HOMEBREW_NO_INSTALL_FROM_API` is set when running
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user