Skip to content

GitlabSecurity/PublicSend didn't detect `&.public_send`

This was discovered from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6376 where rubocop -a would try to remove the comment which disables this cop.

enabled_globally = PushRule.global&.public_send(rule)

We need a test case against this.