diff options
| author | Mike McQuaid | 2014-12-27 12:38:58 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-27 12:38:58 +0000 |
| commit | fca32ee7ccb0804473989e36475f3bf838b3867e (patch) | |
| tree | d5475de3513015c7aaf139603a5d9e577cafd464 /Library/Homebrew | |
| parent | 24f183dd12064b9dfd729fda58dee0938fa078f6 (diff) | |
| download | brew-fca32ee7ccb0804473989e36475f3bf838b3867e.tar.bz2 | |
audit: check options when in strict mode.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 07acb76e8..f8db07c94 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -168,6 +168,15 @@ class FormulaAuditor end end + def audit_options + formula.options.each do |o| + next unless @strict + if o.name !~ /with(out)?-/ && o.name != "c++11" && o.name != "universal" + problem "Options should begin with with/without. Migrate '--#{o.name}' with `deprecated_option`." + end + end + end + def audit_urls homepage = formula.homepage @@ -553,6 +562,7 @@ class FormulaAuditor audit_urls audit_deps audit_conflicts + audit_options audit_patches audit_text text.without_patch.split("\n").each_with_index { |line, lineno| audit_line(line, lineno+1) } |
