We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42f4b2 commit 824b231Copy full SHA for 824b231
lib/heimdall_tools/fortify_mapper.rb
@@ -55,13 +55,15 @@ def primaries(classid)
55
findings.uniq
56
end
57
58
+ # rubocop:disable Layout/LineEndStringConcatenationIndentation
59
def snippet(snippetid)
60
snippet = @snippets.select { |x| x['id'].eql?(snippetid) }.first
61
"\nPath: #{snippet['File']}\n" \
62
"StartLine: #{snippet['StartLine']}, " \
63
"EndLine: #{snippet['EndLine']}\n" \
64
"Code:\n#{snippet['Text']['#cdata-section'].strip}" \
65
66
+ # rubocop:enable Layout/LineEndStringConcatenationIndentation
67
68
def nist_tag(rule)
69
references = rule['References']['Reference']
0 commit comments