aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/manpages/brew.1.md4
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb8
2 files changed, 5 insertions, 7 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*$/