Merge pull request #17938 from khipp/update-url-audit

This commit is contained in:
Mike McQuaid 2024-08-02 19:30:18 +01:00 committed by GitHub
commit 471c9f36c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,7 +241,6 @@ module RuboCop
audit_urls(urls, zip_gh_pattern) do |_, url| audit_urls(urls, zip_gh_pattern) do |_, url|
next if url.match? %r{raw.githubusercontent.com/.*/.*/(main|master|HEAD)/} next if url.match? %r{raw.githubusercontent.com/.*/.*/(main|master|HEAD)/}
next if url.include?("releases/download") next if url.include?("releases/download")
next if url.include?("desktop.githubusercontent.com/github-desktop/releases/")
next if url.include?("desktop.githubusercontent.com/releases/") next if url.include?("desktop.githubusercontent.com/releases/")
problem "Use GitHub tarballs rather than zipballs (url is #{url})." problem "Use GitHub tarballs rather than zipballs (url is #{url})."