Whitelist or fix additional Gitlab/PublicSend cop violations

An upcoming update to rubocop-gitlab-security added additional
violations.
This commit is contained in:
Robert Speicher
2017-08-10 12:39:26 -04:00
parent a64760d6d0
commit 260c8da060
61 changed files with 128 additions and 88 deletions

View File

@ -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