11 enum class Severity : uint8_t
20 Severity severity = Severity::Info;
29 std::vector<Message> messages;
31 std::string contextHeader;
34 bool HasError(
const Report& report);
35 bool HasWarning(
const Report& report);
36 void AddInfo(Report& report,
const char* code, std::string message, std::string details = {});
37 void AddWarning(Report& report,
const char* code, std::string message, std::string details = {});
38 void AddError(Report& report,
const char* code, std::string message, std::string details = {});
40 const char* SeverityLabel(Severity s);
42 std::string FormatReportPlainText(
const Report& report);
43 std::string FormatReportMarkdown(
const Report& report);
48 bool SaveReportToLogsFolder(
const Report& report,
49 const std::string& projectDir,
50 const char* subfolder,
51 std::string& outPath);
53 void CopyReportToClipboard(
const Report& report);