-
Notifications
You must be signed in to change notification settings - Fork 415
Expand file tree
/
Copy pathstatic_code_analysis.txt
More file actions
139 lines (125 loc) · 5.46 KB
/
static_code_analysis.txt
File metadata and controls
139 lines (125 loc) · 5.46 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
Run started:2026-03-06 17:21:03.891292+00:00
Test results:
>> 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.9.2/plugins/b110_try_except_pass.html
Location: ./sdv/_utils.py:349:8
348
349 except Exception:
350 pass
351
--------------------------------------------------
>> 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.9.2/plugins/b105_hardcoded_password_string.html
Location: ./sdv/constraints/tabular.py:1160:16
1159 def _get_diff_column_name(self, table_data):
1160 token = '#'
1161 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.9.2/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: [B112:try_except_continue] Try, Except, Continue detected.
Severity: Low Confidence: High
CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
More Info: https://bandit.readthedocs.io/en/1.9.2/plugins/b112_try_except_continue.html
Location: ./sdv/datasets/demo.py:125:8
124 matches.append(key)
125 except Exception:
126 continue
127
--------------------------------------------------
>> Issue: [B112:try_except_continue] Try, Except, Continue detected.
Severity: Low Confidence: High
CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
More Info: https://bandit.readthedocs.io/en/1.9.2/plugins/b112_try_except_continue.html
Location: ./sdv/datasets/demo.py:190:8
189
190 except Exception:
191 continue
192
--------------------------------------------------
>> Issue: [B112:try_except_continue] Try, Except, Continue detected.
Severity: Low Confidence: High
CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
More Info: https://bandit.readthedocs.io/en/1.9.2/plugins/b112_try_except_continue.html
Location: ./sdv/datasets/demo.py:580:8
579
580 except Exception:
581 continue
582
--------------------------------------------------
>> Issue: [B306:blacklist] Use of insecure and deprecated function (mktemp).
Severity: Medium Confidence: High
CWE: CWE-377 (https://cwe.mitre.org/data/definitions/377.html)
More Info: https://bandit.readthedocs.io/en/1.9.2/blacklists/blacklist_calls.html#b306-mktemp-q
Location: ./sdv/logging/utils.py:41:19
40 elif os.access(store_path, os.W_OK):
41 tmp_path = tempfile.mktemp(dir=store_path, suffix='.yml')
42 shutil.copyfile(config_path, tmp_path)
--------------------------------------------------
>> Issue: [B105:hardcoded_password_string] Possible hardcoded password: 'id'
Severity: Low Confidence: Medium
CWE: CWE-259 (https://cwe.mitre.org/data/definitions/259.html)
More Info: https://bandit.readthedocs.io/en/1.9.2/plugins/b105_hardcoded_password_string.html
Location: ./sdv/metadata/single_table.py:499:24
498 for token in tokens:
499 if token == 'id':
500 return 'id'
--------------------------------------------------
>> 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.9.2/plugins/b110_try_except_pass.html
Location: ./sdv/metadata/single_table.py:555:12
554
555 except Exception:
556 pass
557
--------------------------------------------------
>> 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.9.2/plugins/b110_try_except_pass.html
Location: ./sdv/multi_table/hma.py:407:12
406 index.append(foreign_key_value)
407 except Exception:
408 # Skip children rows subsets that fail
409 pass
410
--------------------------------------------------
>> 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.9.2/plugins/b110_try_except_pass.html
Location: ./sdv/single_table/dayz.py:62:4
61 params['num_decimal_digits'] = num_decimal_digits
62 except Exception:
63 pass
64
--------------------------------------------------
Code scanned:
Total lines of code: 17545
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: 10
Medium: 1
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 2
High: 9
Files skipped (0):