How to use the parliament.finding.Finding function in parliament

To help you get started, we’ve selected a few parliament examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github duo-labs / cloudmapper / parliament / statement.py View on Github external
def add_finding(self, finding, severity, location={}):
        """
        Add finding to the class.

        finding: String specifiying the problem
        severity: misc.severity identifier
        location: Dictionary with information about where this problem is. Often set to:
            {"location": "string"}
        """
        self.findings.append(Finding(finding, severity, location))
github duo-labs / parliament / parliament / statement.py View on Github external
def add_finding(self, finding, detail=None, location={}):
        """
        Add finding to the class.

        finding: String specifiying the problem
        location: Dictionary with information about where this problem is. Often set to:
            {"location": "string"}
        """
        self.findings.append(Finding(finding, detail, location))
github duo-labs / parliament / parliament / policy.py View on Github external
def add_finding(self, finding, detail="", location={}):
        if "filepath" not in location:
            location["filepath"] = self.filepath
        self._findings.append(Finding(finding, detail, location))
github duo-labs / cloudmapper / parliament / policy.py View on Github external
def add_finding(self, finding, severity, location={}):
        if "filepath" not in location:
            location["filepath"] = self.filepath
        self._findings.append(Finding(finding, severity, location))