Skip to content

Commit b42f4b2

Browse files
committed
Add rubocop exception
Signed-off-by: Rony Xavier <[email protected]>
1 parent 1d1fa9b commit b42f4b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/heimdall_tools/sonarqube_mapper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ class Control
158158
# OWASP is stated specifically, ex owasp-a1
159159
#
160160
# SonarQube is inconsistent with tags (ex some cwe rules don't have cwe number in desc,) as noted below
161+
162+
# rubocop:disable Style/MutableConstant
161163
TAG_DATA = {} # NOTE: We count on Ruby to preserve order for TAG_DATA
164+
# rubocop:enable Style/MutableConstant
165+
162166
TAG_DATA[:cwe] = {
163167
# Some rules with cwe tag don't have cwe number in description!
164168
# Currently only squid:S2658, but it has OWASP tag so we can use that.

0 commit comments

Comments
 (0)