diff options
| author | JCount | 2017-07-14 23:26:33 -0400 |
|---|---|---|
| committer | GitHub | 2017-07-14 23:26:33 -0400 |
| commit | 83f61830f6346e2a08358a4ca5381b5ffac4fc6e (patch) | |
| tree | d5d770b1fba59ae654012fca67fd318a3b0c93ca /Library/Homebrew/dev-cmd/audit.rb | |
| parent | 20db5470e3325d3a64e16c785c22c25581e03b52 (diff) | |
| parent | f3923f23efd8632e6cbf68e510843b3d44cdfa3d (diff) | |
| download | brew-83f61830f6346e2a08358a4ca5381b5ffac4fc6e.tar.bz2 | |
Merge pull request #2901 from GauthamGoli/audit_option_rubocop_2
audit: Port audit_options strict rules to rubocop and add tests
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 6a7292ea7..e144fc35c 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -554,23 +554,6 @@ class FormulaAuditor end def audit_options - formula.options.each do |o| - next unless @strict - - if o.name == "universal" - problem "macOS has been 64-bit only since 10.6 so universal options are deprecated." - end - - 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 - - next unless o.name =~ /^with(out)?-(?:checks?|tests)$/ - unless formula.deps.any? { |d| d.name == "check" && (d.optional? || d.recommended?) } - problem "Use '--with#{Regexp.last_match(1)}-test' instead of '--#{o.name}'. Migrate '--#{o.name}' with `deprecated_option`." - end - end - return unless @new_formula return if formula.deprecated_options.empty? return if formula.versioned_formula? |
