mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-27 22:00:17 +03:00
Support checkName in errorFormat
This commit is contained in:
parent
d4dd5b9864
commit
1d476fa39d
2 changed files with 4 additions and 1 deletions
|
@ -105,6 +105,7 @@ void messageFunctionFormat(string format, Message message, bool isError)
|
|||
s = s.replace("{column}", to!string(message.column));
|
||||
s = s.replace("{type}", isError ? "error" : "warn");
|
||||
s = s.replace("{message}", message.message);
|
||||
s = s.replace("{name}", message.checkName);
|
||||
|
||||
writefln("%s", s);
|
||||
}
|
||||
|
|
|
@ -376,6 +376,8 @@ Options:
|
|||
--errorFormat|f <pattern>
|
||||
Format errors produced by the style/syntax checkers. The default
|
||||
value for the pattern is: "%2$s".
|
||||
Supported placeholders are: {filepath}, {line}, {column}, {type},
|
||||
{message}, and {name}.
|
||||
|
||||
--ctags <file | directory>..., -c <file | directory>...
|
||||
Generates ctags information from the given source code file. Note that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue