Simplesecurity Index / Simplesecurity / Filter
Auto-generated documentation for simplesecurity.filter module.
Deduplicate the list of findings.
findings
list[Finding] - list of findings to deduplicate
list[Finding]
- new deduplicated list
def deduplicate(findings: list[Finding]) -> list[Finding]: ...
Filter the list of findings.
findings
list[Finding] - list of findings toseverity
int - min severityconfidence
int - min confidence
list[Finding]
- new deduplicated list
def filterSeverityAndConfidence(
findings: list[Finding], severity: int, confidence: int
) -> list[Finding]: ...
Basically and eq method for findings.
findingA
Finding - lhsfindingB
Finding - rhs
int
- 0 if not equal. 1 if lookup(left) is equal to right - bin left. -1 if lookup(right) is equal to left - bin right
def findingsEqual(findingA: Finding, findingB: Finding) -> int: ...
Lookup an id in the id map.
identifier
str - id to look up
str
- id that it equals
def lookupId(identifier: str) -> list[str]: ...