Skip to content

Commit 8b7eaa5

Browse files
committed
fix reporting finding.line
1 parent faac95c commit 8b7eaa5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dojo/tools/kiuwan/parser.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,19 @@ def __init__(self, filename, test):
4949
findingdict['file'] = row['File']
5050
findingdict['line_number'] = row['Line number']
5151
findingdict['description'] = "**Vulnerability type** : " + row['Vulnerability type'] + "\n\n" + \
52-
"**Status** : " + row['Status'] + "\n\n" + \
5352
"**CWE Scope** : " + row['CWE Scope'] + "\n\n" + \
54-
"**Line text** : " + row['Line text'] + "\n\n" + \
53+
"**Line number** : " + row['Line number'] + "\n\n" + \
54+
"**Code at line number** : " + row['Line text'] + "\n\n" + \
5555
"**Normative** : " + row['Normative'] + "\n\n" + \
5656
"**Rule code** : " + row['Rule code'] + "\n\n" + \
57+
"**Status** : " + row['Status'] + "\n\n" + \
5758
"**Source file** : " + row['Source file'] + "\n\n" + \
5859
"**Source line number** : " + row['Source line number'] + "\n\n" + \
59-
"**Source line text** : " + row['Source line text'] + "\n"
60+
"**Code at sorce line number** : " + row['Source line text'] + "\n"
6061

6162
finding.title = findingdict['title']
6263
finding.file_path = findingdict['file']
63-
finding.line_number = findingdict['line_number']
64+
finding.line = findingdict['line_number']
6465
finding.description = findingdict['description']
6566
finding.references = "Not provided!"
6667
finding.mitigation = "Not provided!"

0 commit comments

Comments
 (0)