Manual brew style fixes.
This commit is contained in:
parent
2d5eab2e1c
commit
22d6af1258
@ -78,8 +78,8 @@ module Homebrew
|
|||||||
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."
|
"RuboCop cops."
|
||||||
comma_array "--except-cops",
|
comma_array "--except-cops",
|
||||||
description: "Specify a comma-separated <cops> list to skip checking for violations of the listed " \
|
description: "Specify a comma-separated <cops> list to skip checking for violations of the " \
|
||||||
"RuboCop cops."
|
"listed RuboCop cops."
|
||||||
switch "--formula", "--formulae",
|
switch "--formula", "--formulae",
|
||||||
description: "Treat all named arguments as formulae."
|
description: "Treat all named arguments as formulae."
|
||||||
switch "--cask", "--casks",
|
switch "--cask", "--casks",
|
||||||
|
@ -65,8 +65,8 @@ module Homebrew
|
|||||||
"`--merge`."
|
"`--merge`."
|
||||||
switch "--merge",
|
switch "--merge",
|
||||||
description: "Generate an updated bottle block for a formula and optionally merge it into the " \
|
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 " \
|
"formula file. Instead of a formula name, requires the path to a JSON file generated " \
|
||||||
"`brew bottle --json` <formula>."
|
"with `brew bottle --json` <formula>."
|
||||||
switch "--write",
|
switch "--write",
|
||||||
depends_on: "--merge",
|
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 " \
|
||||||
|
@ -82,8 +82,8 @@ module Homebrew
|
|||||||
description: "Append these options to all `cask` commands. All `--*dir` options, " \
|
description: "Append these options to all `cask` commands. All `--*dir` options, " \
|
||||||
"`--language`, `--require-sha`, `--no-quarantine` and `--no-binaries` are supported. " \
|
"`--language`, `--require-sha`, `--no-quarantine` and `--no-binaries` are supported. " \
|
||||||
"For example, you might add something like the following to your " \
|
"For example, you might add something like the following to your " \
|
||||||
"`~/.profile`, `~/.bash_profile`, or `~/.zshenv`:\n\n" \
|
"`~/.profile`, `~/.bash_profile`, or `~/.zshenv`:" \
|
||||||
' `export HOMEBREW_CASK_OPTS="--appdir=~/Applications --fontdir=/Library/Fonts"`',
|
'\n\n `export HOMEBREW_CASK_OPTS="--appdir=~/Applications --fontdir=/Library/Fonts"`',
|
||||||
},
|
},
|
||||||
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: {
|
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: {
|
||||||
description: "If set, `brew install`, `brew upgrade` and `brew reinstall` will cleanup all formulae " \
|
description: "If set, `brew install`, `brew upgrade` and `brew reinstall` will cleanup all formulae " \
|
||||||
|
@ -97,9 +97,12 @@ class Attr < Parlour::Plugin
|
|||||||
when :attr_rw
|
when :attr_rw
|
||||||
name = node.shift
|
name = node.shift
|
||||||
name = "self.#{name}" if sclass
|
name = "self.#{name}" if sclass
|
||||||
namespace.create_method(name, parameters: [
|
namespace.create_method(name,
|
||||||
Parlour::RbiGenerator::Parameter.new("arg", type: "T.untyped", default: "T.unsafe(nil)"),
|
parameters: [
|
||||||
], return_type: "T.untyped")
|
Parlour::RbiGenerator::Parameter.new("arg", type: "T.untyped",
|
||||||
|
default: "T.unsafe(nil)"),
|
||||||
|
],
|
||||||
|
return_type: "T.untyped")
|
||||||
when :attr_predicate
|
when :attr_predicate
|
||||||
name = node.shift
|
name = node.shift
|
||||||
name = "self.#{name}" if sclass
|
name = "self.#{name}" if sclass
|
||||||
|
@ -109,8 +109,8 @@ describe RuboCop::Cop::Cask::StanzaOrder do
|
|||||||
severity: :convention,
|
severity: :convention,
|
||||||
line: 3,
|
line: 3,
|
||||||
column: 2,
|
column: 2,
|
||||||
source: "uninstall :quit => 'com.example.foo',\n" \
|
source: "uninstall :quit => 'com.example.foo'," \
|
||||||
" :kext => 'com.example.foo.kext'",
|
"\n :kext => 'com.example.foo.kext'",
|
||||||
}, {
|
}, {
|
||||||
message: "`version` stanza out of order",
|
message: "`version` stanza out of order",
|
||||||
severity: :convention,
|
severity: :convention,
|
||||||
|
@ -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`.
|
*Default:* macOS: `$HOME/Library/Caches/Homebrew`, Linux: `$XDG_CACHE_HOME/Homebrew` or `$HOME/.cache/Homebrew`.
|
||||||
|
|
||||||
- `HOMEBREW_CASK_OPTS`
|
- `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`:
|
<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"`
|
||||||
|
|
||||||
`export HOMEBREW_CASK_OPTS="--appdir=~/Applications --fontdir=/Library/Fonts"`
|
|
||||||
|
|
||||||
- `HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS`
|
- `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.
|
<br>If set, `brew install`, `brew upgrade` and `brew reinstall` will cleanup all formulae when this number of days has passed.
|
||||||
|
@ -2826,10 +2826,7 @@ Use this directory as the download cache\.
|
|||||||
\fBHOMEBREW_CASK_OPTS\fR
|
\fBHOMEBREW_CASK_OPTS\fR
|
||||||
.
|
.
|
||||||
.br
|
.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:
|
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
|
||||||
.
|
|
||||||
.IP
|
|
||||||
\fBexport HOMEBREW_CASK_OPTS="\-\-appdir=~/Applications \-\-fontdir=/Library/Fonts"\fR
|
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBHOMEBREW_CLEANUP_PERIODIC_FULL_DAYS\fR
|
\fBHOMEBREW_CLEANUP_PERIODIC_FULL_DAYS\fR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user