Merge pull request #13477 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.31.0

build(deps): bump rubocop from 1.30.1 to 1.31.0 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2022-06-30 10:00:18 +01:00 committed by GitHub
commit e4dab63843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
68 changed files with 401 additions and 213 deletions

View File

@ -13,6 +13,7 @@ inherit_mode:
AllCops:
TargetRubyVersion: 2.6
DisplayCopNames: false
ActiveSupportExtensionsEnabled: true
# enable all pending rubocops
NewCops: enable
Include:

View File

@ -35,6 +35,7 @@ GEM
domain_name (~> 0.5)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
json (2.6.2)
json_schemer (0.2.21)
ecma-re-validator (~> 0.3)
hana (~> 1.3)
@ -123,7 +124,8 @@ GEM
rspec (>= 3, < 4)
rspec_junit_formatter (0.5.1)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.30.1)
rubocop (1.31.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)

View File

@ -20,13 +20,13 @@ module Homebrew
#{days} days old. This can be adjusted with `HOMEBREW_CLEANUP_MAX_AGE_DAYS`.
EOS
flag "--prune=",
description: "Remove all cache files older than specified <days>. "\
description: "Remove all cache files older than specified <days>. " \
"If you want to remove everything, use `--prune=all`."
switch "-n", "--dry-run",
description: "Show what would be removed, but do not actually remove anything."
switch "-s",
description: "Scrub the cache, including downloads for even the latest versions. "\
"Note that downloads for any installed formulae or casks will still not be deleted. "\
description: "Scrub the cache, including downloads for even the latest versions. " \
"Note that downloads for any installed formulae or casks will still not be deleted. " \
"If you want to delete those too: `rm -rf \"$(brew --cache)\"`"
switch "--prune-prefix",
description: "Only prune the symlinks and directories from the prefix and remove no other files."

View File

@ -41,7 +41,7 @@ module Homebrew
switch "--include-requirements",
description: "Include requirements in addition to dependencies for <formula>."
switch "--tree",
description: "Show dependencies as a tree. When given multiple formula arguments, "\
description: "Show dependencies as a tree. When given multiple formula arguments, " \
"show individual trees for each formula."
switch "--graph",
description: "Show dependencies as a directed graph."
@ -49,16 +49,16 @@ module Homebrew
depends_on: "--graph",
description: "Show text-based graph description in DOT format."
switch "--annotate",
description: "Mark any build, test, optional, or recommended dependencies as "\
description: "Mark any build, test, optional, or recommended dependencies as " \
"such in the output."
switch "--installed",
description: "List dependencies for formulae that are currently installed. If <formula> is "\
description: "List dependencies for formulae that are currently installed. If <formula> is " \
"specified, list only its dependencies that are currently installed."
switch "--all",
description: "List dependencies for all available formulae."
switch "--for-each",
description: "Switch into the mode used by the `--all` option, but only list dependencies "\
"for each provided <formula>, one formula per line. This is used for "\
description: "Switch into the mode used by the `--all` option, but only list dependencies " \
"for each provided <formula>, one formula per line. This is used for " \
"debugging the `--installed`/`--all` display mode."
switch "--formula", "--formulae",
depends_on: "--installed",

View File

@ -22,13 +22,13 @@ module Homebrew
first search, making that search slower than subsequent ones.
EOS
switch "-s", "--search",
description: "Search both names and descriptions for <text>. If <text> is flanked by "\
description: "Search both names and descriptions for <text>. If <text> is flanked by " \
"slashes, it is interpreted as a regular expression."
switch "-n", "--name",
description: "Search just names for <text>. If <text> is flanked by slashes, it is "\
description: "Search just names for <text>. If <text> is flanked by slashes, it is " \
"interpreted as a regular expression."
switch "-d", "--description",
description: "Search just descriptions for <text>. If <text> is flanked by slashes, "\
description: "Search just descriptions for <text>. If <text> is flanked by slashes, " \
"it is interpreted as a regular expression."
switch "--formula", "--formulae",
description: "Treat all named arguments as formulae."

View File

@ -21,7 +21,7 @@ module Homebrew
an issue; just ignore this.
EOS
switch "--list-checks",
description: "List all audit methods, which can be run individually "\
description: "List all audit methods, which can be run individually " \
"if provided as arguments."
switch "-D", "--audit-debug",
description: "Enable debugging and profiling of audit methods."

View File

@ -27,10 +27,10 @@ module Homebrew
switch "-f", "--force",
description: "Remove a previously cached version and re-fetch."
switch "-v", "--verbose",
description: "Do a verbose VCS checkout, if the URL represents a VCS. This is useful for "\
description: "Do a verbose VCS checkout, if the URL represents a VCS. This is useful for " \
"seeing if an existing VCS cache has been updated."
switch "--retry",
description: "Retry if downloading fails or re-download if the checksum of a previously cached "\
description: "Retry if downloading fails or re-download if the checksum of a previously cached " \
"version no longer matches."
switch "--deps",
description: "Also download dependencies for any listed <formula>."
@ -39,7 +39,7 @@ module Homebrew
switch "--build-bottle",
description: "Download source packages (for eventual bottling) rather than a bottle."
switch "--force-bottle",
description: "Download a bottle if it exists for the current or newest version of macOS, "\
description: "Download a bottle if it exists for the current or newest version of macOS, " \
"even if it would not be used during installation."
switch "--[no-]quarantine",
description: "Disable/enable quarantining of downloads (default: enabled).",

View File

@ -25,10 +25,10 @@ module Homebrew
switch "--with-hostname",
description: "Include the hostname in the Gist."
switch "-n", "--new-issue",
description: "Automatically create a new issue in the appropriate GitHub repository "\
description: "Automatically create a new issue in the appropriate GitHub repository " \
"after creating the Gist."
switch "-p", "--private",
description: "The Gist will be marked private and will not appear in listings but will "\
description: "The Gist will be marked private and will not appear in listings but will " \
"be accessible with its link."
named_args :formula, number: 1

View File

@ -31,25 +31,25 @@ module Homebrew
If a <formula> or <cask> is provided, show summary of information about it.
EOS
switch "--analytics",
description: "List global Homebrew analytics data or, if specified, installation and "\
"build error data for <formula> (provided neither `HOMEBREW_NO_ANALYTICS` "\
description: "List global Homebrew analytics data or, if specified, installation and " \
"build error data for <formula> (provided neither `HOMEBREW_NO_ANALYTICS` " \
"nor `HOMEBREW_NO_GITHUB_API` are set)."
flag "--days=",
depends_on: "--analytics",
description: "How many days of analytics data to retrieve. "\
description: "How many days of analytics data to retrieve. " \
"The value for <days> must be `30`, `90` or `365`. The default is `30`."
flag "--category=",
depends_on: "--analytics",
description: "Which type of analytics data to retrieve. "\
"The value for <category> must be `install`, `install-on-request` or `build-error`; "\
"`cask-install` or `os-version` may be specified if <formula> is not. "\
description: "Which type of analytics data to retrieve. " \
"The value for <category> must be `install`, `install-on-request` or `build-error`; " \
"`cask-install` or `os-version` may be specified if <formula> is not. " \
"The default is `install`."
switch "--github",
description: "Open the GitHub source page for <formula> and <cask> in a browser. "\
description: "Open the GitHub source page for <formula> and <cask> in a browser. " \
"To view the history locally: `brew log -p` <formula> or <cask>"
flag "--json",
description: "Print a JSON representation. Currently the default value for <version> is `v1` for "\
"<formula>. For <formula> and <cask> use `v2`. See the docs for examples of using the "\
description: "Print a JSON representation. Currently the default value for <version> is `v1` for " \
"<formula>. For <formula> and <cask> use `v2`. See the docs for examples of using the " \
"JSON output: <https://docs.brew.sh/Querying-Brew>"
switch "--bottle",
depends_on: "--json",

View File

@ -41,7 +41,7 @@ module Homebrew
"or a shell inside the temporary build directory."
switch "-f", "--force",
description: "Install formulae without checking for previously installed keg-only or " \
"non-migrated versions. When installing casks, overwrite existing files "\
"non-migrated versions. When installing casks, overwrite existing files " \
"(binaries and symlinks are excluded, unless originally from the same cask)."
switch "-v", "--verbose",
description: "Print the verification and postinstall steps."

View File

@ -22,7 +22,7 @@ module Homebrew
switch "--overwrite",
description: "Delete files that already exist in the prefix while linking."
switch "-n", "--dry-run",
description: "List files which would be linked or deleted by "\
description: "List files which would be linked or deleted by " \
"`brew link --overwrite` without actually linking or deleting any files."
switch "-f", "--force",
description: "Allow keg-only formulae to be linked."

View File

@ -25,17 +25,17 @@ module Homebrew
switch "--cask", "--casks",
description: "List only casks, or treat all named arguments as casks."
switch "--full-name",
description: "Print formulae with fully-qualified names. Unless `--full-name`, `--versions` "\
"or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are "\
description: "Print formulae with fully-qualified names. Unless `--full-name`, `--versions` " \
"or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are " \
"passed to `ls`(1) which produces the actual output."
switch "--versions",
description: "Show the version number for installed formulae, or only the specified "\
description: "Show the version number for installed formulae, or only the specified " \
"formulae if <formula> are provided."
switch "--multiple",
depends_on: "--versions",
description: "Only show formulae with multiple versions installed."
switch "--pinned",
description: "List only pinned formulae, or only the specified (pinned) "\
description: "List only pinned formulae, or only the specified (pinned) " \
"formulae if <formula> are provided. See also `pin`, `unpin`."
# passed through to ls
switch "-1",

View File

@ -17,7 +17,7 @@ module Homebrew
packages.
EOS
switch "-f", "--force",
description: "Treat installed <formula> and provided <formula> as if they are from "\
description: "Treat installed <formula> and provided <formula> as if they are from " \
"the same taps and migrate them anyway."
switch "-n", "--dry-run",
description: "Show what would be migrated, but do not actually migrate anything."

View File

@ -20,7 +20,7 @@ module Homebrew
to be missing dependencies.
EOS
comma_array "--hide",
description: "Act as if none of the specified <hidden> are installed. <hidden> should be "\
description: "Act as if none of the specified <hidden> are installed. <hidden> should be " \
"a comma-separated list of formulae."
named_args :formula

View File

@ -33,8 +33,8 @@ module Homebrew
"`v1` is deprecated and is currently the default if no version is specified. " \
"`v2` prints outdated formulae and casks."
switch "--fetch-HEAD",
description: "Fetch the upstream repository to detect if the HEAD installation of the "\
"formula is outdated. Otherwise, the repository's HEAD will only be checked for "\
description: "Fetch the upstream repository to detect if the HEAD installation of the " \
"formula is outdated. Otherwise, the repository's HEAD will only be checked for " \
"updates when a new stable or development version has been released."
switch "--greedy",
description: "Also include outdated casks with `auto_updates true` or `version :latest`."

View File

@ -42,7 +42,7 @@ module Homebrew
switch "--cask", "--casks",
description: "Search online and locally for casks."
switch "--desc",
description: "Search for formulae with a description matching <text> and casks with "\
description: "Search for formulae with a description matching <text> and casks with " \
"a name or description matching <text>."
switch "--pull-request",
description: "Search for GitHub pull requests containing <text>."

View File

@ -19,8 +19,8 @@ module Homebrew
switch "--installed",
description: "Show information on each installed tap."
flag "--json",
description: "Print a JSON representation of <tap>. Currently the default and only accepted "\
"value for <version> is `v1`. See the docs for examples of using the JSON "\
description: "Print a JSON representation of <tap>. Currently the default and only accepted " \
"value for <version> is `v1`. See the docs for examples of using the JSON " \
"output: <https://docs.brew.sh/Querying-Brew>"
named_args :tap

View File

@ -28,14 +28,14 @@ module Homebrew
using protocols other than HTTPS, e.g. SSH, git, HTTP, FTP(S), rsync.
EOS
switch "--full",
description: "Convert a shallow clone to a full clone without untapping. Taps are only cloned as "\
description: "Convert a shallow clone to a full clone without untapping. Taps are only cloned as " \
"shallow clones if `--shallow` was originally passed.",
replacement: false
switch "--shallow",
description: "Fetch tap as a shallow clone rather than a full clone. Useful for continuous integration.",
replacement: false
switch "--[no-]force-auto-update",
description: "Auto-update tap even if it is not hosted on GitHub. By default, only taps "\
description: "Auto-update tap even if it is not hosted on GitHub. By default, only taps " \
"hosted on GitHub are auto-updated (for performance reasons)."
switch "--custom-remote",
description: "Install or change a tap with a custom remote. Useful for mirrors."

View File

@ -28,7 +28,7 @@ module Homebrew
description: "Remove all files associated with a <cask>. " \
"*May remove files which are shared between applications.*"
switch "--ignore-dependencies",
description: "Don't fail uninstall, even if <formula> is a dependency of any installed "\
description: "Don't fail uninstall, even if <formula> is a dependency of any installed " \
"formulae."
switch "--formula", "--formulae",
description: "Treat all named arguments as formulae."

View File

@ -19,7 +19,7 @@ module Homebrew
`brew unlink` <formula> `&&` <commands> `&& brew link` <formula>
EOS
switch "-n", "--dry-run",
description: "List files which would be unlinked without actually unlinking or "\
description: "List files which would be unlinked without actually unlinking or " \
"deleting any files."
named_args :installed_formula, min: 1

View File

@ -31,7 +31,7 @@ module Homebrew
switch "--auto-update", "--preinstall",
description: "Run in 'auto-update' mode (faster, less output)."
switch "-f", "--force",
description: "Treat installed and updated formulae as if they are from "\
description: "Treat installed and updated formulae as if they are from " \
"the same taps and migrate them anyway."
hide_from_man_page!

View File

@ -30,11 +30,11 @@ module Homebrew
upgraded formulae or, every 30 days, for all formulae.
EOS
switch "-d", "--debug",
description: "If brewing fails, open an interactive debugging session with access to IRB "\
description: "If brewing fails, open an interactive debugging session with access to IRB " \
"or a shell inside the temporary build directory."
switch "-f", "--force",
description: "Install formulae without checking for previously installed keg-only or "\
"non-migrated versions. When installing casks, overwrite existing files "\
description: "Install formulae without checking for previously installed keg-only or " \
"non-migrated versions. When installing casks, overwrite existing files " \
"(binaries and symlinks are excluded, unless originally from the same cask)."
switch "-v", "--verbose",
description: "Print the verification and postinstall steps."
@ -49,17 +49,17 @@ module Homebrew
description: "Compile <formula> from source even if a bottle is available.",
}],
[:switch, "-i", "--interactive", {
description: "Download and patch <formula>, then open a shell. This allows the user to "\
"run `./configure --help` and otherwise determine how to turn the software "\
description: "Download and patch <formula>, then open a shell. This allows the user to " \
"run `./configure --help` and otherwise determine how to turn the software " \
"package into a Homebrew package.",
}],
[:switch, "--force-bottle", {
description: "Install from a bottle if it exists for the current or newest version of "\
description: "Install from a bottle if it exists for the current or newest version of " \
"macOS, even if it would not normally be used for installation.",
}],
[:switch, "--fetch-HEAD", {
description: "Fetch the upstream repository to detect if the HEAD installation of the "\
"formula is outdated. Otherwise, the repository's HEAD will only be checked for "\
description: "Fetch the upstream repository to detect if the HEAD installation of the " \
"formula is outdated. Otherwise, the repository's HEAD will only be checked for " \
"updates when a new stable or development version has been released.",
}],
[:switch, "--ignore-pinned", {

View File

@ -16,7 +16,7 @@ module DeprecateDisable
unsupported: "is not supported upstream",
deprecated_upstream: "is deprecated upstream",
versioned_formula: "is a versioned formula",
checksum_mismatch: "was built with an initially released source file that had "\
checksum_mismatch: "was built with an initially released source file that had " \
"a different checksum than the current one. " \
"Upstream's repository might have been compromised. " \
"We can re-package this once upstream has confirmed that they retagged their release",

View File

@ -45,8 +45,8 @@ module Homebrew
description: "Check all formulae and casks whether installed or not.",
hidden: true
switch "--new", "--new-formula", "--new-cask",
description: "Run various additional style checks to determine if a new formula or cask is eligible "\
"for Homebrew. This should be used when creating new formula and implies "\
description: "Run various additional style checks to determine if a new formula or cask is eligible " \
"for Homebrew. This should be used when creating new formula and implies " \
"`--strict` and `--online`."
switch "--[no-]appcast",
description: "Audit the appcast."
@ -59,27 +59,27 @@ module Homebrew
switch "--display-cop-names",
description: "Include the RuboCop cop name for each violation in the output."
switch "--display-filename",
description: "Prefix every line of output with the file or formula name being audited, to "\
description: "Prefix every line of output with the file or formula name being audited, to " \
"make output easy to grep."
switch "--display-failures-only",
description: "Only display casks that fail the audit. This is the default for formulae."
switch "--skip-style",
description: "Skip running non-RuboCop style checks. Useful if you plan on running "\
description: "Skip running non-RuboCop style checks. Useful if you plan on running " \
"`brew style` separately. Enabled by default unless a formula is specified by name."
switch "-D", "--audit-debug",
description: "Enable debugging and profiling of audit methods."
comma_array "--only",
description: "Specify a comma-separated <method> list to only run the methods named "\
description: "Specify a comma-separated <method> list to only run the methods named " \
"`audit_`<method>."
comma_array "--except",
description: "Specify a comma-separated <method> list to skip running the methods named "\
description: "Specify a comma-separated <method> list to skip running the methods named " \
"`audit_`<method>."
comma_array "--only-cops",
description: "Specify a comma-separated <cops> list to check for violations of only the listed "\
description: "Specify a comma-separated <cops> list to check for violations of only the listed " \
"RuboCop cops."
comma_array "--except-cops",
description: "Specify a comma-separated <cops> list to skip checking for violations of the listed "\
"RuboCop cops."
description: "Specify a comma-separated <cops> list to skip checking for violations of the " \
"listed RuboCop cops."
switch "--formula", "--formulae",
description: "Treat all named arguments as formulae."
switch "--cask", "--casks",

View File

@ -58,22 +58,22 @@ module Homebrew
switch "--no-rebuild",
description: "If the formula specifies a rebuild version, remove it from the generated DSL."
switch "--keep-old",
description: "If the formula specifies a rebuild version, attempt to preserve its value in the "\
description: "If the formula specifies a rebuild version, attempt to preserve its value in the " \
"generated DSL."
switch "--json",
description: "Write bottle information to a JSON file, which can be used as the value for "\
description: "Write bottle information to a JSON file, which can be used as the value for " \
"`--merge`."
switch "--merge",
description: "Generate an updated bottle block for a formula and optionally merge it into the "\
"formula file. Instead of a formula name, requires the path to a JSON file generated with "\
"`brew bottle --json` <formula>."
description: "Generate an updated bottle block for a formula and optionally merge it into the " \
"formula file. Instead of a formula name, requires the path to a JSON file generated " \
"with `brew bottle --json` <formula>."
switch "--write",
depends_on: "--merge",
description: "Write changes to the formula file. A new commit will be generated unless "\
description: "Write changes to the formula file. A new commit will be generated unless " \
"`--no-commit` is passed."
switch "--no-commit",
depends_on: "--write",
description: "When passed with `--write`, a new commit will not generated after writing changes "\
description: "When passed with `--write`, a new commit will not generated after writing changes " \
"to the formula file."
switch "--only-json-tab",
depends_on: "--json",
@ -83,7 +83,7 @@ module Homebrew
flag "--root-url=",
description: "Use the specified <URL> as the root of the bottle's URL instead of Homebrew's default."
flag "--root-url-using=",
description: "Use the specified download strategy class for downloading the bottle's URL instead of "\
description: "Use the specified download strategy class for downloading the bottle's URL instead of " \
"Homebrew's default."
conflicts "--no-rebuild", "--keep-old"

View File

@ -26,7 +26,7 @@ module Homebrew
description: "Make the expected file modifications without taking any Git actions."
switch "--commit",
depends_on: "--write-only",
description: "When passed with `--write-only`, generate a new commit after writing changes "\
description: "When passed with `--write-only`, generate a new commit after writing changes " \
"to the cask file."
switch "--no-audit",
description: "Don't run `brew audit` before opening the PR."

View File

@ -42,7 +42,7 @@ module Homebrew
switch "--write", hidden: true
switch "--commit",
depends_on: "--write-only",
description: "When passed with `--write-only`, generate a new commit after writing changes "\
description: "When passed with `--write-only`, generate a new commit after writing changes " \
"to the formula file."
switch "--no-audit",
description: "Don't run `brew audit` before opening the PR."
@ -55,18 +55,18 @@ module Homebrew
switch "--no-fork",
description: "Don't try to fork the repository."
comma_array "--mirror",
description: "Use the specified <URL> as a mirror URL. If <URL> is a comma-separated list "\
description: "Use the specified <URL> as a mirror URL. If <URL> is a comma-separated list " \
"of URLs, multiple mirrors will be added."
flag "--fork-org=",
description: "Use the specified GitHub organization for forking."
flag "--version=",
description: "Use the specified <version> to override the value parsed from the URL or tag. Note "\
"that `--version=0` can be used to delete an existing version override from a "\
description: "Use the specified <version> to override the value parsed from the URL or tag. Note " \
"that `--version=0` can be used to delete an existing version override from a " \
"formula if it has become redundant."
flag "--message=",
description: "Append <message> to the default pull request message."
flag "--url=",
description: "Specify the <URL> for the new download. If a <URL> is specified, the <SHA-256> "\
description: "Specify the <URL> for the new download. If a <URL> is specified, the <SHA-256> " \
"checksum of the new download should also be specified."
flag "--sha256=",
depends_on: "--url=",
@ -74,12 +74,12 @@ module Homebrew
flag "--tag=",
description: "Specify the new git commit <tag> for the formula."
flag "--revision=",
description: "Specify the new commit <revision> corresponding to the specified git <tag> "\
description: "Specify the new commit <revision> corresponding to the specified git <tag> " \
"or specified <version>."
switch "-f", "--force",
description: "Ignore duplicate open PRs. Remove all mirrors if `--mirror` was not specified."
flag "--python-package-name=",
description: "Use the specified <package-name> when finding Python resources for <formula>. "\
description: "Use the specified <package-name> when finding Python resources for <formula>. " \
"If no package name is specified, it will be inferred from the formula's stable URL."
comma_array "--python-extra-packages=",
description: "Include these additional Python packages when finding resources."

View File

@ -46,8 +46,8 @@ module Homebrew
switch "--rust",
description: "Create a basic template for a Rust build."
switch "--no-fetch",
description: "Homebrew will not download <URL> to the cache and will thus not add its SHA-256 "\
"to the formula for you, nor will it check the GitHub API for GitHub projects "\
description: "Homebrew will not download <URL> to the cache and will thus not add its SHA-256 " \
"to the formula for you, nor will it check the GitHub API for GitHub projects " \
"(to fill out its description and homepage)."
switch "--HEAD",
description: "Indicate that <URL> points to the package's repository rather than a file."

View File

@ -23,9 +23,9 @@ module Homebrew
Generate Homebrew's manpages and shell completions.
EOS
switch "--fail-if-not-changed",
description: "Return a failing status code if no changes are detected in the manpage outputs. "\
"This can be used to notify CI when the manpages are out of date. Additionally, "\
"the date used in new manpages will match those in the existing manpages (to allow "\
description: "Return a failing status code if no changes are detected in the manpage outputs. " \
"This can be used to notify CI when the manpages are out of date. Additionally, " \
"the date used in new manpages will match those in the existing manpages (to allow " \
"comparison without factoring in the date)."
named_args :none
end

View File

@ -18,16 +18,16 @@ module Homebrew
provided, check all kegs. Raises an error if run on uninstalled formulae.
EOS
switch "--test",
description: "Show only missing libraries and exit with a non-zero status if any missing "\
description: "Show only missing libraries and exit with a non-zero status if any missing " \
"libraries are found."
switch "--strict",
depends_on: "--test",
description: "Exit with a non-zero status if any undeclared dependencies with linkage are found."
switch "--reverse",
description: "For every library that a keg references, print its dylib path followed by the "\
description: "For every library that a keg references, print its dylib path followed by the " \
"binaries that link to it."
switch "--cached",
description: "Print the cached linkage values stored in `HOMEBREW_CACHE`, set by a previous "\
description: "Print the cached linkage values stored in `HOMEBREW_CACHE`, set by a previous " \
"`brew linkage` run."
named_args :installed_formula

View File

@ -22,14 +22,14 @@ module Homebrew
flag "--with-label=",
description: "Pull requests must have this label."
comma_array "--without-labels",
description: "Pull requests must not have these labels (default: "\
description: "Pull requests must not have these labels (default: " \
"`do not merge`, `new formula`, `automerge-skip`)."
switch "--without-approval",
description: "Pull requests do not require approval to be merged."
switch "--publish",
description: "Run `brew pr-publish` on matching pull requests."
switch "--no-autosquash",
description: "Instruct `brew pr-publish` to skip automatically reformatting and rewording commits "\
description: "Instruct `brew pr-publish` to skip automatically reformatting and rewording commits " \
"in the pull request to the preferred format."
switch "--ignore-failures",
description: "Include pull requests that have failing status checks."

View File

@ -17,7 +17,7 @@ module Homebrew
Requires write access to the repository.
EOS
switch "--no-autosquash",
description: "Skip automatically reformatting and rewording commits in the pull request "\
description: "Skip automatically reformatting and rewording commits in the pull request " \
"to the preferred format, even if supported on the target tap."
flag "--branch=",
description: "Branch to publish to (default: `master`)."

View File

@ -33,15 +33,15 @@ module Homebrew
description: "If the formula specifies a rebuild version, " \
"attempt to preserve its value in the generated DSL."
switch "--no-autosquash",
description: "Skip automatically reformatting and rewording commits in the pull request to our "\
description: "Skip automatically reformatting and rewording commits in the pull request to our " \
"preferred format."
switch "--branch-okay",
description: "Do not warn if pulling to a branch besides the repository default (useful for testing)."
switch "--resolve",
description: "When a patch fails to apply, leave in progress and allow user to resolve, "\
description: "When a patch fails to apply, leave in progress and allow user to resolve, " \
"instead of aborting."
switch "--warn-on-upload-failure",
description: "Warn instead of raising an error if the bottle upload fails. "\
description: "Warn instead of raising an error if the bottle upload fails. " \
"Useful for repairing bottle uploads that previously failed."
flag "--committer=",
description: "Specify a committer name and email in `git`'s standard author format."
@ -54,10 +54,10 @@ module Homebrew
flag "--root-url=",
description: "Use the specified <URL> as the root of the bottle's URL instead of Homebrew's default."
flag "--root-url-using=",
description: "Use the specified download strategy class for downloading the bottle's URL instead of "\
description: "Use the specified download strategy class for downloading the bottle's URL instead of " \
"Homebrew's default."
comma_array "--workflows=",
description: "Retrieve artifacts from the specified workflow (default: `tests.yml`). "\
description: "Retrieve artifacts from the specified workflow (default: `tests.yml`). " \
"Can be a comma-separated list to include multiple workflows."
comma_array "--ignore-missing-artifacts=",
description: "Comma-separated list of workflows which can be ignored if they have not been run."

View File

@ -24,7 +24,7 @@ module Homebrew
switch "--no-commit",
description: "Do not generate a new commit before uploading."
switch "--warn-on-upload-failure",
description: "Warn instead of raising an error if the bottle upload fails. "\
description: "Warn instead of raising an error if the bottle upload fails. " \
"Useful for repairing bottle uploads that previously failed."
switch "--upload-only",
description: "Skip running `brew bottle` before uploading."
@ -34,7 +34,7 @@ module Homebrew
flag "--root-url=",
description: "Use the specified <URL> as the root of the bottle's URL instead of Homebrew's default."
flag "--root-url-using=",
description: "Use the specified download strategy class for downloading the bottle's URL instead of "\
description: "Use the specified download strategy class for downloading the bottle's URL instead of " \
"Homebrew's default."
conflicts "--upload-only", "--keep-old"

View File

@ -32,10 +32,10 @@ module Homebrew
switch "--cask", "--casks",
description: "Treat all named arguments as casks."
comma_array "--only-cops",
description: "Specify a comma-separated <cops> list to check for violations of only the "\
description: "Specify a comma-separated <cops> list to check for violations of only the " \
"listed RuboCop cops."
comma_array "--except-cops",
description: "Specify a comma-separated <cops> list to skip checking for violations of the "\
description: "Specify a comma-separated <cops> list to skip checking for violations of the " \
"listed RuboCop cops."
conflicts "--formula", "--cask"

View File

@ -22,14 +22,14 @@ module Homebrew
switch "--no-compat",
description: "Do not load the compatibility layer when running tests."
switch "--online",
description: "Include tests that use the GitHub API and tests that use any of the taps for "\
description: "Include tests that use the GitHub API and tests that use any of the taps for " \
"official external commands."
switch "--byebug",
description: "Enable debugging using byebug."
switch "--changed",
description: "Only runs tests on files that were changed from the master branch."
flag "--only=",
description: "Run only <test_script>`_spec.rb`. Appending `:`<line_number> will start at a "\
description: "Run only <test_script>`_spec.rb`. Appending `:`<line_number> will start at a " \
"specific line."
flag "--seed=",
description: "Randomise tests with the specified <value> instead of a random seed."

View File

@ -22,7 +22,7 @@ module Homebrew
switch "--patch",
description: "Patches for <formula> will be applied to the unpacked source."
switch "-g", "--git",
description: "Initialise a Git repository in the unpacked source. This is useful for creating "\
description: "Initialise a Git repository in the unpacked source. This is useful for creating " \
"patches for the software."
switch "-f", "--force",
description: "Overwrite the destination directory if it already exists."

View File

@ -22,10 +22,10 @@ module Homebrew
switch "--ignore-non-pypi-packages",
description: "Don't fail if <formula> is not a PyPI package."
flag "--version=",
description: "Use the specified <version> when finding resources for <formula>. "\
description: "Use the specified <version> when finding resources for <formula>. " \
"If no version is specified, the current version for <formula> will be used."
flag "--package-name=",
description: "Use the specified <package-name> when finding resources for <formula>. "\
description: "Use the specified <package-name> when finding resources for <formula>. " \
"If no package name is specified, it will be inferred from the formula's stable URL."
comma_array "--extra-packages=",
description: "Include these additional packages when finding resources."

View File

@ -49,7 +49,7 @@ module Homebrew
default_text: "`$BAT_THEME`.",
},
HOMEBREW_BOOTSNAP: {
description: "If set, use Bootsnap to speed up repeated `brew` calls. "\
description: "If set, use Bootsnap to speed up repeated `brew` calls. " \
"A no-op when using Homebrew's vendored, relocatable Ruby on macOS (as it doesn't work).",
boolean: true,
},
@ -82,8 +82,8 @@ module Homebrew
description: "Append these options to all `cask` commands. All `--*dir` options, " \
"`--language`, `--require-sha`, `--no-quarantine` and `--no-binaries` are supported. " \
"For example, you might add something like the following to your " \
"`~/.profile`, `~/.bash_profile`, or `~/.zshenv`:\n\n" \
' `export HOMEBREW_CASK_OPTS="--appdir=~/Applications --fontdir=/Library/Fonts"`',
"`~/.profile`, `~/.bash_profile`, or `~/.zshenv`:" \
'\n\n `export HOMEBREW_CASK_OPTS="--appdir=~/Applications --fontdir=/Library/Fonts"`',
},
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: {
description: "If set, `brew install`, `brew upgrade` and `brew reinstall` will cleanup all formulae " \
@ -184,7 +184,7 @@ module Homebrew
"developer commands may require additional permissions.",
},
HOMEBREW_GITHUB_PACKAGES_TOKEN: {
description: "Use this GitHub personal access token when accessing the GitHub Packages Registry "\
description: "Use this GitHub personal access token when accessing the GitHub Packages Registry " \
"(where bottles may be stored).",
},
HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN: {
@ -258,7 +258,7 @@ module Homebrew
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: {
description: "If set, do not check for broken linkage of dependents or outdated dependents after " \
"installing, upgrading or reinstalling formulae. This will result in fewer dependents " \
" (and their dependencies) being upgraded or reinstalled but may result in more breakage " \
"(and their dependencies) being upgraded or reinstalled but may result in more breakage " \
"from running `brew install <formula>` or `brew upgrade <formula>`.",
boolean: true,
},

View File

@ -87,7 +87,7 @@ module RuboCop
next if allowed_methods.include? method_names
end
offending_node(on_os_block)
message = "`#{method_name}` blocks within `resource` blocks must contain at least "\
message = "`#{method_name}` blocks within `resource` blocks must contain at least " \
"#{minimum_methods} and at most #{maximum_methods} (in order)."
break
end

View File

@ -25,7 +25,7 @@ module RuboCop
first_word = reason_text.split.first
if reason_text.match?(/\A[A-Z]/)
problem "'#{first_word}' from the `conflicts_with` reason "\
problem "'#{first_word}' from the `conflicts_with` reason " \
"should be '#{first_word.downcase}'." do |corrector|
reason_text[0] = reason_text[0].downcase
corrector.replace(reason.source_range, "\"#{reason_text}\"")

View File

@ -103,7 +103,7 @@ module RuboCop
offending_node(node_1)
problem "dependency \"#{dependency_name(node_1)}\" (line #{l1}) should be put before dependency "\
problem "dependency \"#{dependency_name(node_1)}\" (line #{l1}) should be put before dependency " \
"\"#{dependency_name(node_2)}\" (line #{l2})" do |corrector|
indentation = " " * (start_column(node_2) - line_start_column(node_2))
line_breaks = "\n"

View File

@ -33,7 +33,7 @@ module RuboCop
# "Software" is redirected to https://wiki.freedesktop.org/www/Software/project_name
when %r{^http://((?:www|nice|libopenraw|liboil|telepathy|xorg)\.)?freedesktop\.org/(?:wiki/)?}
if homepage.include?("Software")
problem "Freedesktop homepages should be styled "\
problem "Freedesktop homepages should be styled " \
"`https://wiki.freedesktop.org/www/Software/project_name`"
else
problem "Freedesktop homepages should be styled `https://wiki.freedesktop.org/project_name`"

View File

@ -364,7 +364,7 @@ module RuboCop
end
offending_node(str)
problem "References to `#{content}` should "\
problem "References to `#{content}` should " \
"match the specified python dependency (`#{fix}`)" do |corrector|
corrector.replace(str.source_range, "\"#{fix}\"")
end

View File

@ -27,15 +27,15 @@ module RuboCop
if option !~ /with(out)?-/ &&
option != "cxx11" &&
option != "universal"
problem "Options should begin with with/without."\
" Migrate '--#{option}' with `deprecated_option`."
problem "Options should begin with with/without. " \
"Migrate '--#{option}' with `deprecated_option`."
end
next unless option =~ /^with(out)?-(?:checks?|tests)$/
next if depends_on?("check", :optional, :recommended)
problem "Use '--with#{Regexp.last_match(1)}-test' instead of '--#{option}'."\
" Migrate '--#{option}' with `deprecated_option`."
problem "Use '--with#{Regexp.last_match(1)}-test' instead of '--#{option}'. " \
"Migrate '--#{option}' with `deprecated_option`."
end
return if formula_tap != "homebrew-core"

View File

@ -113,7 +113,7 @@ module RuboCop
class ExecShellMetacharacters < Base
include HelperFunctions
MSG = "Don't use shell metacharacters in `exec`. "\
MSG = "Don't use shell metacharacters in `exec`. " \
"Implement the logic in Ruby instead, using methods like `$stdout.reopen`."
RESTRICT_ON_SEND = [:exec].freeze

View File

@ -63,7 +63,7 @@ module RuboCop
find_method_with_args(body_node, :keg_only, :provided_by_macos) do
return if PROVIDED_BY_MACOS_FORMULAE.include? @formula_name
problem "Formulae that are `keg_only :provided_by_macos` should be "\
problem "Formulae that are `keg_only :provided_by_macos` should be " \
"added to the `PROVIDED_BY_MACOS_FORMULAE` list (in the Homebrew/brew repo)"
end
end

View File

@ -180,8 +180,8 @@ module Homebrew
when :background, :standard, :interactive, :adaptive
@process_type = value
when Symbol
raise TypeError, "Service#process_type allows: "\
"'#{PROCESS_TYPE_BACKGROUND}'/'#{PROCESS_TYPE_STANDARD}'/"\
raise TypeError, "Service#process_type allows: " \
"'#{PROCESS_TYPE_BACKGROUND}'/'#{PROCESS_TYPE_STANDARD}'/" \
"'#{PROCESS_TYPE_INTERACTIVE}'/'#{PROCESS_TYPE_ADAPTIVE}'"
else
raise TypeError, "Service#process_type expects a Symbol"

View File

@ -377,7 +377,7 @@ class Bottle
json = begin
JSON.parse(manifest_json)
rescue JSON::ParserError
raise "The downloaded GitHub Packages manifest was corrupted or modified (it is not valid JSON): "\
raise "The downloaded GitHub Packages manifest was corrupted or modified (it is not valid JSON): " \
"\n#{github_packages_manifest_resource.cached_download}"
end

View File

@ -97,9 +97,12 @@ class Attr < Parlour::Plugin
when :attr_rw
name = node.shift
name = "self.#{name}" if sclass
namespace.create_method(name, parameters: [
Parlour::RbiGenerator::Parameter.new("arg", type: "T.untyped", default: "T.unsafe(nil)"),
], return_type: "T.untyped")
namespace.create_method(name,
parameters: [
Parlour::RbiGenerator::Parameter.new("arg", type: "T.untyped",
default: "T.unsafe(nil)"),
],
return_type: "T.untyped")
when :attr_predicate
name = node.shift
name = "self.#{name}" if sclass

View File

@ -0,0 +1,101 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `json` gem.
# Please instead update this file by running `bin/tapioca gem json`.
class Class < ::Module
def json_creatable?; end
end
module JSON
private
def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
def fast_generate(obj, opts = T.unsafe(nil)); end
def fast_unparse(obj, opts = T.unsafe(nil)); end
def generate(obj, opts = T.unsafe(nil)); end
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
def load_file(filespec, opts = T.unsafe(nil)); end
def load_file!(filespec, opts = T.unsafe(nil)); end
def parse(source, opts = T.unsafe(nil)); end
def parse!(source, opts = T.unsafe(nil)); end
def pretty_generate(obj, opts = T.unsafe(nil)); end
def pretty_unparse(obj, opts = T.unsafe(nil)); end
def recurse_proc(result, &proc); end
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
def unparse(obj, opts = T.unsafe(nil)); end
class << self
def [](object, opts = T.unsafe(nil)); end
def create_fast_state; end
def create_id; end
def create_id=(new_value); end
def create_pretty_state; end
def deep_const_get(path); end
def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
def dump_default_options; end
def dump_default_options=(_arg0); end
def fast_generate(obj, opts = T.unsafe(nil)); end
def fast_unparse(obj, opts = T.unsafe(nil)); end
def generate(obj, opts = T.unsafe(nil)); end
def generator; end
def generator=(generator); end
def iconv(to, from, string); end
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
def load_default_options; end
def load_default_options=(_arg0); end
def load_file(filespec, opts = T.unsafe(nil)); end
def load_file!(filespec, opts = T.unsafe(nil)); end
def parse(source, opts = T.unsafe(nil)); end
def parse!(source, opts = T.unsafe(nil)); end
def parser; end
def parser=(parser); end
def pretty_generate(obj, opts = T.unsafe(nil)); end
def pretty_unparse(obj, opts = T.unsafe(nil)); end
def recurse_proc(result, &proc); end
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
def state; end
def state=(_arg0); end
def unparse(obj, opts = T.unsafe(nil)); end
end
end
JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String)
JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String)
class JSON::GenericObject < ::OpenStruct
def as_json(*_arg0); end
def to_hash; end
def to_json(*a); end
def |(other); end
class << self
def dump(obj, *args); end
def from_hash(object); end
def json_creatable=(_arg0); end
def json_creatable?; end
def json_create(data); end
def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
end
end
class JSON::JSONError < ::StandardError
class << self
def wrap(exception); end
end
end
JSON::Parser = JSON::Ext::Parser
JSON::State = JSON::Ext::Generator::State
JSON::UnparserError = JSON::GeneratorError
module Kernel
extend ::Forwardable
private
def JSON(object, *args); end
def j(*objs); end
def jj(*objs); end
end

View File

@ -227,6 +227,7 @@ class RuboCop::Config
def [](*args, &block); end
def []=(*args, &block); end
def active_support_extensions_enabled?; end
def add_excludes_from_higher_level(highest_config); end
def allowed_camel_case_file?(file); end
def base_dir_for_path_parameters; end
@ -754,6 +755,7 @@ class RuboCop::Cop::Base
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
def active_support_extensions_enabled?; end
def add_global_offense(message = T.unsafe(nil), severity: T.unsafe(nil)); end
def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end
def callbacks_needed; end
@ -1533,16 +1535,6 @@ end
module RuboCop::Cop::Gemspec; end
class RuboCop::Cop::Gemspec::DateAssignment < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
include ::RuboCop::Cop::GemspecHelp
extend ::RuboCop::Cop::AutoCorrector
def on_block(block_node); end
end
RuboCop::Cop::Gemspec::DateAssignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
include ::RuboCop::Cop::GemspecHelp
@ -1581,7 +1573,9 @@ class RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment < ::RuboCop::Cop::Bas
private
def use_test_files?(node, block_parameter); end
def format_message_from; end
def node_and_method_name(node, attribute); end
def use_deprecated_attributes?(node, block_parameter); end
end
RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment::MSG = T.let(T.unsafe(nil), String)
@ -2559,7 +2553,10 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor < ::RuboCop::Cop::
def allow_alias?(node); end
def allow_alias_syntax?; end
def attribute_or_allowed_method?(node); end
def autocorrect(corrector, node); end
def next_line_empty?(line); end
def next_line_empty_or_enable_directive_comment?(line); end
def next_line_enable_directive_comment?(line); end
def next_line_node(node); end
def require_empty_line?(node); end
end
@ -2797,12 +2794,12 @@ class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base
private
def autocorrect(corrector, node); end
def base_description(left_parenthesis); end
def base_description(indent_base_type); end
def brace_alignment_style; end
def check(array_node, left_parenthesis); end
def check_right_bracket(right_bracket, left_bracket, left_parenthesis); end
def message(base_description); end
def msg(left_parenthesis); end
def message_for_right_bracket(indent_base_type); end
end
RuboCop::Cop::Layout::FirstArrayElementIndentation::MSG = T.let(T.unsafe(nil), String)
@ -2834,14 +2831,14 @@ class RuboCop::Cop::Layout::FirstHashElementIndentation < ::RuboCop::Cop::Base
def argument_alignment_config; end
def autocorrect(corrector, node); end
def base_description(left_parenthesis); end
def base_description(indent_base_type); end
def brace_alignment_style; end
def check(hash_node, left_parenthesis); end
def check_based_on_longest_key(hash_node, left_brace, left_parenthesis); end
def check_right_brace(right_brace, left_brace, left_parenthesis); end
def enforce_first_argument_with_fixed_indentation?; end
def message(base_description); end
def message_for_right_brace(left_parenthesis); end
def message_for_right_brace(indent_base_type); end
def separator_style?(first_pair); end
end
@ -3153,6 +3150,41 @@ end
RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::LineContinuationLeadingSpace < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
def on_dstr(node); end
private
def continuation?(line); end
def investigate(first_line, second_line, range_start); end
def offense_range(range_start, matches); end
def raw_lines(node); end
end
RuboCop::Cop::Layout::LineContinuationLeadingSpace::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::LineContinuationSpacing < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
def on_new_investigation; end
private
def autocorrect(corrector, range); end
def comment_ranges(comments); end
def find_offensive_spacing(line); end
def ignore_range?(backtick_range); end
def investigate(line, line_number); end
def last_line(processed_source); end
def message(_range); end
def no_space_style?; end
def space_style?; end
def string_literal_ranges(ast); end
end
class RuboCop::Cop::Layout::LineEndStringConcatenationIndentation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
include ::RuboCop::Cop::Alignment
@ -3896,6 +3928,7 @@ class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
def on_block(node); end
def on_numblock(node); end
private
@ -4314,6 +4347,20 @@ end
RuboCop::Cop::Lint::ConstantDefinitionInBlock::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ConstantOverwrittenInRescue < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
def on_resbody(node); end
def overwritten_constant(param0 = T.unsafe(nil)); end
class << self
def autocorrect_incompatible_with; end
end
end
RuboCop::Cop::Lint::ConstantOverwrittenInRescue::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Base
def on_const(node); end
def unqualified_const?(param0 = T.unsafe(nil)); end
@ -5067,6 +5114,31 @@ end
RuboCop::Cop::Lint::NoReturnInBeginEndBlocks::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::NonAtomicFileOperation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::Alignment
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
def explicit_not_force?(param0); end
def force?(param0); end
def on_send(node); end
def receiver_and_method_name(param0 = T.unsafe(nil)); end
def send_exist_node(param0); end
private
def autocorrect(corrector, node, range); end
def force_option?(node); end
def message(node); end
def offense(node, exist_node); end
def replacement_method(node); end
end
RuboCop::Cop::Lint::NonAtomicFileOperation::MAKE_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::NonAtomicFileOperation::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::NonAtomicFileOperation::REMOVE_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::NonAtomicFileOperation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
@ -6021,6 +6093,12 @@ end
RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessElseWithoutRescue < ::RuboCop::Cop::Base
def on_new_investigation; end
end
RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessMethodDefinition < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
@ -6459,13 +6537,17 @@ end
module RuboCop::Cop::MultilineElementIndentation
private
def base_column(left_brace, left_parenthesis); end
def check_expected_style(styles); end
def check_first(first, left_brace, left_parenthesis, offset); end
def detected_styles(actual_column, offset, left_parenthesis, left_brace); end
def detected_styles_for_column(column, left_parenthesis, left_brace); end
def each_argument_node(node, type); end
def incorrect_style_detected(styles, first, left_parenthesis); end
def hash_pair_where_value_beginning_with(left_brace); end
def incorrect_style_detected(styles, first, base_column_type); end
def indent_base(left_brace, left_parenthesis); end
def key_and_value_begin_on_same_line?(pair); end
def node_beginning_with(left_brace); end
def right_sibling_begins_on_subsequent_line?(pair); end
end
module RuboCop::Cop::MultilineElementLineBreaks
@ -7155,11 +7237,12 @@ module RuboCop::Cop::RangeHelp
def range_between(start_pos, end_pos); end
def range_by_whole_lines(range, include_final_newline: T.unsafe(nil)); end
def range_with_surrounding_comma(range, side = T.unsafe(nil)); end
def range_with_surrounding_space(range:, side: T.unsafe(nil), newlines: T.unsafe(nil), whitespace: T.unsafe(nil), continuations: T.unsafe(nil)); end
def range_with_surrounding_space(range_positional = T.unsafe(nil), range: T.unsafe(nil), side: T.unsafe(nil), newlines: T.unsafe(nil), whitespace: T.unsafe(nil), continuations: T.unsafe(nil)); end
def source_range(source_buffer, line_number, column, length = T.unsafe(nil)); end
end
RuboCop::Cop::RangeHelp::BYTE_ORDER_MARK = T.let(T.unsafe(nil), Integer)
module RuboCop::Cop::RangeHelp::NOT_GIVEN; end
module RuboCop::Cop::RationalLiteral
extend ::RuboCop::AST::NodePattern::Macros
@ -7739,6 +7822,7 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
def on_block(node); end
def on_numblock(node); end
def on_send(node); end
private
@ -8528,6 +8612,7 @@ class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Base
def expanded?(node); end
def expanded_style?; end
def joint(node); end
def max_line_length; end
def message(_range); end
end
@ -8857,6 +8942,7 @@ class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
include ::RuboCop::Cop::IgnoredMethods
extend ::RuboCop::Cop::IgnoredMethods::Config
extend ::RuboCop::Cop::AutoCorrector
def format_string_in_typical_context?(param0 = T.unsafe(nil)); end
def on_str(node); end
@ -8864,7 +8950,10 @@ class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Base
private
def allowed_unannotated?(detections); end
def autocorrect_sequence(corrector, detected_sequence, token_range); end
def check_sequence(detected_sequence, token_range); end
def collect_detections(node); end
def correctable_sequence?(detected_type); end
def format_string_token?(node); end
def max_unannotated_placeholders_allowed; end
def message(detected_style); end
@ -8953,9 +9042,9 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base
def check_ending_if(node); end
def consecutive_conditionals?(parent, node); end
def guard_clause_source(guard_clause); end
def opposite_keyword(node); end
def register_offense(node, scope_exiting_keyword, conditional_keyword); end
def too_long_for_single_line?(node, example); end
def trivial?(node); end
end
RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String)
@ -9029,12 +9118,19 @@ class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::TargetRubyVersion
extend ::RuboCop::Cop::AutoCorrector
def bad_method?(param0 = T.unsafe(nil)); end
def bad_method_with_active_support?(param0 = T.unsafe(nil)); end
def bad_method_with_poro?(param0 = T.unsafe(nil)); end
def on_send(node); end
private
def bad_method?(block); end
def decorate_source(value); end
def except_key(node); end
def except_key_source(key); end
def extract_body_if_nagated(body); end
def included?(negated, body); end
def not_included?(negated, body); end
def offense_range(node); end
def safe_to_register_offense?(block, except_key); end
def semantically_except_method?(send, block); end
@ -9520,7 +9616,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
def allowed_string_interpolation_method_call?(node); end
def ambigious_literal?(node); end
def assigned_before?(node, target); end
def auto_correct(corrector, node); end
def autocorrect(corrector, node); end
def call_as_argument_or_chain?(node); end
def call_in_literals?(node); end
def call_in_logical_operators?(node); end
@ -10034,14 +10130,17 @@ end
RuboCop::Cop::Style::NestedParenthesizedCalls::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::NestedTernaryOperator < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
def on_if(node); end
private
def autocorrect(corrector, if_node); end
def if_node(node); end
def remove_parentheses(source); end
def replace_loc_and_whitespace(corrector, range, replacement); end
end
RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String)
@ -11052,10 +11151,6 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
def allowed_send_node?(node); end
def on_argument(node); end
def regular_method_call?(node); end
class << self
def autocorrect_incompatible_with; end
end
end
RuboCop::Cop::Style::RedundantSelf::KERNEL_METHODS = T.let(T.unsafe(nil), Array)
@ -13045,6 +13140,8 @@ RuboCop::Formatter::FuubarStyleFormatter::RESET_SEQUENCE = T.let(T.unsafe(nil),
class RuboCop::Formatter::GitHubActionsFormatter < ::RuboCop::Formatter::BaseFormatter
def file_finished(file, offenses); end
def finished(_inspected_files); end
def started(_target_files); end
private
@ -13269,7 +13366,7 @@ class RuboCop::Formatter::SimpleTextFormatter::Report
include ::RuboCop::Formatter::Colorizable
include ::RuboCop::Formatter::TextUtil
def initialize(file_count, offense_count, correction_count, correctable_count, rainbow, safe_auto_correct: T.unsafe(nil)); end
def initialize(file_count, offense_count, correction_count, correctable_count, rainbow, safe_autocorrect: T.unsafe(nil)); end
def summary; end
@ -13433,6 +13530,7 @@ class RuboCop::Options
def add_cop_selection_csv_option(option, opts); end
def add_general_options(opts); end
def add_output_options(opts); end
def add_server_options(opts); end
def add_severity_option(opts); end
def args_from_env; end
def args_from_file; end
@ -13798,6 +13896,7 @@ module RuboCop::Version
end
RuboCop::Version::CANONICAL_FEATURE_NAMES = T.let(T.unsafe(nil), Hash)
RuboCop::Version::EXTENSION_PATH_NAMES = T.let(T.unsafe(nil), Hash)
RuboCop::Version::MSG = T.let(T.unsafe(nil), String)
RuboCop::Version::STRING = T.let(T.unsafe(nil), String)
class RuboCop::Warning < ::StandardError; end

View File

@ -1044,8 +1044,6 @@ end
class Class
def any_instance(); end
def json_creatable?(); end
end
class CompilerSelector::Compiler
@ -2963,12 +2961,6 @@ class JSON::Ext::Parser
def initialize(*arg); end
end
JSON::Parser = JSON::Ext::Parser
JSON::State = JSON::Ext::Generator::State
JSON::UnparserError = JSON::GeneratorError
class Keg::ConflictError
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::SingletonMethodHooks
@ -3391,13 +3383,7 @@ end
Net::HTTPFatalErrorCode = Net::HTTPClientError
class Net::HTTPInformation
end
Net::HTTPInformationCode::EXCEPTION_TYPE = Net::HTTPError
class Net::HTTPInformation
end
Net::HTTPInformationCode = Net::HTTPInformation
class Net::HTTPLoopDetected
HAS_BODY = ::T.let(nil, ::T.untyped)
@ -3457,13 +3443,7 @@ Net::HTTPServerErrorCode = Net::HTTPServerError
Net::HTTPSession = Net::HTTP
class Net::HTTPSuccess
end
Net::HTTPSuccessCode::EXCEPTION_TYPE = Net::HTTPError
class Net::HTTPSuccess
end
Net::HTTPSuccessCode = Net::HTTPSuccess
class Net::HTTPURITooLong
HAS_BODY = ::T.let(nil, ::T.untyped)
@ -4969,10 +4949,15 @@ end
module RuboCop::AST::NodePattern::Sets
SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped)
SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
SET_EXIST_EXISTS = ::T.let(nil, ::T.untyped)
SET_FILETEST_FILE_DIR_SHELL = ::T.let(nil, ::T.untyped)
SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped)
SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
SET__EQL_ = ::T.let(nil, ::T.untyped)
SET__FETCH = ::T.let(nil, ::T.untyped)
SET___EQL_ETC = ::T.let(nil, ::T.untyped)
SET___EQL_INCLUDE = ::T.let(nil, ::T.untyped)
SET_____2 = ::T.let(nil, ::T.untyped)
end

View File

@ -111,7 +111,7 @@ describe Cask::Cmd::Install, :cask do
described_class.run("localcaffeine")
}.to raise_error(
Cask::CaskUnavailableError,
"Cask 'localcaffeine' is unavailable: No Cask with this name exists. "\
"Cask 'localcaffeine' is unavailable: No Cask with this name exists. " \
"Did you mean 'local-caffeine'?",
)
end

View File

@ -24,7 +24,7 @@ describe "Satisfy Dependencies and Requirements", :cask do
it {
expect { install }.to raise_error(
Cask::CaskCyclicDependencyError,
"Cask 'with-depends-on-cask-cyclic' includes cyclic dependencies "\
"Cask 'with-depends-on-cask-cyclic' includes cyclic dependencies " \
"on other Casks: with-depends-on-cask-cyclic-helper",
)
}

View File

@ -301,7 +301,7 @@ module Homebrew
expect(fa.problems).to be_empty
end
it "checks online and verifies that a standard license id is the same "\
it "checks online and verifies that a standard license id is the same " \
"as what is indicated on its Github repo", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
@ -317,7 +317,7 @@ module Homebrew
expect(fa.problems).to be_empty
end
it "checks online and verifies that a standard license id with AND is the same "\
it "checks online and verifies that a standard license id with AND is the same " \
"as what is indicated on its Github repo", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
@ -333,7 +333,7 @@ module Homebrew
expect(fa.problems).to be_empty
end
it "checks online and verifies that a standard license id with WITH is the same "\
it "checks online and verifies that a standard license id with WITH is the same " \
"as what is indicated on its Github repo", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
@ -415,7 +415,7 @@ module Homebrew
expect(fa.problems).to be_empty
end
it "checks online and detects that a formula-specified license is not "\
it "checks online and detects that a formula-specified license is not " \
"the same as what is indicated on its Github repository", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
@ -432,7 +432,7 @@ module Homebrew
.to eq 'Formula license ["0BSD"] does not match GitHub license ["GPL-3.0"].'
end
it "allows a formula-specified license that differs from its GitHub "\
it "allows a formula-specified license that differs from its GitHub " \
"repository for formulae on the mismatched license allowlist", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
@ -449,7 +449,7 @@ module Homebrew
expect(fa.problems).to be_empty
end
it "checks online and detects that an array of license does not contain "\
it "checks online and detects that an array of license does not contain " \
"what is indicated on its Github repository", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
@ -462,11 +462,11 @@ module Homebrew
online: true, core_tap: true, new_formula: true
fa.audit_license
expect(fa.problems.first[:message]).to match "Formula license [\"0BSD\", \"MIT\"] "\
expect(fa.problems.first[:message]).to match "Formula license [\"0BSD\", \"MIT\"] " \
"does not match GitHub license [\"GPL-3.0\"]."
end
it "checks online and verifies that an array of license contains "\
it "checks online and verifies that an array of license contains " \
"what is indicated on its Github repository", :needs_network do
formula_text = <<~RUBY
class Cask < Formula

View File

@ -50,7 +50,7 @@ describe RuboCop::Cop::Cask::HomepageUrlTrailingSlash do
end
let(:expected_offenses) do
[{
message: "'https://foo.brew.sh' must have a slash "\
message: "'https://foo.brew.sh' must have a slash " \
"after the domain.",
severity: :convention,
line: 2,

View File

@ -109,8 +109,8 @@ describe RuboCop::Cop::Cask::StanzaOrder do
severity: :convention,
line: 3,
column: 2,
source: "uninstall :quit => 'com.example.foo',\n" \
" :kext => 'com.example.foo.kext'",
source: "uninstall :quit => 'com.example.foo'," \
"\n :kext => 'com.example.foo.kext'",
}, {
message: "`version` stanza out of order",
severity: :convention,

View File

@ -54,7 +54,7 @@ describe RuboCop::Cop::Cask::UrlLegacyCommaSeparators do
end
let(:expected_offenses) do
[{
message: "Use 'version.csv.first' instead of 'version.before_comma' "\
message: "Use 'version.csv.first' instead of 'version.before_comma' " \
"and 'version.csv.second' instead of 'version.after_comma'",
severity: :convention,
line: 3,
@ -87,7 +87,7 @@ describe RuboCop::Cop::Cask::UrlLegacyCommaSeparators do
end
let(:expected_offenses) do
[{
message: "Use 'version.csv.first' instead of 'version.before_comma' "\
message: "Use 'version.csv.first' instead of 'version.before_comma' " \
"and 'version.csv.second' instead of 'version.after_comma'",
severity: :convention,
line: 3,

View File

@ -10,9 +10,9 @@ cask "with-zap" do
uninstall quit: "my.fancy.package.app.from.uninstall"
zap script: {
executable: "MyFancyPkg/FancyUninstaller.tool",
args: ["--please"],
},
executable: "MyFancyPkg/FancyUninstaller.tool",
args: ["--please"],
},
quit: "my.fancy.package.app",
login_item: "Fancy",
delete: "~/Library/Preferences/my.fancy.app.plist"

View File

@ -62,8 +62,8 @@ describe "Utils::Curl" do
"cache-control" => "private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"expires" => "Thu, 01 Jan 1970 00:00:01 GMT",
"expect-ct" => "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
"set-cookie" => "__cf_bm=0123456789abcdef; path=/; expires=Wed, 31-Jan-20 01:23:45 GMT;" \
" domain=www.example.com; HttpOnly; Secure; SameSite=None",
"set-cookie" => "__cf_bm=0123456789abcdef; path=/; expires=Wed, 31-Jan-20 01:23:45 GMT; " \
"domain=www.example.com; HttpOnly; Secure; SameSite=None",
"server" => "cloudflare",
"cf-ray" => "0123456789abcdef-IAD",
"alt-svc" => "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400",
@ -77,8 +77,8 @@ describe "Utils::Curl" do
details[:cloudflare][:multiple_cookies] = Marshal.load(Marshal.dump(details[:cloudflare][:single_cookie]))
details[:cloudflare][:multiple_cookies][:headers]["set-cookie"] = [
"first_cookie=for_testing",
"__cf_bm=abcdef0123456789; path=/; expires=Thu, 28-Apr-22 18:38:40 GMT; domain=www.example.com; HttpOnly;" \
" Secure; SameSite=None",
"__cf_bm=abcdef0123456789; path=/; expires=Thu, 28-Apr-22 18:38:40 GMT; domain=www.example.com; HttpOnly; " \
"Secure; SameSite=None",
"last_cookie=also_for_testing",
]

View File

@ -5,11 +5,11 @@ require "utils/pypi"
describe PyPI do
let(:package_url) do
"https://files.pythonhosted.org/packages/b0/3f/2e1dad67eb172b6443b5eb37eb885a054a55cfd733393071499514140282/"\
"https://files.pythonhosted.org/packages/b0/3f/2e1dad67eb172b6443b5eb37eb885a054a55cfd733393071499514140282/" \
"snakemake-5.29.0.tar.gz"
end
let(:old_package_url) do
"https://files.pythonhosted.org/packages/6f/c4/da52bfdd6168ea46a0fe2b7c983b6c34c377a8733ec177cc00b197a96a9f/"\
"https://files.pythonhosted.org/packages/6f/c4/da52bfdd6168ea46a0fe2b7c983b6c34c377a8733ec177cc00b197a96a9f/" \
"snakemake-5.28.0.tar.gz"
end

View File

@ -294,10 +294,10 @@ module Utils
format "%#{count_width}s", count_header
formatted_percent_header =
format "%#{percent_width}s", percent_header
puts "#{formatted_index_header} | #{formatted_name_with_options_header} | "\
puts "#{formatted_index_header} | #{formatted_name_with_options_header} | " \
"#{formatted_count_header} | #{formatted_percent_header}"
columns_line = "#{"-"*index_width}:|-#{"-"*name_with_options_width}-|-"\
columns_line = "#{"-"*index_width}:|-#{"-"*name_with_options_width}-|-" \
"#{"-"*count_width}:|-#{"-"*percent_width}:"
puts columns_line
@ -330,7 +330,7 @@ module Utils
format "%#{count_width}s", formatted_total_count
formatted_total_percent_footer =
format "%#{percent_width}s", formatted_total_percent
puts "#{formatted_total_footer} | #{formatted_blank_footer} | "\
puts "#{formatted_total_footer} | #{formatted_blank_footer} | " \
"#{formatted_total_count_footer} | #{formatted_total_percent_footer}%"
end

View File

@ -549,8 +549,8 @@ module GitHub
ohai "git fetch --unshallow origin" if shallow
ohai "git add #{changed_files.join(" ")}"
ohai "git checkout --no-track -b #{branch} #{remote}/#{remote_branch}"
ohai "git commit --no-edit --verbose --message='#{commit_message}'" \
" -- #{changed_files.join(" ")}"
ohai "git commit --no-edit --verbose --message='#{commit_message}' " \
"-- #{changed_files.join(" ")}"
ohai "git push --set-upstream #{remote_url} #{branch}:#{branch}"
ohai "git checkout --quiet #{previous_branch}"
ohai "create pull request with GitHub API (base branch: #{remote_branch})"

View File

@ -198,7 +198,7 @@ module PyPI
input_packages.each do |existing_package|
if existing_package.same_package?(extra_package) && existing_package.version != extra_package.version
odie "Conflicting versions specified for the `#{extra_package.name}` package: "\
odie "Conflicting versions specified for the `#{extra_package.name}` package: " \
"#{existing_package.version}, #{extra_package.version}"
end
end

View File

@ -38,6 +38,8 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/hana-1.3.7/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/x86_64-darwin-15/2.6.0-static/hpricot-0.8.6"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/hpricot-0.8.6/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/http-cookie-1.0.5/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/x86_64-darwin-15/2.6.0-static/json-2.6.2"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/json-2.6.2/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/uri_template-0.7.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/json_schemer-0.2.21/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/mime-types-data-3.2022.0105/lib"
@ -84,7 +86,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec_junit_formatter
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.18.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.2.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.30.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.31.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.14.2/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.15.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.11.1/lib"

View File

@ -1982,9 +1982,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
*Default:* macOS: `$HOME/Library/Caches/Homebrew`, Linux: `$XDG_CACHE_HOME/Homebrew` or `$HOME/.cache/Homebrew`.
- `HOMEBREW_CASK_OPTS`
<br>Append these options to all `cask` commands. All `--*dir` options, `--language`, `--require-sha`, `--no-quarantine` and `--no-binaries` are supported. For example, you might add something like the following to your `~/.profile`, `~/.bash_profile`, or `~/.zshenv`:
`export HOMEBREW_CASK_OPTS="--appdir=~/Applications --fontdir=/Library/Fonts"`
<br>Append these options to all `cask` commands. All `--*dir` options, `--language`, `--require-sha`, `--no-quarantine` and `--no-binaries` are supported. For example, you might add something like the following to your `~/.profile`, `~/.bash_profile`, or `~/.zshenv`:\n\n `export HOMEBREW_CASK_OPTS="--appdir=~/Applications --fontdir=/Library/Fonts"`
- `HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS`
<br>If set, `brew install`, `brew upgrade` and `brew reinstall` will cleanup all formulae when this number of days has passed.
@ -2124,7 +2122,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
<br>If set, do not use Bootsnap to speed up repeated `brew` calls.
- `HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK`
<br>If set, do not check for broken linkage of dependents or outdated dependents after installing, upgrading or reinstalling formulae. This will result in fewer dependents (and their dependencies) being upgraded or reinstalled but may result in more breakage from running `brew install *`formula`*` or `brew upgrade *`formula`*`.
<br>If set, do not check for broken linkage of dependents or outdated dependents after installing, upgrading or reinstalling formulae. This will result in fewer dependents (and their dependencies) being upgraded or reinstalled but may result in more breakage from running `brew install *`formula`*` or `brew upgrade *`formula`*`.
- `HOMEBREW_NO_CLEANUP_FORMULAE`
<br>A comma-separated list of formulae. Homebrew will refuse to clean up a formula if it appears on this list.

View File

@ -2826,10 +2826,7 @@ Use this directory as the download cache\.
\fBHOMEBREW_CASK_OPTS\fR
.
.br
Append these options to all \fBcask\fR commands\. All \fB\-\-*dir\fR options, \fB\-\-language\fR, \fB\-\-require\-sha\fR, \fB\-\-no\-quarantine\fR and \fB\-\-no\-binaries\fR are supported\. For example, you might add something like the following to your \fB~/\.profile\fR, \fB~/\.bash_profile\fR, or \fB~/\.zshenv\fR:
.
.IP
\fBexport HOMEBREW_CASK_OPTS="\-\-appdir=~/Applications \-\-fontdir=/Library/Fonts"\fR
Append these options to all \fBcask\fR commands\. All \fB\-\-*dir\fR options, \fB\-\-language\fR, \fB\-\-require\-sha\fR, \fB\-\-no\-quarantine\fR and \fB\-\-no\-binaries\fR are supported\. For example, you might add something like the following to your \fB~/\.profile\fR, \fB~/\.bash_profile\fR, or \fB~/\.zshenv\fR:\en\en \fBexport HOMEBREW_CASK_OPTS="\-\-appdir=~/Applications \-\-fontdir=/Library/Fonts"\fR
.
.TP
\fBHOMEBREW_CLEANUP_PERIODIC_FULL_DAYS\fR