-
Notifications
You must be signed in to change notification settings - Fork 317
/
static_code_analysis.txt
87 lines (77 loc) · 3.23 KB
/
static_code_analysis.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Run started:2024-11-19 01:24:03.657171
Test results:
>> Issue: [B105:hardcoded_password_string] Possible hardcoded password: '# Release Notes
'
Severity: Low Confidence: Medium
CWE: CWE-259 (https://cwe.mitre.org/data/definitions/259.html)
More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b105_hardcoded_password_string.html
Location: ./scripts/release_notes_generator.py:134:12
133
134 token = '# Release Notes\n\n'
135 split_index = history.find(token) + len(token) + 1
--------------------------------------------------
>> Issue: [B110:try_except_pass] Try, Except, Pass detected.
Severity: Low Confidence: High
CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b110_try_except_pass.html
Location: ./sdv/_utils.py:329:8
328
329 except Exception:
330 pass
331
--------------------------------------------------
>> Issue: [B105:hardcoded_password_string] Possible hardcoded password: '#'
Severity: Low Confidence: Medium
CWE: CWE-259 (https://cwe.mitre.org/data/definitions/259.html)
More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b105_hardcoded_password_string.html
Location: ./sdv/constraints/tabular.py:1143:16
1142 def _get_diff_column_name(self, table_data):
1143 token = '#'
1144 columns = [self._column_name, self._low_value, self._high_value]
--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Severity: Low Confidence: High
CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html
Location: ./sdv/data_processing/utils.py:17:4
16 """
17 assert path.exists(), 'The expected file was not found.'
18 module_path = path.parent
--------------------------------------------------
>> Issue: [B110:try_except_pass] Try, Except, Pass detected.
Severity: Low Confidence: High
CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b110_try_except_pass.html
Location: ./sdv/metadata/single_table.py:538:12
537
538 except Exception:
539 pass
540
--------------------------------------------------
>> Issue: [B110:try_except_pass] Try, Except, Pass detected.
Severity: Low Confidence: High
CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b110_try_except_pass.html
Location: ./sdv/multi_table/hma.py:354:12
353 index.append(foreign_key_value)
354 except Exception:
355 # Skip children rows subsets that fail
356 pass
357
--------------------------------------------------
Code scanned:
Total lines of code: 12923
Total lines skipped (#nosec): 0
Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0
Run metrics:
Total issues (by severity):
Undefined: 0
Low: 6
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 2
High: 4
Files skipped (0):