From 35d2cf41779af077a95a99d27d728b6e27fda115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6stlin?= Date: Thu, 6 Jul 2023 22:39:31 +0200 Subject: [PATCH] feature: Provide predefined error format compatible with dmds output an output parser that works with dmd / ldc just works (tm) witha dscanner as well --- src/dscanner/analysis/run.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dscanner/analysis/run.d b/src/dscanner/analysis/run.d index 99bcfd9..81ea1d5 100644 --- a/src/dscanner/analysis/run.d +++ b/src/dscanner/analysis/run.d @@ -107,7 +107,8 @@ string[string] errorFormatMap() if (ret is null) ret = [ "github": "::{type2} file={filepath},line={line},endLine={endLine},col={column},endColumn={endColumn},title={Type2} ({name})::{message}", - "pretty": "\x1B[1m{filepath}({line}:{column}): {Type2}: \x1B[0m{message} \x1B[2m({name})\x1B[0m{context}{supplemental}" + "pretty": "\x1B[1m{filepath}({line}:{column}): {Type2}: \x1B[0m{message} \x1B[2m({name})\x1B[0m{context}{supplemental}", + "digitalmars": "{filepath}({line},{column}): {Type2}: {message}", ]; return ret; }