Support checkName in errorFormat
This commit is contained in:
parent
d4dd5b9864
commit
1d476fa39d
|
|
@ -105,6 +105,7 @@ void messageFunctionFormat(string format, Message message, bool isError)
|
||||||
s = s.replace("{column}", to!string(message.column));
|
s = s.replace("{column}", to!string(message.column));
|
||||||
s = s.replace("{type}", isError ? "error" : "warn");
|
s = s.replace("{type}", isError ? "error" : "warn");
|
||||||
s = s.replace("{message}", message.message);
|
s = s.replace("{message}", message.message);
|
||||||
|
s = s.replace("{name}", message.checkName);
|
||||||
|
|
||||||
writefln("%s", s);
|
writefln("%s", s);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -376,6 +376,8 @@ Options:
|
||||||
--errorFormat|f <pattern>
|
--errorFormat|f <pattern>
|
||||||
Format errors produced by the style/syntax checkers. The default
|
Format errors produced by the style/syntax checkers. The default
|
||||||
value for the pattern is: "%2$s".
|
value for the pattern is: "%2$s".
|
||||||
|
Supported placeholders are: {filepath}, {line}, {column}, {type},
|
||||||
|
{message}, and {name}.
|
||||||
|
|
||||||
--ctags <file | directory>..., -c <file | directory>...
|
--ctags <file | directory>..., -c <file | directory>...
|
||||||
Generates ctags information from the given source code file. Note that
|
Generates ctags information from the given source code file. Note that
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue