update manpage for brew audit --strict

This removes the single use of 'brew audit --warn' and
changes it to --strict as well.
This commit is contained in:
Adam Vandenberg 2011-03-21 13:06:16 -07:00
parent 716da2dfbd
commit 84fbdd795f
3 changed files with 7 additions and 9 deletions

View File

@ -164,11 +164,11 @@ didn't include with OS X.
If `--force` is passed, remove a previously cached version and re-fetch. If `--force` is passed, remove a previously cached version and re-fetch.
* `audit [--warn]`: * `audit [--strict]`:
Check formulae for Homebrew coding style violations. This should be Check formulae for Homebrew coding style violations. This should be
run before submitting a new formula for inclusion. run before submitting a new formula for inclusion.
If `--warn` is passed, perform additional stricter checks that may not need If `--strict` is passed, perform additional stricter checks that may not need
to be fixed before submitting. to be fixed before submitting.
* `options [--compact]` <formula>: * `options [--compact]` <formula>:

View File

@ -102,11 +102,9 @@ def audit_formula_text name, text
problems << " * Use separate make calls." problems << " * Use separate make calls."
end end
if ARGV.include? "--warn"
if text =~ /^\t/ if text =~ /^\t/
problems << " * Use spaces instead of tabs for indentation" problems << " * Use spaces instead of tabs for indentation"
end end if strict?
end
# Formula depends_on gfortran # Formula depends_on gfortran
if text =~ /\s*depends_on\s*(\'|\")gfortran(\'|\")\s*$/ if text =~ /\s*depends_on\s*(\'|\")gfortran(\'|\")\s*$/

View File

@ -181,11 +181,11 @@ If \fB\-\-HEAD\fR is passed, download the HEAD version of \fIformula\fR instead\
If \fB\-\-force\fR is passed, remove a previously cached version and re\-fetch\. If \fB\-\-force\fR is passed, remove a previously cached version and re\-fetch\.
. .
.TP .TP
\fBaudit [\-\-warn]\fR \fBaudit [\-\-strict]\fR
Check formulae for Homebrew coding style violations\. This should be run before submitting a new formula for inclusion\. Check formulae for Homebrew coding style violations\. This should be run before submitting a new formula for inclusion\.
. .
.IP .IP
If \fB\-\-warn\fR is passed, perform additional stricter checks that may not need to be fixed before submitting\. If \fB\-\-strict\fR is passed, perform additional stricter checks that may not need to be fixed before submitting\.
. .
.TP .TP
\fBoptions [\-\-compact]\fR \fIformula\fR \fBoptions [\-\-compact]\fR \fIformula\fR