diff options
| author | Mike McQuaid | 2014-12-27 12:38:58 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-27 12:38:58 +0000 |
| commit | c56865734f0bafbfe859f920e5c39e23dae9ca50 (patch) | |
| tree | dbe85156bac3047aa69f13601549e55962549818 /Library/Homebrew/cmd | |
| parent | 1c512ddb7ebab9007c4928dfef9ed48d107ffbab (diff) | |
| download | homebrew-c56865734f0bafbfe859f920e5c39e23dae9ca50.tar.bz2 | |
audit: check options when in strict mode.
Diffstat (limited to 'Library/Homebrew/cmd')
| -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) } |
