Skip to content

Commit 6146546

Browse files
bergmeisterJamesWTruher
authored andcommitted
Remove unused using statements and sort them (#931)
* Remove and sort usings * re-add accidentally removed using
1 parent 3cd2910 commit 6146546

29 files changed

+19
-53
lines changed

Engine/Commands/GetScriptAnalyzerRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
using Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic;
45
using System;
56
using System.Collections.Generic;
67
using System.Diagnostics.CodeAnalysis;
78
using System.Globalization;
89
using System.Linq;
910
using System.Management.Automation;
10-
using Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic;
1111

1212
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands
1313
{

Engine/EditableText.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
using Microsoft.Windows.PowerShell.ScriptAnalyzer.Extensions;
45
using System;
5-
using System.Collections;
6-
using System.Collections.Generic;
76
using System.Collections.ObjectModel;
87
using System.Globalization;
98
using System.Linq;
10-
using System.Management.Automation.Language;
11-
using System.Text;
12-
using Microsoft.Windows.PowerShell.ScriptAnalyzer.Extensions;
139

1410
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer
1511
{

Engine/Generic/CorrectionExtent.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
using System;
54
using System.Collections.Generic;
6-
using System.IO;
7-
using System.Linq;
85
using System.Management.Automation.Language;
9-
using System.Text;
10-
using System.Threading.Tasks;
116

127
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic
138
{

Engine/Generic/DiagnosticRecord.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Management.Automation.Language;
76

Engine/Generic/RuleSuppression.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Licensed under the MIT License.
33

44
using System;
5+
using System.Collections.Generic;
6+
using System.Globalization;
57
using System.Linq;
68
using System.Management.Automation.Language;
7-
using System.Collections.Generic;
89
using System.Text.RegularExpressions;
9-
using System.Globalization;
1010

1111
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic
1212
{

Engine/Helper.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
using Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic;
45
using System;
6+
using System.Collections;
57
using System.Collections.Generic;
68
using System.Collections.ObjectModel;
9+
using System.Globalization;
710
using System.IO;
811
using System.Linq;
912
using System.Management.Automation;
1013
using System.Management.Automation.Language;
11-
using System.Globalization;
12-
using Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic;
13-
using System.Management.Automation.Runspaces;
14-
using System.Collections;
15-
using System.Reflection;
1614

1715
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer
1816
{

Engine/VariableAnalysis.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
using System;
55
using System.Collections.Generic;
6+
using System.Globalization;
67
using System.Linq;
78
using System.Management.Automation.Language;
8-
using System.Globalization;
99

1010
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer
1111
{

Engine/VariableAnalysisBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
using System.Collections;
66
using System.Collections.Generic;
77
using System.Collections.ObjectModel;
8+
using System.Globalization;
89
using System.Linq;
9-
using System.Reflection;
10-
using System.Management.Automation.Language;
1110
using System.Management.Automation;
12-
using System.Globalization;
11+
using System.Management.Automation.Language;
12+
using System.Reflection;
1313

1414
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer
1515
{

Rules/AvoidNullOrEmptyHelpMessageAttribute.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using System.Collections.Generic;
6-
using System.Linq;
76
using System.Management.Automation.Language;
87
using Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic;
98
#if !CORECLR

Rules/AvoidReservedCharInCmdlet.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Linq;
77
using System.Management.Automation.Language;
88
using Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic;
9-
using Microsoft.Windows.PowerShell.ScriptAnalyzer;
109
#if !CORECLR
1110
using System.ComponentModel.Composition;
1211
#endif

0 commit comments

Comments
 (0)