From 824b2311832e80a8e53fa35bc9c94a51762eb177 Mon Sep 17 00:00:00 2001 From: Rony Xavier Date: Tue, 29 Jun 2021 16:38:16 -0400 Subject: [PATCH] Add rubocop exception Signed-off-by: Rony Xavier --- lib/heimdall_tools/fortify_mapper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/heimdall_tools/fortify_mapper.rb b/lib/heimdall_tools/fortify_mapper.rb index 465e1d9..df89fab 100644 --- a/lib/heimdall_tools/fortify_mapper.rb +++ b/lib/heimdall_tools/fortify_mapper.rb @@ -55,6 +55,7 @@ def primaries(classid) findings.uniq end + # rubocop:disable Layout/LineEndStringConcatenationIndentation def snippet(snippetid) snippet = @snippets.select { |x| x['id'].eql?(snippetid) }.first "\nPath: #{snippet['File']}\n" \ @@ -62,6 +63,7 @@ def snippet(snippetid) "EndLine: #{snippet['EndLine']}\n" \ "Code:\n#{snippet['Text']['#cdata-section'].strip}" \ end + # rubocop:enable Layout/LineEndStringConcatenationIndentation def nist_tag(rule) references = rule['References']['Reference']