Merge pull request #17937 from khipp/fix-url-audit

rubocops/shared/url_helper: fix url audit
This commit is contained in:
Issy Long 2024-08-02 17:01:06 +01:00 committed by GitHub
commit 870b3423bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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