aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorGautham Goli2017-07-30 12:57:57 +0530
committerGautham Goli2017-07-30 12:59:37 +0530
commitc575f34d5fe802962bfb2749a00053ad3561da55 (patch)
treea92805f4a9ddf1496eef92d15e33b9987ba85fc4 /Library/Homebrew/dev-cmd
parent627b1dae707b4b5ea5e299ff12dd8ac1abbfa056 (diff)
downloadbrew-c575f34d5fe802962bfb2749a00053ad3561da55.tar.bz2
audit: Port audit_urls strict rules to rubocop, add tests and autocorrect
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index b6f9e5106..c707dfa0f 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -1288,14 +1288,6 @@ class ResourceAuditor
problem "should always include at least one HTTP url"
end
- # Check pypi urls
- if @strict
- urls.each do |p|
- next unless p =~ %r{^https?://pypi.python.org/(.*)}
- problem "#{p} should be `https://files.pythonhosted.org/#{Regexp.last_match(1)}`"
- end
- end
-
return unless @online
urls.each do |url|
next if !@strict && mirrors.include?(url)