Skip to content

Commit 343af0f

Browse files
committed
feat: add optional CSV export for findings and warnings
1 parent c32a4ef commit 343af0f

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

src/report.hpp

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1 @@
1-
#pragma once
2-
3-
#include "signal.hpp"
4-
#include "detector.hpp"
5-
#include "parser.hpp"
6-
7-
#include <filesystem>
8-
#include <string>
9-
#include <vector>
10-
11-
namespace loglens {
12-
13-
struct ReportData {
14-
std::filesystem::path input_path;
15-
ParseMetadata parse_metadata;
16-
ParserQualityMetrics parser_quality;
17-
std::vector<Event> events;
18-
std::vector<Finding> findings;
19-
std::vector<ParseWarning> warnings;
20-
AuthSignalConfig auth_signal_mappings;
21-
};
22-
23-
std::string render_markdown_report(const ReportData& data);
24-
std::string render_json_report(const ReportData& data);
25-
void write_reports(const ReportData& data, const std::filesystem::path& output_directory);
26-
27-
} // namespace loglens
1+
#pragma once #include "signal.hpp" #include "detector.hpp" #include "parser.hpp" #include <filesystem> #include <string> #include <vector> namespace loglens { struct ReportData { std::filesystem::path input_path; ParseMetadata parse_metadata; ParserQualityMetrics parser_quality; std::vector<Event> events; std::vector<Finding> findings; std::vector<ParseWarning> warnings; AuthSignalConfig auth_signal_mappings; }; std::string render_markdown_report(const ReportData& data); std::string render_json_report(const ReportData& data); std::string render_findings_csv(const ReportData& data); std::string render_warnings_csv(const ReportData& data); void write_reports(const ReportData& data, const std::filesystem::path& output_directory, bool emit_csv = false); } // namespace loglens

0 commit comments

Comments
 (0)