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 8a34f80 commit 32c80b0Copy full SHA for 32c80b0
dojo/tools/sarif/parser.py
@@ -191,6 +191,7 @@ def get_snippet(result):
191
192
193
def get_codeFlowsDescription(codeFlows):
194
+ description = ''
195
for codeFlow in codeFlows:
196
if 'threadFlows' not in codeFlow:
197
continue
@@ -235,7 +236,7 @@ def get_description(result, rule):
235
236
if fullDescription != message and fullDescription != shortDescription:
237
description += '**Rule full description:** {}\n'.format(fullDescription)
238
- if 'codeFlows' in result:
239
+ if len(result.get('codeFlows', [])) > 0:
240
description += get_codeFlowsDescription(result['codeFlows'])
241
242
if description.endswith('\n'):
0 commit comments