diff options
| author | Gautham Goli | 2017-05-25 22:21:23 +0530 |
|---|---|---|
| committer | Gautham Goli | 2017-06-24 17:06:26 +0530 |
| commit | 2e8275477674c85b0bed5a7cd2f17b9acad6bd5a (patch) | |
| tree | efb7f747b3643d55f9608bf6ef64174c3c361ca4 /Library/Homebrew/dev-cmd | |
| parent | 3fe32053a7f0d7f817a90e308ab0c62436a5c208 (diff) | |
| download | brew-2e8275477674c85b0bed5a7cd2f17b9acad6bd5a.tar.bz2 | |
audit: Port audit_legacy_patches method to rubocop and add tests
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 0d9a630fd..e42eafd92 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -817,16 +817,6 @@ class FormulaAuditor end end - def audit_legacy_patches - return unless formula.respond_to?(:patches) - legacy_patches = Patch.normalize_legacy_patches(formula.patches).grep(LegacyPatch) - - return if legacy_patches.empty? - - problem "Use the patch DSL instead of defining a 'patches' method" - legacy_patches.each { |p| patch_problems(p) } - end - def patch_problems(patch) case patch.url when /raw\.github\.com/, %r{gist\.github\.com/raw}, %r{gist\.github\.com/.+/raw}, |
