diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 4a09a69c1..6743f2a46 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -1269,6 +1269,12 @@ class ResourceAuditor #{u} EOS end + + # Check for Maven Central urls, prefer HTTPS redirector over specific host + urls.each do |u| + next unless u =~ %r{https?://(?:central|repo\d+)\.maven\.org/maven2/(.+)$} + problem "#{u} should be `https://search.maven.org/remotecontent?filepath=#{$1}`" + end end def problem(text) |
