Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nettacker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output.md
17 changes: 17 additions & 0 deletions nettacker/nettacker/core/markdown_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
def generate_markdown_report(results, output_file="output.md"):
"""
Generate a simple markdown report from scan results.
"""
try:
with open(output_file, "w", encoding="utf-8") as f:
f.write("# Nettacker Scan Report\n\n")

if not results:
f.write("No results found.\n")
return

for item in results:
f.write(f"- {str(item)}\n")

except Exception as e:
print(f"Error generating markdown report: {e}")