This inspection verifies that format items in the format argument of the String.Format and similar methods are used correctly.
If you have a custom formatting method that behaves like String.Format, you can mark it with the [StringFormatMethodAttribute] from JetBrains.Annotations to enable the corresponding checks. Here is an example:
[StringFormatMethod("message")]voidShowError(string message,paramsobject[] args){// Show error}voidTest(){// Warning: Non-existing argument in format stringShowError("Failed: {0}");}