Topic | Value |
---|---|
Id | GU0002 |
Severity | Hidden |
Enabled | True |
Category | Gu.Analyzers.Correctness |
Code | ArgumentListAnalyzer |
The position of a named argument should match parameter position.
This is just an OCD-thing. Enable the analyzer if you want named argument's position to match the parameter position.
Use the code fix.
Configure the severity per project, for more info see MSDN.
#pragma warning disable GU0002 // The position of a named argument should match
Code violating the rule here
#pragma warning restore GU0002 // The position of a named argument should match
Or put this at the top of the file to disable all instances.
#pragma warning disable GU0002 // The position of a named argument should match
[System.Diagnostics.CodeAnalysis.SuppressMessage("Gu.Analyzers.Correctness",
"GU0002:The position of a named argument should match",
Justification = "Reason...")]