Skip to content

Commit d1c2b30

Browse files
committed
pySCG: ensure KNOWN_ISSUES.md has proper trailing newline
Fix generate_issue_report.py to add trailing newline when saving. Signed-off-by: tommcd <[email protected]>
1 parent 8dd666d commit d1c2b30

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/Secure-Coding-Guide-for-Python/KNOWN_ISSUES.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ Python Code Issues:
170170
CWE-664/CWE-460/noncompliant01.py
171171
-> Execution timeout (intentional infinite loop/blocking)
172172

173+
CWE-664/CWE-502/noncompliant01.py
174+
-> Execution timeout (intentional infinite loop/blocking)
175+
173176
CWE-664/CWE-833/noncompliant01.py
174177
-> Execution timeout (intentional infinite loop/blocking)
175178

@@ -180,7 +183,7 @@ Python Code Issues:
180183
-> Execution timeout (intentional infinite loop/blocking)
181184

182185
======================================================================
183-
Total Files with Issues: 52
186+
Total Files with Issues: 53
184187

185188
For detailed output: uv run pytest tests/ -v
186-
For fix instructions: see tests/README.md
189+
For fix instructions: see tests/README.md

docs/Secure-Coding-Guide-for-Python/tests/generate_issue_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def main():
206206
# Optionally save to file
207207
if args.save:
208208
output_file = Path(__file__).parent.parent / "KNOWN_ISSUES.md"
209-
output_file.write_text(report, encoding="utf-8")
209+
output_file.write_text(report + "\n", encoding="utf-8")
210210
print(f"\nReport saved to: {output_file}")
211211

212212
return 1

0 commit comments

Comments
 (0)