Skip to content

Latest commit

 

History

History
117 lines (66 loc) · 2.06 KB

File metadata and controls

117 lines (66 loc) · 2.06 KB

Filter

Simplesecurity Index / Simplesecurity / Filter

Auto-generated documentation for simplesecurity.filter module.

deduplicate

Show source in filter.py:58

Deduplicate the list of findings.

Arguments

  • findings list[Finding] - list of findings to deduplicate

Returns

  • list[Finding] - new deduplicated list

Signature

def deduplicate(findings: list[Finding]) -> list[Finding]: ...

See also

filterSeverityAndConfidence

Show source in filter.py:78

Filter the list of findings.

Arguments

  • findings list[Finding] - list of findings to
  • severity int - min severity
  • confidence int - min confidence

Returns

  • list[Finding] - new deduplicated list

Signature

def filterSeverityAndConfidence(
    findings: list[Finding], severity: int, confidence: int
) -> list[Finding]: ...

See also

findingsEqual

Show source in filter.py:36

Basically and eq method for findings.

Arguments

  • findingA Finding - lhs
  • findingB Finding - rhs

Returns

  • 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

Signature

def findingsEqual(findingA: Finding, findingB: Finding) -> int: ...

See also

lookupId

Show source in filter.py:22

Lookup an id in the id map.

Arguments

  • identifier str - id to look up

Returns

  • str - id that it equals

Signature

def lookupId(identifier: str) -> list[str]: ...