|
1 | | -Run started:2024-10-22 16:18:16.010383 |
| 1 | +Run started:2025-01-09 11:06:33.730015 |
2 | 2 |
|
3 | 3 | Test results: |
4 | 4 | >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. |
5 | 5 | Severity: Low Confidence: High |
6 | 6 | CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) |
7 | 7 | More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html |
8 | | - Location: ./ctgan/__main__.py:122:8 |
9 | | -121 if args.sample_condition_column is not None: |
10 | | -122 assert args.sample_condition_column_value is not None |
11 | | -123 |
| 8 | + Location: ./ctgan/__main__.py:121:8 |
| 9 | +120 if args.sample_condition_column is not None: |
| 10 | +121 assert args.sample_condition_column_value is not None |
| 11 | +122 |
12 | 12 |
|
13 | 13 | -------------------------------------------------- |
14 | 14 | >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. |
@@ -80,34 +80,22 @@ Test results: |
80 | 80 | 100 assert st == recon_x.size()[1] |
81 | 81 | 101 KLD = -0.5 * torch.sum(1 + logvar - mu**2 - logvar.exp()) |
82 | 82 |
|
83 | | --------------------------------------------------- |
84 | | ->> Issue: [B105:hardcoded_password_string] Possible hardcoded password: '# History |
85 | | - |
86 | | -' |
87 | | - Severity: Low Confidence: Medium |
88 | | - CWE: CWE-259 (https://cwe.mitre.org/data/definitions/259.html) |
89 | | - More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b105_hardcoded_password_string.html |
90 | | - Location: ./scripts/release_notes_generator.py:134:12 |
91 | | -133 |
92 | | -134 token = '# History\n\n' |
93 | | -135 split_index = history.find(token) + len(token) + 1 |
94 | | - |
95 | 83 | -------------------------------------------------- |
96 | 84 |
|
97 | 85 | Code scanned: |
98 | | - Total lines of code: 1508 |
| 86 | + Total lines of code: 1387 |
99 | 87 | Total lines skipped (#nosec): 0 |
100 | 88 | Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0 |
101 | 89 |
|
102 | 90 | Run metrics: |
103 | 91 | Total issues (by severity): |
104 | 92 | Undefined: 0 |
105 | | - Low: 9 |
| 93 | + Low: 8 |
106 | 94 | Medium: 0 |
107 | 95 | High: 0 |
108 | 96 | Total issues (by confidence): |
109 | 97 | Undefined: 0 |
110 | 98 | Low: 0 |
111 | | - Medium: 1 |
| 99 | + Medium: 0 |
112 | 100 | High: 8 |
113 | 101 | Files skipped (0): |
0 commit comments