diff options
| author | Mike McQuaid | 2017-06-25 08:54:59 +0100 |
|---|---|---|
| committer | GitHub | 2017-06-25 08:54:59 +0100 |
| commit | f4cdd7a051d2cc276729e8a670a9d3870611018b (patch) | |
| tree | 692c6a0f929ab5b8bff21787fb7ba9a8a11af535 /Library/Homebrew/dev-cmd | |
| parent | 73d81bb96d550271b3e2e8e62c3c15b99160c15c (diff) | |
| parent | 2e8275477674c85b0bed5a7cd2f17b9acad6bd5a (diff) | |
| download | brew-f4cdd7a051d2cc276729e8a670a9d3870611018b.tar.bz2 | |
Merge pull request #2790 from GauthamGoli/audit_legacy_patches_rubocop
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 e84225cfc..1c7476c4b 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}, |
