Skip to content

Commit

Permalink
Add rubocop exception
Browse files Browse the repository at this point in the history
Signed-off-by: Rony Xavier <[email protected]>
  • Loading branch information
rx294 committed Jun 29, 2021
1 parent b42f4b2 commit 824b231
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/heimdall_tools/fortify_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ 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" \
"StartLine: #{snippet['StartLine']}, " \
"EndLine: #{snippet['EndLine']}\n" \
"Code:\n#{snippet['Text']['#cdata-section'].strip}" \
end
# rubocop:enable Layout/LineEndStringConcatenationIndentation

def nist_tag(rule)
references = rule['References']['Reference']
Expand Down

0 comments on commit 824b231

Please sign in to comment.