Fix false positive in Standards Police warning warning SP1004
- "warning SP1004: namespaces not alphabetized" - Any using statement can come after "using System;"
This commit is contained in:
parent
47323a88e1
commit
6f8c040cfe
|
|
@ -66,6 +66,10 @@ namespace Microsoft.StandardsPolice
|
||||||
{
|
{
|
||||||
acceptableOrder = true;
|
acceptableOrder = true;
|
||||||
}
|
}
|
||||||
|
if (!acceptableOrder && priorUsingDirective.Name.ToString() == "System")
|
||||||
|
{
|
||||||
|
acceptableOrder = true;
|
||||||
|
}
|
||||||
if (!acceptableOrder &&
|
if (!acceptableOrder &&
|
||||||
priorUsingDirective.Name.ToString().StartsWith("System.") &&
|
priorUsingDirective.Name.ToString().StartsWith("System.") &&
|
||||||
!usingDirective.Name.ToString().StartsWith("System."))
|
!usingDirective.Name.ToString().StartsWith("System."))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue