feature: Provide predefined error format compatible with dmds output

an output parser that works with dmd / ldc just works (tm) witha
dscanner as well
This commit is contained in:
Christian Köstlin 2023-07-06 22:39:31 +02:00 committed by Jan Jurzitza
parent 1201a68f66
commit 35d2cf4177
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}