diff options
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 20 | ||||
| -rw-r--r-- | Library/Homebrew/dev-cmd/bottle.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/dev-cmd/linkage.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/dev-cmd/man.rb | 2 | 
5 files changed, 18 insertions, 13 deletions
| diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 45de368e1..e3fb3a580 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1,4 +1,4 @@ -#:  * `audit` [`--strict`] [`--fix`] [`--online`] [`--new-formula`] [`--display-cop-names`] [`--display-filename`] [`--only=`<method>|`--except=`<method>] [`--only-cops=`[COP1,COP2..]|`--except-cops=`[COP1,COP2..]] [<formulae>]: +#:  * `audit` [`--strict`] [`--fix`] [`--online`] [`--new-formula`] [`--display-cop-names`] [`--display-filename`] [`--only=`<method>|`--except=`<method>] [`--only-cops=`<cops>|`--except-cops=`<cops>] [<formulae>]:  #:    Check <formulae> for Homebrew coding style violations. This should be  #:    run before submitting a new formula.  #: @@ -8,7 +8,7 @@  #:    style checks.  #:  #:    If `--fix` is passed, style violations will be -#:    automatically fixed using RuboCop's `--auto-correct` feature. +#:    automatically fixed using RuboCop's auto-correct feature.  #:  #:    If `--online` is passed, additional slower checks that require a network  #:    connection are run. @@ -23,19 +23,19 @@  #:    If `--display-filename` is passed, every line of output is prefixed with the  #:    name of the file or formula being audited, to make the output easy to grep.  #: -#:    If `--only` is passed, only the methods named `audit_<method>` will be run. +#:    Passing `--only=`<method> will run only the methods named `audit_<method>`, +#:    while `--except=`<method> will skip the methods named `audit_<method>`. +#:    For either option <method> should be a comma-separated list.  #: -#:    If `--except` is passed, the methods named `audit_<method>` will not be run. -#: -#:    If `--only-cops` is passed, only the given Rubocop cop(s)' violations would be checked. -#: -#:    If `--except-cops` is passed, the given Rubocop cop(s)' checks would be skipped. +#:    Passing `--only-cops=`<cops> will check for violations of only the listed +#:    RuboCop <cops>, while `--except-cops=`<cops> will skip checking the listed +#:    <cops>. For either option <cops> should be a comma-separated list of cop names.  #:  #:    `audit` exits with a non-zero status if any errors are found. This is useful,  #:    for instance, for implementing pre-commit hooks.  # Undocumented options: -#     -D activates debugging and profiling of the audit methods (not the same as --debug) +#     `-D` activates debugging and profiling of the audit methods (not the same as `--debug`)  require "formula"  require "formula_versions" @@ -189,8 +189,6 @@ class FormulaAuditor      swig    ].freeze -  FILEUTILS_METHODS = FileUtils.singleton_methods(false).map { |m| Regexp.escape(m) }.join "|" -    def initialize(formula, options = {})      @formula = formula      @new_formula = options[:new_formula] diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 204e7cef9..a233dfb57 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -25,6 +25,10 @@  #:    If `--write` is passed, write the changes to the formula file. A new  #:    commit will then be generated unless `--no-commit` is passed. +# Undocumented options: +#     `--json` writes bottle information to a JSON file, which can be used as +#     the argument for `--merge`. +  require "formula"  require "utils/bottles"  require "tab" diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 7da0f9321..1f44fa549 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -33,6 +33,9 @@  #:    which opens the pull request URL in a browser. Instead, output it to the  #:    command line.  #: +#:    If `--quiet` is passed, don't output replacement messages or warn about +#:    duplicate pull requests. +#:  #:    Note that this command cannot be used to transition a formula from a  #:    URL-and-sha256 style specification into a tag-and-revision style  #:    specification, nor vice versa. It must use whichever style specification diff --git a/Library/Homebrew/dev-cmd/linkage.rb b/Library/Homebrew/dev-cmd/linkage.rb index e4da827f2..31e9bd103 100644 --- a/Library/Homebrew/dev-cmd/linkage.rb +++ b/Library/Homebrew/dev-cmd/linkage.rb @@ -1,4 +1,4 @@ -#:  * `linkage` [`--test`] [`--reverse`]  <formula>: +#:  * `linkage` [`--test`] [`--reverse`] <formula>:  #:    Checks the library links of an installed formula.  #:  #:    Only works on installed formulae. An error is raised if it is run on diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb index 3fbdd2601..f06c89863 100644 --- a/Library/Homebrew/dev-cmd/man.rb +++ b/Library/Homebrew/dev-cmd/man.rb @@ -108,7 +108,7 @@ module Homebrew        ronn.write markup        ronn.close_write        ronn_output = ronn.read -      ronn_output.gsub!(%r{</?var>}, "`") if format_flag == "--markdown" +      ronn_output.gsub!(%r{</var>`(?=[.!?,;:]?\s)}, "").gsub!(%r{</?var>}, "`") if format_flag == "--markdown"        target.atomic_write ronn_output      end    end | 
