Topic | Value |
---|---|
Id | GU0009 |
Severity | Warning |
Enabled | True |
Category | Gu.Analyzers.Correctness |
Code | ArgumentAnalyzer |
The unnamed boolean argument aren't obvious about their purpose. Consider naming the boolean argument for clarity.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable GU0009 // Name the boolean argument
Code violating the rule here
#pragma warning restore GU0009 // Name the boolean argument
Or put this at the top of the file to disable all instances.
#pragma warning disable GU0009 // Name the boolean argument
[System.Diagnostics.CodeAnalysis.SuppressMessage("Gu.Analyzers.Correctness",
"GU0009:Name the boolean argument",
Justification = "Reason...")]