From 2d5eab2e1cf0197a554532b9ddd6797456001076 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 28 Jun 2022 10:09:59 +0100 Subject: [PATCH] brew style --fix --- Library/Homebrew/cmd/cleanup.rb | 6 +++--- Library/Homebrew/cmd/deps.rb | 10 +++++----- Library/Homebrew/cmd/desc.rb | 6 +++--- Library/Homebrew/cmd/doctor.rb | 2 +- Library/Homebrew/cmd/fetch.rb | 6 +++--- Library/Homebrew/cmd/gist-logs.rb | 4 ++-- Library/Homebrew/cmd/info.rb | 18 +++++++++--------- Library/Homebrew/cmd/install.rb | 2 +- Library/Homebrew/cmd/link.rb | 2 +- Library/Homebrew/cmd/list.rb | 8 ++++---- Library/Homebrew/cmd/migrate.rb | 2 +- Library/Homebrew/cmd/missing.rb | 2 +- Library/Homebrew/cmd/outdated.rb | 4 ++-- Library/Homebrew/cmd/search.rb | 2 +- Library/Homebrew/cmd/tap-info.rb | 4 ++-- Library/Homebrew/cmd/tap.rb | 4 ++-- Library/Homebrew/cmd/uninstall.rb | 2 +- Library/Homebrew/cmd/unlink.rb | 2 +- Library/Homebrew/cmd/update-report.rb | 2 +- Library/Homebrew/cmd/upgrade.rb | 16 ++++++++-------- Library/Homebrew/deprecate_disable.rb | 2 +- Library/Homebrew/dev-cmd/audit.rb | 16 ++++++++-------- Library/Homebrew/dev-cmd/bottle.rb | 14 +++++++------- Library/Homebrew/dev-cmd/bump-cask-pr.rb | 2 +- Library/Homebrew/dev-cmd/bump-formula-pr.rb | 14 +++++++------- Library/Homebrew/dev-cmd/create.rb | 4 ++-- .../dev-cmd/generate-man-completions.rb | 6 +++--- Library/Homebrew/dev-cmd/linkage.rb | 6 +++--- Library/Homebrew/dev-cmd/pr-automerge.rb | 4 ++-- Library/Homebrew/dev-cmd/pr-publish.rb | 2 +- Library/Homebrew/dev-cmd/pr-pull.rb | 10 +++++----- Library/Homebrew/dev-cmd/pr-upload.rb | 4 ++-- Library/Homebrew/dev-cmd/style.rb | 4 ++-- Library/Homebrew/dev-cmd/tests.rb | 4 ++-- Library/Homebrew/dev-cmd/unpack.rb | 2 +- .../dev-cmd/update-python-resources.rb | 4 ++-- Library/Homebrew/env_config.rb | 4 ++-- Library/Homebrew/rubocops/components_order.rb | 2 +- Library/Homebrew/rubocops/conflicts.rb | 2 +- Library/Homebrew/rubocops/dependency_order.rb | 2 +- Library/Homebrew/rubocops/homepage.rb | 2 +- Library/Homebrew/rubocops/lines.rb | 2 +- Library/Homebrew/rubocops/options.rb | 4 ++-- Library/Homebrew/rubocops/shell_commands.rb | 2 +- Library/Homebrew/rubocops/uses_from_macos.rb | 2 +- Library/Homebrew/service.rb | 4 ++-- Library/Homebrew/software_spec.rb | 2 +- Library/Homebrew/sorbet/parlour/attr.rb | 4 ++-- Library/Homebrew/test/cask/cmd/install_spec.rb | 2 +- Library/Homebrew/test/cask/depends_on_spec.rb | 2 +- Library/Homebrew/test/dev-cmd/audit_spec.rb | 16 ++++++++-------- .../cask/homepage_url_trailing_slash_spec.rb | 2 +- .../cask/url_legacy_comma_separators_spec.rb | 4 ++-- .../support/fixtures/cask/Casks/with-zap.rb | 6 +++--- Library/Homebrew/test/utils/pypi_spec.rb | 4 ++-- Library/Homebrew/utils/analytics.rb | 6 +++--- Library/Homebrew/utils/pypi.rb | 2 +- 57 files changed, 139 insertions(+), 139 deletions(-) diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index dbdde224cd..79d41232f3 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -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 . "\ + description: "Remove all cache files older than specified . " \ "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." diff --git a/Library/Homebrew/cmd/deps.rb b/Library/Homebrew/cmd/deps.rb index ac1fe93f38..e684091929 100644 --- a/Library/Homebrew/cmd/deps.rb +++ b/Library/Homebrew/cmd/deps.rb @@ -41,7 +41,7 @@ module Homebrew switch "--include-requirements", description: "Include requirements in addition to dependencies for ." 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 is "\ + description: "List dependencies for formulae that are currently installed. If 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 , 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 , one formula per line. This is used for " \ "debugging the `--installed`/`--all` display mode." switch "--formula", "--formulae", depends_on: "--installed", diff --git a/Library/Homebrew/cmd/desc.rb b/Library/Homebrew/cmd/desc.rb index 63c91777b9..d997619543 100644 --- a/Library/Homebrew/cmd/desc.rb +++ b/Library/Homebrew/cmd/desc.rb @@ -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 . If is flanked by "\ + description: "Search both names and descriptions for . If is flanked by " \ "slashes, it is interpreted as a regular expression." switch "-n", "--name", - description: "Search just names for . If is flanked by slashes, it is "\ + description: "Search just names for . If is flanked by slashes, it is " \ "interpreted as a regular expression." switch "-d", "--description", - description: "Search just descriptions for . If is flanked by slashes, "\ + description: "Search just descriptions for . If is flanked by slashes, " \ "it is interpreted as a regular expression." switch "--formula", "--formulae", description: "Treat all named arguments as formulae." diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index fc7907a3fe..cb35eb83ae 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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." diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index 8c175f14c5..8fe94debab 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -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 ." @@ -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).", diff --git a/Library/Homebrew/cmd/gist-logs.rb b/Library/Homebrew/cmd/gist-logs.rb index 34bccebc50..81a76f7036 100644 --- a/Library/Homebrew/cmd/gist-logs.rb +++ b/Library/Homebrew/cmd/gist-logs.rb @@ -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 diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index a9e489bc4f..0fe8851a56 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -31,25 +31,25 @@ module Homebrew If a or 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 (provided neither `HOMEBREW_NO_ANALYTICS` "\ + description: "List global Homebrew analytics data or, if specified, installation and " \ + "build error data for (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 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 must be `install`, `install-on-request` or `build-error`; "\ - "`cask-install` or `os-version` may be specified if is not. "\ + description: "Which type of analytics data to retrieve. " \ + "The value for must be `install`, `install-on-request` or `build-error`; " \ + "`cask-install` or `os-version` may be specified if is not. " \ "The default is `install`." switch "--github", - description: "Open the GitHub source page for and in a browser. "\ + description: "Open the GitHub source page for and in a browser. " \ "To view the history locally: `brew log -p` or " flag "--json", - description: "Print a JSON representation. Currently the default value for is `v1` for "\ - ". For and use `v2`. See the docs for examples of using the "\ + description: "Print a JSON representation. Currently the default value for is `v1` for " \ + ". For and use `v2`. See the docs for examples of using the " \ "JSON output: " switch "--bottle", depends_on: "--json", diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 199d04185a..cff794979e 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -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." diff --git a/Library/Homebrew/cmd/link.rb b/Library/Homebrew/cmd/link.rb index 78cfa92f55..d52f4c5f3a 100644 --- a/Library/Homebrew/cmd/link.rb +++ b/Library/Homebrew/cmd/link.rb @@ -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." diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 91519163eb..e8e152b4c3 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -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 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 are provided. See also `pin`, `unpin`." # passed through to ls switch "-1", diff --git a/Library/Homebrew/cmd/migrate.rb b/Library/Homebrew/cmd/migrate.rb index 5ed383159a..68cae13b40 100644 --- a/Library/Homebrew/cmd/migrate.rb +++ b/Library/Homebrew/cmd/migrate.rb @@ -17,7 +17,7 @@ module Homebrew packages. EOS switch "-f", "--force", - description: "Treat installed and provided as if they are from "\ + description: "Treat installed and provided 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." diff --git a/Library/Homebrew/cmd/missing.rb b/Library/Homebrew/cmd/missing.rb index cd02c0626c..d4784c683d 100644 --- a/Library/Homebrew/cmd/missing.rb +++ b/Library/Homebrew/cmd/missing.rb @@ -20,7 +20,7 @@ module Homebrew to be missing dependencies. EOS comma_array "--hide", - description: "Act as if none of the specified are installed. should be "\ + description: "Act as if none of the specified are installed. should be " \ "a comma-separated list of formulae." named_args :formula diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb index ecf4930d89..256459c2d1 100644 --- a/Library/Homebrew/cmd/outdated.rb +++ b/Library/Homebrew/cmd/outdated.rb @@ -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`." diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index a43cdfc314..603735b340 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -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 and casks with "\ + description: "Search for formulae with a description matching and casks with " \ "a name or description matching ." switch "--pull-request", description: "Search for GitHub pull requests containing ." diff --git a/Library/Homebrew/cmd/tap-info.rb b/Library/Homebrew/cmd/tap-info.rb index 906da875b7..d97b6168d0 100644 --- a/Library/Homebrew/cmd/tap-info.rb +++ b/Library/Homebrew/cmd/tap-info.rb @@ -19,8 +19,8 @@ module Homebrew switch "--installed", description: "Show information on each installed tap." flag "--json", - description: "Print a JSON representation of . Currently the default and only accepted "\ - "value for is `v1`. See the docs for examples of using the JSON "\ + description: "Print a JSON representation of . Currently the default and only accepted " \ + "value for is `v1`. See the docs for examples of using the JSON " \ "output: " named_args :tap diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index e21cf8cda8..019d70c8d3 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -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." diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index a459946007..8c40d4219d 100644 --- a/Library/Homebrew/cmd/uninstall.rb +++ b/Library/Homebrew/cmd/uninstall.rb @@ -28,7 +28,7 @@ module Homebrew description: "Remove all files associated with a . " \ "*May remove files which are shared between applications.*" switch "--ignore-dependencies", - description: "Don't fail uninstall, even if is a dependency of any installed "\ + description: "Don't fail uninstall, even if is a dependency of any installed " \ "formulae." switch "--formula", "--formulae", description: "Treat all named arguments as formulae." diff --git a/Library/Homebrew/cmd/unlink.rb b/Library/Homebrew/cmd/unlink.rb index 173e0d66fe..605adfbf22 100644 --- a/Library/Homebrew/cmd/unlink.rb +++ b/Library/Homebrew/cmd/unlink.rb @@ -19,7 +19,7 @@ module Homebrew `brew unlink` `&&` `&& brew link` 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 diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb index ab9754afeb..500185a59f 100644 --- a/Library/Homebrew/cmd/update-report.rb +++ b/Library/Homebrew/cmd/update-report.rb @@ -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! diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index c9d7c007c8..ec7520a7c3 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -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 from source even if a bottle is available.", }], [:switch, "-i", "--interactive", { - description: "Download and patch , then open a shell. This allows the user to "\ - "run `./configure --help` and otherwise determine how to turn the software "\ + description: "Download and patch , 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", { diff --git a/Library/Homebrew/deprecate_disable.rb b/Library/Homebrew/deprecate_disable.rb index bcdb501a11..2b31d467a7 100644 --- a/Library/Homebrew/deprecate_disable.rb +++ b/Library/Homebrew/deprecate_disable.rb @@ -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", diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index c0b791056d..ac25e2066b 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -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,26 +59,26 @@ 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 list to only run the methods named "\ + description: "Specify a comma-separated list to only run the methods named " \ "`audit_`." comma_array "--except", - description: "Specify a comma-separated list to skip running the methods named "\ + description: "Specify a comma-separated list to skip running the methods named " \ "`audit_`." comma_array "--only-cops", - description: "Specify a comma-separated list to check for violations of only the listed "\ + description: "Specify a comma-separated list to check for violations of only the listed " \ "RuboCop cops." comma_array "--except-cops", - description: "Specify a comma-separated list to skip checking for violations of the listed "\ + description: "Specify a comma-separated list to skip checking for violations of the listed " \ "RuboCop cops." switch "--formula", "--formulae", description: "Treat all named arguments as formulae." diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index c5b581e2d9..c5f120b519 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -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 "\ + 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` ." 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 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" diff --git a/Library/Homebrew/dev-cmd/bump-cask-pr.rb b/Library/Homebrew/dev-cmd/bump-cask-pr.rb index e1d4e304b5..d6b1586e0b 100644 --- a/Library/Homebrew/dev-cmd/bump-cask-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-cask-pr.rb @@ -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." diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index a731b83be1..2f5f4ed038 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -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 as a mirror URL. If is a comma-separated list "\ + description: "Use the specified as a mirror URL. If 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 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 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 to the default pull request message." flag "--url=", - description: "Specify the for the new download. If a is specified, the "\ + description: "Specify the for the new download. If a is specified, the " \ "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 for the formula." flag "--revision=", - description: "Specify the new commit corresponding to the specified git "\ + description: "Specify the new commit corresponding to the specified git " \ "or specified ." switch "-f", "--force", description: "Ignore duplicate open PRs. Remove all mirrors if `--mirror` was not specified." flag "--python-package-name=", - description: "Use the specified when finding Python resources for . "\ + description: "Use the specified when finding Python resources for . " \ "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." diff --git a/Library/Homebrew/dev-cmd/create.rb b/Library/Homebrew/dev-cmd/create.rb index 5fb2599601..cc96680ab6 100644 --- a/Library/Homebrew/dev-cmd/create.rb +++ b/Library/Homebrew/dev-cmd/create.rb @@ -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 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 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 points to the package's repository rather than a file." diff --git a/Library/Homebrew/dev-cmd/generate-man-completions.rb b/Library/Homebrew/dev-cmd/generate-man-completions.rb index f284eca1cc..e9c1f628b6 100644 --- a/Library/Homebrew/dev-cmd/generate-man-completions.rb +++ b/Library/Homebrew/dev-cmd/generate-man-completions.rb @@ -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 diff --git a/Library/Homebrew/dev-cmd/linkage.rb b/Library/Homebrew/dev-cmd/linkage.rb index cca677c3be..fcd3d0e7ce 100644 --- a/Library/Homebrew/dev-cmd/linkage.rb +++ b/Library/Homebrew/dev-cmd/linkage.rb @@ -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 diff --git a/Library/Homebrew/dev-cmd/pr-automerge.rb b/Library/Homebrew/dev-cmd/pr-automerge.rb index fc350fedfe..4014b9a656 100644 --- a/Library/Homebrew/dev-cmd/pr-automerge.rb +++ b/Library/Homebrew/dev-cmd/pr-automerge.rb @@ -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." diff --git a/Library/Homebrew/dev-cmd/pr-publish.rb b/Library/Homebrew/dev-cmd/pr-publish.rb index f011fe1a58..3e32ee7fef 100644 --- a/Library/Homebrew/dev-cmd/pr-publish.rb +++ b/Library/Homebrew/dev-cmd/pr-publish.rb @@ -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`)." diff --git a/Library/Homebrew/dev-cmd/pr-pull.rb b/Library/Homebrew/dev-cmd/pr-pull.rb index db4a098df9..1c7fd73ba9 100644 --- a/Library/Homebrew/dev-cmd/pr-pull.rb +++ b/Library/Homebrew/dev-cmd/pr-pull.rb @@ -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 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." diff --git a/Library/Homebrew/dev-cmd/pr-upload.rb b/Library/Homebrew/dev-cmd/pr-upload.rb index 57d1f71657..d1abdbc943 100644 --- a/Library/Homebrew/dev-cmd/pr-upload.rb +++ b/Library/Homebrew/dev-cmd/pr-upload.rb @@ -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 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" diff --git a/Library/Homebrew/dev-cmd/style.rb b/Library/Homebrew/dev-cmd/style.rb index ea782c7db1..4c4867ae68 100644 --- a/Library/Homebrew/dev-cmd/style.rb +++ b/Library/Homebrew/dev-cmd/style.rb @@ -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 list to check for violations of only the "\ + description: "Specify a comma-separated list to check for violations of only the " \ "listed RuboCop cops." comma_array "--except-cops", - description: "Specify a comma-separated list to skip checking for violations of the "\ + description: "Specify a comma-separated list to skip checking for violations of the " \ "listed RuboCop cops." conflicts "--formula", "--cask" diff --git a/Library/Homebrew/dev-cmd/tests.rb b/Library/Homebrew/dev-cmd/tests.rb index b54af9e64a..87a132ec70 100644 --- a/Library/Homebrew/dev-cmd/tests.rb +++ b/Library/Homebrew/dev-cmd/tests.rb @@ -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 `_spec.rb`. Appending `:` will start at a "\ + description: "Run only `_spec.rb`. Appending `:` will start at a " \ "specific line." flag "--seed=", description: "Randomise tests with the specified instead of a random seed." diff --git a/Library/Homebrew/dev-cmd/unpack.rb b/Library/Homebrew/dev-cmd/unpack.rb index 1cc12aa895..f92faf1325 100644 --- a/Library/Homebrew/dev-cmd/unpack.rb +++ b/Library/Homebrew/dev-cmd/unpack.rb @@ -22,7 +22,7 @@ module Homebrew switch "--patch", description: "Patches for 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." diff --git a/Library/Homebrew/dev-cmd/update-python-resources.rb b/Library/Homebrew/dev-cmd/update-python-resources.rb index 654061c263..8737b5a680 100644 --- a/Library/Homebrew/dev-cmd/update-python-resources.rb +++ b/Library/Homebrew/dev-cmd/update-python-resources.rb @@ -22,10 +22,10 @@ module Homebrew switch "--ignore-non-pypi-packages", description: "Don't fail if is not a PyPI package." flag "--version=", - description: "Use the specified when finding resources for . "\ + description: "Use the specified when finding resources for . " \ "If no version is specified, the current version for will be used." flag "--package-name=", - description: "Use the specified when finding resources for . "\ + description: "Use the specified when finding resources for . " \ "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." diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb index 5d97a1217a..6d6d7ad5f4 100644 --- a/Library/Homebrew/env_config.rb +++ b/Library/Homebrew/env_config.rb @@ -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, }, @@ -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: { diff --git a/Library/Homebrew/rubocops/components_order.rb b/Library/Homebrew/rubocops/components_order.rb index 7318bd6211..d8c5c7c147 100644 --- a/Library/Homebrew/rubocops/components_order.rb +++ b/Library/Homebrew/rubocops/components_order.rb @@ -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 diff --git a/Library/Homebrew/rubocops/conflicts.rb b/Library/Homebrew/rubocops/conflicts.rb index fab244784c..35bcf87096 100644 --- a/Library/Homebrew/rubocops/conflicts.rb +++ b/Library/Homebrew/rubocops/conflicts.rb @@ -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}\"") diff --git a/Library/Homebrew/rubocops/dependency_order.rb b/Library/Homebrew/rubocops/dependency_order.rb index 6d92839ca4..fc12fe4119 100644 --- a/Library/Homebrew/rubocops/dependency_order.rb +++ b/Library/Homebrew/rubocops/dependency_order.rb @@ -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" diff --git a/Library/Homebrew/rubocops/homepage.rb b/Library/Homebrew/rubocops/homepage.rb index 69a8d7a5a6..700060ed81 100644 --- a/Library/Homebrew/rubocops/homepage.rb +++ b/Library/Homebrew/rubocops/homepage.rb @@ -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`" diff --git a/Library/Homebrew/rubocops/lines.rb b/Library/Homebrew/rubocops/lines.rb index d712d2f27b..cbac0882a0 100644 --- a/Library/Homebrew/rubocops/lines.rb +++ b/Library/Homebrew/rubocops/lines.rb @@ -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 diff --git a/Library/Homebrew/rubocops/options.rb b/Library/Homebrew/rubocops/options.rb index eb7f5d25b8..da87356818 100644 --- a/Library/Homebrew/rubocops/options.rb +++ b/Library/Homebrew/rubocops/options.rb @@ -27,14 +27,14 @@ module RuboCop if option !~ /with(out)?-/ && option != "cxx11" && option != "universal" - problem "Options should begin with with/without."\ + 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}'."\ + problem "Use '--with#{Regexp.last_match(1)}-test' instead of '--#{option}'." \ " Migrate '--#{option}' with `deprecated_option`." end diff --git a/Library/Homebrew/rubocops/shell_commands.rb b/Library/Homebrew/rubocops/shell_commands.rb index 21975a5951..f1352365a6 100644 --- a/Library/Homebrew/rubocops/shell_commands.rb +++ b/Library/Homebrew/rubocops/shell_commands.rb @@ -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 diff --git a/Library/Homebrew/rubocops/uses_from_macos.rb b/Library/Homebrew/rubocops/uses_from_macos.rb index 70b4e3ac3d..d6b08f9098 100644 --- a/Library/Homebrew/rubocops/uses_from_macos.rb +++ b/Library/Homebrew/rubocops/uses_from_macos.rb @@ -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 diff --git a/Library/Homebrew/service.rb b/Library/Homebrew/service.rb index 6672959abf..6ba9919862 100644 --- a/Library/Homebrew/service.rb +++ b/Library/Homebrew/service.rb @@ -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" diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 35734f1aa5..2e01b28115 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -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 diff --git a/Library/Homebrew/sorbet/parlour/attr.rb b/Library/Homebrew/sorbet/parlour/attr.rb index 20be56b7c5..d3722c3b1b 100644 --- a/Library/Homebrew/sorbet/parlour/attr.rb +++ b/Library/Homebrew/sorbet/parlour/attr.rb @@ -98,8 +98,8 @@ class Attr < Parlour::Plugin 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") + 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 diff --git a/Library/Homebrew/test/cask/cmd/install_spec.rb b/Library/Homebrew/test/cask/cmd/install_spec.rb index 3c5303f668..2d9a866dbe 100644 --- a/Library/Homebrew/test/cask/cmd/install_spec.rb +++ b/Library/Homebrew/test/cask/cmd/install_spec.rb @@ -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 diff --git a/Library/Homebrew/test/cask/depends_on_spec.rb b/Library/Homebrew/test/cask/depends_on_spec.rb index 191df90dae..dc75b885f5 100644 --- a/Library/Homebrew/test/cask/depends_on_spec.rb +++ b/Library/Homebrew/test/cask/depends_on_spec.rb @@ -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", ) } diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index ecf0803ffd..4d401712c0 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -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 diff --git a/Library/Homebrew/test/rubocops/cask/homepage_url_trailing_slash_spec.rb b/Library/Homebrew/test/rubocops/cask/homepage_url_trailing_slash_spec.rb index c05f24844d..3469dc78bb 100644 --- a/Library/Homebrew/test/rubocops/cask/homepage_url_trailing_slash_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/homepage_url_trailing_slash_spec.rb @@ -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, diff --git a/Library/Homebrew/test/rubocops/cask/url_legacy_comma_separators_spec.rb b/Library/Homebrew/test/rubocops/cask/url_legacy_comma_separators_spec.rb index 9573f927a4..cd2ecee8e4 100644 --- a/Library/Homebrew/test/rubocops/cask/url_legacy_comma_separators_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/url_legacy_comma_separators_spec.rb @@ -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, diff --git a/Library/Homebrew/test/support/fixtures/cask/Casks/with-zap.rb b/Library/Homebrew/test/support/fixtures/cask/Casks/with-zap.rb index ab0bd7b2f8..9027e38bfa 100644 --- a/Library/Homebrew/test/support/fixtures/cask/Casks/with-zap.rb +++ b/Library/Homebrew/test/support/fixtures/cask/Casks/with-zap.rb @@ -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" diff --git a/Library/Homebrew/test/utils/pypi_spec.rb b/Library/Homebrew/test/utils/pypi_spec.rb index a6787c11b1..3b857e758c 100644 --- a/Library/Homebrew/test/utils/pypi_spec.rb +++ b/Library/Homebrew/test/utils/pypi_spec.rb @@ -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 diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index 5996793d2a..3e14608b11 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -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 diff --git a/Library/Homebrew/utils/pypi.rb b/Library/Homebrew/utils/pypi.rb index 879efe8902..1de0d1abaf 100644 --- a/Library/Homebrew/utils/pypi.rb +++ b/Library/Homebrew/utils/pypi.rb @@ -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