11# Filter
22
3- > Auto-generated documentation for [ simplesecurity.filter] ( ../../../simplesecurity/filter.py ) module.
3+ [ Simplesecurity Index] ( ../README.md#simplesecurity-index ) /
4+ [ Simplesecurity] ( ./index.md#simplesecurity ) /
5+ Filter
46
5- Some of our analysis tools overlap one-another so lets remove duplicates .
7+ > Auto-generated documentation for [ simplesecurity.filter ] ( ../../../simplesecurity/filter.py ) module .
68
7- - [ Simplesecurity ] ( ../README.md#simplesecurity-index ) / [ Modules ] ( ../MODULES.md#simplesecurity-modules ) / [ Simplesecurity ] ( index.md#simplesecurity ) / Filter
8- - [ deduplicate] ( #deduplicate )
9- - [ filterSeverityAndConfidence] ( #filterseverityandconfidence )
10- - [ findingsEqual] ( #findingsequal )
11- - [ lookupId] ( #lookupid )
9+ - [ Filter ] ( #filter )
10+ - [ deduplicate] ( #deduplicate )
11+ - [ filterSeverityAndConfidence] ( #filterseverityandconfidence )
12+ - [ findingsEqual] ( #findingsequal )
13+ - [ lookupId] ( #lookupid )
1214
1315## deduplicate
1416
15- [[ find in source code]] ( ../../../simplesecurity/filter.py#L58 )
16-
17- ``` python
18- def deduplicate (findings : list[Finding]) -> list[Finding]:
19- ```
17+ [ Show source in filter.py:58] ( ../../../simplesecurity/filter.py#L58 )
2018
2119Deduplicate the list of findings.
2220
@@ -28,21 +26,22 @@ Deduplicate the list of findings.
2826
2927- ` list[Finding] ` - new deduplicated list
3028
29+ #### Signature
30+
31+ ``` python
32+ def deduplicate (findings : list[Finding]) -> list[Finding]:
33+ ...
34+ ```
35+
3136#### See also
3237
33- - [ Finding] ( types.md#finding )
38+ - [ Finding] ( ./ types.md#finding)
3439
35- ## filterSeverityAndConfidence
3640
37- [[ find in source code]] ( ../../../simplesecurity/filter.py#L78 )
3841
39- ``` python
40- def filterSeverityAndConfidence (
41- findings : list[Finding],
42- severity : int ,
43- confidence : int ,
44- ) -> list[Finding]:
45- ```
42+ ## filterSeverityAndConfidence
43+
44+ [ Show source in filter.py:78] ( ../../../simplesecurity/filter.py#L78 )
4645
4746Filter the list of findings.
4847
@@ -56,17 +55,24 @@ Filter the list of findings.
5655
5756- ` list[Finding] ` - new deduplicated list
5857
58+ #### Signature
59+
60+ ``` python
61+ def filterSeverityAndConfidence (
62+ findings : list[Finding], severity : int , confidence : int
63+ ) -> list[Finding]:
64+ ...
65+ ```
66+
5967#### See also
6068
61- - [ Finding] ( types.md#finding )
69+ - [ Finding] ( ./ types.md#finding)
6270
63- ## findingsEqual
6471
65- [[ find in source code]] ( ../../../simplesecurity/filter.py#L36 )
6672
67- ``` python
68- def findingsEqual ( findingA : Finding, findingB : Finding) -> int :
69- ```
73+ ## findingsEqual
74+
75+ [ Show source in filter.py:36 ] ( ../../../simplesecurity/filter.py#L36 )
7076
7177Basically and __ eq__ method for findings.
7278
@@ -80,17 +86,22 @@ Basically and __eq__ method for findings.
8086- ` int ` - 0 if not equal. 1 if lookup(left) is equal to right - bin left.
8187-1 if lookup(right) is equal to left - bin right
8288
89+ #### Signature
90+
91+ ``` python
92+ def findingsEqual (findingA : Finding, findingB : Finding) -> int :
93+ ...
94+ ```
95+
8396#### See also
8497
85- - [ Finding] ( types.md#finding )
98+ - [ Finding] ( ./ types.md#finding)
8699
87- ## lookupId
88100
89- [[ find in source code]] ( ../../../simplesecurity/filter.py#L22 )
90101
91- ``` python
92- def lookupId ( identifier : str ) -> list[ str ]:
93- ```
102+ ## lookupId
103+
104+ [ Show source in filter.py:22 ] ( ../../../simplesecurity/filter.py#L22 )
94105
95106Lookup an id in the id map.
96107
@@ -101,3 +112,12 @@ Lookup an id in the id map.
101112#### Returns
102113
103114- ` str ` - id that it equals
115+
116+ #### Signature
117+
118+ ``` python
119+ def lookupId (identifier : str ) -> list[str ]:
120+ ...
121+ ```
122+
123+
0 commit comments