navigation

FailwithfWithArgumentsMatchingFormatString (FL0021)

Cause

failwithf is passed more arguments than the format string (first argument) species e.g. failwithf "%d" 5 5

Rationale

failwithf being passed more arguments than the format string (first argument) specifies is probably a mistake.

How To Fix

Remove the extra arguments.

Rule Settings

{
    "failwithfWithArgumentsMatchingFormatString": {
        "enabled": true
    }
}