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
|
||||||
|
@ -395,7 +397,7 @@ Options:
|
||||||
tree. If no files are specified, input is read from stdin.
|
tree. If no files are specified, input is read from stdin.
|
||||||
|
|
||||||
--declaration <symbolName> <file | directory>...,
|
--declaration <symbolName> <file | directory>...,
|
||||||
-d <symbolName> <file | directory>...
|
-d <symbolName> <file | directory>...
|
||||||
Find the location where symbolName is declared. This should be more
|
Find the location where symbolName is declared. This should be more
|
||||||
accurate than "grep". Searches the given files and directories, or the
|
accurate than "grep". Searches the given files and directories, or the
|
||||||
current working directory if none are specified.
|
current working directory if none are specified.
|
||||||
|
|
Loading…
Reference in New Issue