Commit e037d6f1 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Skip rubocop rule

We call public_send on an array of values defined inside of the class
So it's safe to do
parent 72c4790e
...@@ -22,7 +22,7 @@ class ProjectSecuritySetting < ApplicationRecord ...@@ -22,7 +22,7 @@ class ProjectSecuritySetting < ApplicationRecord
def auto_fix_enabled_types def auto_fix_enabled_types
AVAILABLE_AUTO_FIX_TYPES.filter_map do |type| AVAILABLE_AUTO_FIX_TYPES.filter_map do |type|
type if public_send("auto_fix_#{type}") type if public_send("auto_fix_#{type}") # rubocop:disable GitlabSecurity/PublicSend
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment