I propose to add a warning for code that calls std.stdio.writef, std.stdio.writefln, or std.string.format with a format string that either doesn't use all the parameters passed to it, or where there are not enough parameters passed to it, or else where the type of the parameter passed in is incompatible with the type of the value being expected.
This would likely require adding a framework to support adding these inspections, but once that framework is in place, the creation of this particular inspection itself should be fairly trivial. I'd be willing to implement the inspection itself if the framework is in place.
I propose to add a warning for code that calls
std.stdio.writef
,std.stdio.writefln
, orstd.string.format
with a format string that either doesn't use all the parameters passed to it, or where there are not enough parameters passed to it, or else where the type of the parameter passed in is incompatible with the type of the value being expected.This would likely require adding a framework to support adding these inspections, but once that framework is in place, the creation of this particular inspection itself should be fairly trivial. I'd be willing to implement the inspection itself if the framework is in place.