Skip to content

Commit 08af53e

Browse files
authored
[StyleCleanUp] Fix misplaced using directives in CSP (IDE0065) (#10683)
* Fix IDE0073 for generated files * Fix IDE0065 for CSP
1 parent b2ce610 commit 08af53e

File tree

13 files changed

+22
-32
lines changed

13 files changed

+22
-32
lines changed

src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ToleranceTypeValidation.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3-
// See the LICENSE file in the project root for more information.
43

54
//
65
//

src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/helpers/ManagedStyle.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public static string WriteFileHeader(string filename, string source)
5353
[[inline]]
5454
// Licensed to the .NET Foundation under one or more agreements.
5555
// The .NET Foundation licenses this file to you under the MIT license.
56-
// See the LICENSE file in the project root for more information.
5756

5857
//
5958
//

src/Microsoft.DotNet.Wpf/src/WpfGfx/include/Generated/wgx_command_types.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3-
// See the LICENSE file in the project root for more information.
43

54
//
65
//

src/Microsoft.DotNet.Wpf/src/WpfGfx/include/Generated/wgx_commands.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3-
// See the LICENSE file in the project root for more information.
43

54
//
65
//

src/Microsoft.DotNet.Wpf/src/WpfGfx/include/Generated/wgx_misc.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3-
// See the LICENSE file in the project root for more information.
43

54
//
65
//

src/Microsoft.DotNet.Wpf/src/WpfGfx/include/Generated/wgx_resource_types.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3-
// See the LICENSE file in the project root for more information.
43

54
//
65
//

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/CsPrimeParser.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@
1111
//
1212
//
1313

14+
using System.Text.RegularExpressions;
15+
using System.Collections;
16+
using System.Text;
17+
1418
namespace MS.Internal.Csp
1519
{
16-
using System;
17-
using System.IO;
18-
using System.Text;
19-
using System.Text.RegularExpressions;
20-
using System.Collections;
21-
2220
internal sealed class CsPrimeParser
2321
{
2422
private struct Position

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/CsPrimeRuntime.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
// provided to the project that Csp.exe will execute.
1515
//
1616

17+
using System.Text;
18+
1719
namespace MS.Internal.Csp
1820
{
19-
using System;
20-
using System.Text;
21-
2221
public sealed class CsPrimeRuntime
2322
{
2423
//------------------------------------------------------
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
global using System.IO;
5+
global using System;

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/MainClass.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919
//
2020
//------------------------------------------------------------------------------
2121

22+
using System.CodeDom.Compiler;
23+
using System.Collections;
24+
using System.Diagnostics;
25+
using System.Text;
26+
2227
namespace MS.Internal.Csp
2328
{
24-
using System;
25-
using System.Collections;
26-
using System.Diagnostics;
27-
using System.IO;
28-
using System.Text;
29-
using System.CodeDom.Compiler;
30-
3129
internal sealed class MainClass
3230
{
3331
// Parameters affecting csp.exe as a whole.

0 commit comments

Comments
 (0)