mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Whitelist or fix additional Gitlab/PublicSend
cop violations
An upcoming update to rubocop-gitlab-security added additional violations.
This commit is contained in:
@ -5,7 +5,7 @@ module ImportHelper
|
||||
end
|
||||
|
||||
def provider_project_link(provider, path_with_namespace)
|
||||
url = __send__("#{provider}_project_url", path_with_namespace)
|
||||
url = __send__("#{provider}_project_url", path_with_namespace) # rubocop:disable GitlabSecurity/PublicSend
|
||||
|
||||
link_to path_with_namespace, url, target: '_blank', rel: 'noopener noreferrer'
|
||||
end
|
||||
|
Reference in New Issue
Block a user