diff options
| author | Adam Vandenberg | 2012-08-25 09:36:01 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-25 09:37:41 -0700 |
| commit | 9e8bf8413d5ccba8e04bc53879e577ea23ec0395 (patch) | |
| tree | f61755c51479f579c370a1fe4720e14550fa394e /Library/Homebrew/cmd | |
| parent | e87341169454d4ae3b74809e680071126b8bcc30 (diff) | |
| download | brew-9e8bf8413d5ccba8e04bc53879e577ea23ec0395.tar.bz2 | |
audit checks for passing dashes to build.include?
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 5446a924d..aeb59e7eb 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -368,6 +368,10 @@ class FormulaAuditor problem "Use 'build.head?' instead of inspecting 'version'" end + if text =~ /build\.include\?\s+['"]\-\-(.*)['"]/ + problem "Reference '#{$1}' without dashes." + end + if text =~ /ARGV\.(?!(debug|verbose)\?)/ problem "Use build instead of ARGV to check options." end |
