Skip to content

Commit 249f758

Browse files
committed
2023
1 parent bf9a71b commit 249f758

File tree

17 files changed

+605
-475
lines changed

17 files changed

+605
-475
lines changed

‎CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
All major and minor version changes will be documented in this file. Details of
44
patch-level version changes can be found in [commit messages](../../commits/master).
55

6+
## 2023 - 2023/06/27
7+
8+
- Refactor to fix bugs and improve readability
9+
- Add `scan-dir` argument
10+
- Add support for levels/severity to `dlint`
11+
- Ensure `bandit` ignores relative files (see https://github.com/PyCQA/bandit/issues/975)
12+
- Fix bug with `safety` plugin where results were corrupted
13+
- Update deps
14+
615
## 2022 - 2022/04/09
716

817
- Move docs

‎documentation/reference/MODULES.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎documentation/reference/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Simplesecurity Modules
1+
# Simplesecurity Index
22

3-
> Auto-generated documentation modules index.
3+
> Auto-generated documentation index.
44
5-
Full list of [Simplesecurity](README.md#simplesecurity-index) project modules.
5+
A full list of `Simplesecurity` project modules.
66

7-
- [Simplesecurity Index](README.md#simplesecurity-index)
87
- [Simplesecurity](simplesecurity/index.md#simplesecurity)
98
- [Module](simplesecurity/module.md#module)
9+
- [Excluded](simplesecurity/excluded.md#excluded)
1010
- [Filter](simplesecurity/filter.md#filter)
1111
- [Formatter](simplesecurity/formatter.md#formatter)
1212
- [Level](simplesecurity/level.md#level)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Excluded
2+
3+
[Simplesecurity Index](../README.md#simplesecurity-index) /
4+
[Simplesecurity](./index.md#simplesecurity) /
5+
Excluded
6+
7+
> Auto-generated documentation for [simplesecurity.excluded](../../../simplesecurity/excluded.py) module.
8+
9+
- [Excluded](#excluded)
Lines changed: 54 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
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

2119
Deduplicate 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

4746
Filter 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

7177
Basically 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

95106
Lookup 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

Comments
 (0)