Find printf-style format strings that fail at runtime

Proprietary

Marks a literal String.format, formatted, printf or Formatter.format format string that java.util.Formatter rejects, so the call throws an IllegalFormatException: an unknown conversion such as %i, a flag the conversion does not accept, too few arguments, or an argument of the wrong type. Test sources are skipped.

io.moderne.staticanalysis.FindInvalidFormatStrings
mod run . --recipe=io.moderne.staticanalysis.FindInvalidFormatStrings

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.