diff options
| author | Adam Vandenberg | 2011-03-21 13:06:16 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-21 13:07:14 -0700 |
| commit | 84fbdd795fe146abbe560fa669c451f762bd779c (patch) | |
| tree | ea566b3c2d4354d6a3f16bcdf341f2bfb20f408a | |
| parent | 716da2dfbd46b65a8299c9ece783ec423a462d3e (diff) | |
| download | brew-84fbdd795fe146abbe560fa669c451f762bd779c.tar.bz2 | |
update manpage for brew audit --strict
This removes the single use of 'brew audit --warn' and
changes it to --strict as well.
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 4 | ||||
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 8 | ||||
| -rw-r--r-- | share/man/man1/brew.1 | 4 |
3 files changed, 7 insertions, 9 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index a26805706..c60862782 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -164,11 +164,11 @@ didn't include with OS X. 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 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. * `options [--compact]` <formula>: diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 559543adf..576a9c780 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -102,11 +102,9 @@ def audit_formula_text name, text problems << " * Use separate make calls." end - if ARGV.include? "--warn" - if text =~ /^\t/ - problems << " * Use spaces instead of tabs for indentation" - end - end + if text =~ /^\t/ + problems << " * Use spaces instead of tabs for indentation" + end if strict? # Formula depends_on gfortran if text =~ /\s*depends_on\s*(\'|\")gfortran(\'|\")\s*$/ diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index 0827baa18..78a0448f1 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -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\. . .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\. . .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 \fBoptions [\-\-compact]\fR \fIformula\fR |
