String format warnings for custom methods
Is there any way to get the "Non-existent argument in format string" warnings for a custom function? For example,
String.Format("the hit the ", stuff);
Will give a warning on : Non-existent argument in format string. Can we get this same functionality with a custom method, as in:
log.Debug("the hit the ", stuff);
Thanks,
Sam
Please sign in to leave a comment.
The set of methods, for which this analysis is applied, is hard-coded.
We'll consider to make it configurable.......
http://www.jetbrains.net/jira/browse/RSRP-38704
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Samuel Neff" <no_reply@jetbrains.com> wrote in message
news:7000248.1176239727605.JavaMail.itn@is.intellij.net...
>
>
>
Funny, I am looking for that exact functionality. It would be better if it
was built into the C# compiler!
"Samuel Neff" <no_reply@jetbrains.com> wrote in message
news:7000248.1176239727605.JavaMail.itn@is.intellij.net...
>
>
>
ha, problem with that is the MS folks are not nearly as responsive as JetBrains.
Be sure to vote for the item in tracker! :)