From 2bb7d6f8ad95e1e0e49106069150d2f928ac0b42 Mon Sep 17 00:00:00 2001 From: elachlan <2433737+elachlan@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:16:49 +1000 Subject: [PATCH] SA1216 Using static directives should be placed at the correct location --- eng/Common.globalconfig | 2 +- src/Build.UnitTests/Graph/ProjectGraph_Tests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/Common.globalconfig b/eng/Common.globalconfig index ba417e063f2..8dc4c5dd9d0 100644 --- a/eng/Common.globalconfig +++ b/eng/Common.globalconfig @@ -892,7 +892,7 @@ dotnet_diagnostic.SA1212.severity = none dotnet_diagnostic.SA1214.severity = suggestion # Using static directives should be placed at the correct location -dotnet_diagnostic.SA1216.severity = suggestion +dotnet_diagnostic.SA1216.severity = warning # The using static directives within a C# code file are not sorted alphabetically by full type name. dotnet_diagnostic.SA1217.severity = suggestion diff --git a/src/Build.UnitTests/Graph/ProjectGraph_Tests.cs b/src/Build.UnitTests/Graph/ProjectGraph_Tests.cs index 4c220e35177..934c2ec3da9 100644 --- a/src/Build.UnitTests/Graph/ProjectGraph_Tests.cs +++ b/src/Build.UnitTests/Graph/ProjectGraph_Tests.cs @@ -11,12 +11,12 @@ using Microsoft.Build.Exceptions; using Microsoft.Build.Execution; using Microsoft.Build.Framework; -using static Microsoft.Build.Graph.UnitTests.GraphTestingUtilities; using Microsoft.Build.Shared; using Microsoft.Build.UnitTests; using Shouldly; using Xunit; using Xunit.Abstractions; +using static Microsoft.Build.Graph.UnitTests.GraphTestingUtilities; #nullable disable