Topic | Value |
---|---|
Id | GU0012 |
Severity | Hidden |
Enabled | True |
Category | Gu.Analyzers.Correctness |
Code | ParameterAnalyzer |
SimpleAssignmentAnalyzer |
Check if parameter is null.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable GU0012 // Check if parameter is null
Code violating the rule here
#pragma warning restore GU0012 // Check if parameter is null
Or put this at the top of the file to disable all instances.
#pragma warning disable GU0012 // Check if parameter is null
[System.Diagnostics.CodeAnalysis.SuppressMessage("Gu.Analyzers.Correctness",
"GU0012:Check if parameter is null",
Justification = "Reason...")]