aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Manpage.md
diff options
context:
space:
mode:
authorMike McQuaid2017-04-18 09:18:55 +0100
committerGitHub2017-04-18 09:18:55 +0100
commit55c02ae7747bf05eadec95c91497d06ec3dd2ded (patch)
tree05ca665c3fce69e0e69058f9cb919dc3d42d6192 /docs/Manpage.md
parent20ad7f9cf6e69196b224f95e9fce4b8af8a6d284 (diff)
parent3f8722c971cedf8b2c66d918fc4dd608bf439009 (diff)
downloadbrew-55c02ae7747bf05eadec95c91497d06ec3dd2ded.tar.bz2
Merge pull request #2478 from MikeMcQuaid/audit-skip-methods
audit: allow skipping audit methods.
Diffstat (limited to 'docs/Manpage.md')
-rw-r--r--docs/Manpage.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/Manpage.md b/docs/Manpage.md
index b861a73ae..b23623e65 100644
--- a/docs/Manpage.md
+++ b/docs/Manpage.md
@@ -606,7 +606,7 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
## DEVELOPER COMMANDS
- * `audit` [`--strict`] [`--fix`] [`--online`] [`--new-formula`] [`--display-cop-names`] [`--display-filename`] [`formulae`]:
+ * `audit` [`--strict`] [`--fix`] [`--online`] [`--new-formula`] [`--display-cop-names`] [`--display-filename`] [`--only=``method`|`--except=``method] [<formulae`]:
Check `formulae` for Homebrew coding style violations. This should be
run before submitting a new formula.
@@ -631,6 +631,10 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
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.
+
+ If `--except` is passed, the methods named `audit_`method`` will not be run.
+
`audit` exits with a non-zero status if any errors are found. This is useful,
for instance, for implementing pre-commit hooks.