diff options
| author | Mike McQuaid | 2017-08-01 11:39:01 +0100 |
|---|---|---|
| committer | GitHub | 2017-08-01 11:39:01 +0100 |
| commit | f4983ab16b01776f57cc8665df1bc3421c0c4683 (patch) | |
| tree | 38ec5e272d3b9dc2d32b7ab4d73438b719c759b0 /Library/Homebrew/dev-cmd/audit.rb | |
| parent | 43d68b6dda55c89a2f8cced5f874e866df7981c3 (diff) | |
| parent | c575f34d5fe802962bfb2749a00053ad3561da55 (diff) | |
| download | brew-f4983ab16b01776f57cc8665df1bc3421c0c4683.tar.bz2 | |
Merge pull request #2975 from GauthamGoli/audit_urls_rubocop_strict
audit: Port audit_urls strict rules to rubocop, add tests, autocorrect
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 6d869a077..7b5befaa0 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1278,14 +1278,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) |
