in dusty/reporters/html/presenter.py [0:0]
def project_findings(self):
""" Returns project findings """
result = list()
if self.config.get("group_by_endpoint", False):
result.extend(self._group_findings_by_endpoints([
item for item in self.context.findings \
if not item.get_meta("information_finding", False) \
and not item.get_meta("false_positive_finding", False) \
and not item.get_meta("excluded_finding", False)
]))
else:
for item in self.context.findings:
if item.get_meta("information_finding", False) or \
item.get_meta("false_positive_finding", False) or \
item.get_meta("excluded_finding", False):
continue
try:
result.append(self._item_to_finding(item))
except:
log.exception("Failed to create finding item")
result.sort(key=lambda item: (SEVERITIES.index(item.severity), item.tool, item.title))
return result