def project_false_positive_findings()

in dusty/reporters/html/presenter.py [0:0]


    def project_false_positive_findings(self):
        """ Returns project false positive 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 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("false_positive_finding", False) and \
                        not item.get_meta("excluded_finding", False):
                    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