suppression-justification
What it does
Section titled “What it does”Reports a SuppressMessage attribute whose Justification is missing, null, empty, blank, or "<Pending>". The attribute is matched by name. No fix.
Why it matters
Section titled “Why it matters”A suppression hides a warning for good, and the reason is the only information a later reader has to judge whether it still holds. The text generated by tools (“<Pending>”) is a placeholder that stays forever.
To fix, write why the warning does not apply.
Example
Section titled “Example”using System.Diagnostics.CodeAnalysis;[assembly: SuppressMessage("C", "I")][assembly: SuppressMessage("C", "I", Justification = "<Pending>")]namespace N { class Other { void M() {...#endregion...Configuration
Section titled “Configuration”csharp: lint: rules: suppression-justification: warn # off (default), warn, errorEnabled by the presets: csharp/stylecop.
Suppress one line with sudsy-disable-next-line suppression-justification in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| StyleCop | SA1404 |
full |