Skip to content

Commit 2364425

Browse files
committed
Sort and remove usings for all the dotnet/format code
1 parent 3e70a96 commit 2364425

File tree

72 files changed

+0
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+0
-248
lines changed

src/BuiltInTools/dotnet-format/Analyzers/AnalyzerFinderHelpers.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.Immutable;
6-
using System.Linq;
74
using System.Reflection;
85

96
using Microsoft.CodeAnalysis.CodeFixes;

src/BuiltInTools/dotnet-format/Analyzers/AnalyzerFormatter.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Collections.Generic;
43
using System.Collections.Immutable;
54
using System.Diagnostics;
6-
using System.Linq;
7-
using System.Threading;
8-
using System.Threading.Tasks;
95
using Microsoft.CodeAnalysis.CodeFixes;
106
using Microsoft.CodeAnalysis.Diagnostics;
117
using Microsoft.CodeAnalysis.Tools.Formatters;

src/BuiltInTools/dotnet-format/Analyzers/AnalyzerOptionExtensions.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Linq;
5-
using System.Threading;
63
using Microsoft.CodeAnalysis.Tools.Analyzers;
74

85
namespace Microsoft.CodeAnalysis.Diagnostics

src/BuiltInTools/dotnet-format/Analyzers/AnalyzerReferenceInformationProvider.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.Immutable;
6-
using System.IO;
7-
using System.Linq;
84
using System.Reflection;
95
using Microsoft.CodeAnalysis.Diagnostics;
106
using Microsoft.CodeAnalysis.Host;

src/BuiltInTools/dotnet-format/Analyzers/AnalyzerRunner.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

33
using System.Collections.Immutable;
4-
using System.Linq;
5-
using System.Threading;
6-
using System.Threading.Tasks;
74
using Microsoft.CodeAnalysis.Diagnostics;
85
using Microsoft.Extensions.Logging;
96

src/BuiltInTools/dotnet-format/Analyzers/CodeAnalysisResult.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Collections.Generic;
43
using System.Collections.Immutable;
54

65
namespace Microsoft.CodeAnalysis.Tools.Analyzers

src/BuiltInTools/dotnet-format/Analyzers/CodeStyleInformationProvider.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.Immutable;
6-
using System.IO;
7-
using System.Linq;
84
using System.Reflection;
95
using Microsoft.CodeAnalysis.Diagnostics;
106
using Microsoft.CodeAnalysis.Host;

src/BuiltInTools/dotnet-format/Analyzers/Extensions.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
43
using System.Collections;
54
using System.Collections.Immutable;
6-
using System.Linq;
75
using System.Reflection;
8-
using System.Threading;
9-
using System.Threading.Tasks;
106
using Microsoft.CodeAnalysis.Diagnostics;
117
using Microsoft.CodeAnalysis.Options;
128

src/BuiltInTools/dotnet-format/Analyzers/Interfaces/IAnalyzerRunner.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

33
using System.Collections.Immutable;
4-
using System.Threading;
5-
using System.Threading.Tasks;
64
using Microsoft.CodeAnalysis.Diagnostics;
75
using Microsoft.Extensions.Logging;
86

src/BuiltInTools/dotnet-format/Analyzers/Interfaces/ICodeFixApplier.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Threading;
4-
using System.Threading.Tasks;
53
using Microsoft.CodeAnalysis.CodeFixes;
64
using Microsoft.Extensions.Logging;
75

src/BuiltInTools/dotnet-format/Analyzers/SolutionCodeFixApplier.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.Immutable;
6-
using System.Linq;
7-
using System.Threading;
8-
using System.Threading.Tasks;
94

105
using Microsoft.CodeAnalysis.CodeActions;
116
using Microsoft.CodeAnalysis.CodeFixes;

src/BuiltInTools/dotnet-format/CodeFormatter.cs

-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.Immutable;
64
using System.Diagnostics;
7-
using System.IO;
8-
using System.Linq;
9-
using System.Threading;
10-
using System.Threading.Tasks;
115
using Microsoft.CodeAnalysis.Tools.Analyzers;
126
using Microsoft.CodeAnalysis.Tools.Formatters;
137
using Microsoft.CodeAnalysis.Tools.Utilities;

src/BuiltInTools/dotnet-format/Commands/FormatAnalyzersCommand.cs

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
using System.CommandLine;
55
using System.CommandLine.Invocation;
66
using System.CommandLine.IO;
7-
using System.Threading;
8-
using System.Threading.Tasks;
97
using Microsoft.Extensions.Logging;
108
using static Microsoft.CodeAnalysis.Tools.FormatCommandCommon;
119

src/BuiltInTools/dotnet-format/Commands/FormatCommandCommon.cs

-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
43
using System.CommandLine;
54
using System.Diagnostics.CodeAnalysis;
6-
using System.IO;
7-
using System.Linq;
85
using System.Reflection;
9-
using System.Text;
10-
using System.Threading;
11-
using System.Threading.Tasks;
126
using Microsoft.CodeAnalysis.Tools.Logging;
137
using Microsoft.CodeAnalysis.Tools.Utilities;
148
using Microsoft.CodeAnalysis.Tools.Workspaces;

src/BuiltInTools/dotnet-format/Commands/FormatStyleCommand.cs

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
using System.CommandLine;
55
using System.CommandLine.Invocation;
66
using System.CommandLine.IO;
7-
using System.Threading;
8-
using System.Threading.Tasks;
97
using Microsoft.Extensions.Logging;
108
using static Microsoft.CodeAnalysis.Tools.FormatCommandCommon;
119

src/BuiltInTools/dotnet-format/Commands/FormatWhitespaceCommand.cs

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
using System.CommandLine.Invocation;
55
using System.CommandLine.IO;
66
using System.CommandLine.Parsing;
7-
using System.Threading;
8-
using System.Threading.Tasks;
97
using Microsoft.Extensions.Logging;
108
using static Microsoft.CodeAnalysis.Tools.FormatCommandCommon;
119

src/BuiltInTools/dotnet-format/Commands/RootFormatCommand.cs

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
using System.CommandLine;
55
using System.CommandLine.Invocation;
66
using System.CommandLine.IO;
7-
using System.Threading;
8-
using System.Threading.Tasks;
97
using Microsoft.Extensions.Logging;
108
using static Microsoft.CodeAnalysis.Tools.FormatCommandCommon;
119

src/BuiltInTools/dotnet-format/FixCategory.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
53
namespace Microsoft.CodeAnalysis.Tools
64
{
75
[Flags]

src/BuiltInTools/dotnet-format/FormatOptions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
43
using System.Collections.Immutable;
54
using Microsoft.CodeAnalysis.Tools.Utilities;
65
using Microsoft.Extensions.Logging;

src/BuiltInTools/dotnet-format/FormattedFile.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Collections.Generic;
4-
53
namespace Microsoft.CodeAnalysis.Tools
64
{
75
public class FormattedFile

src/BuiltInTools/dotnet-format/Formatters/CharsetFormatter.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

33
using System.Diagnostics.CodeAnalysis;
4-
using System.IO;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading;
8-
using System.Threading.Tasks;
94
using Microsoft.CodeAnalysis.Diagnostics;
105
using Microsoft.CodeAnalysis.Options;
116
using Microsoft.CodeAnalysis.Text;

src/BuiltInTools/dotnet-format/Formatters/DocumentFormatter.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Collections.Generic;
43
using System.Collections.Immutable;
5-
using System.Threading;
6-
using System.Threading.Tasks;
74
using Microsoft.CodeAnalysis.Diagnostics;
85
using Microsoft.CodeAnalysis.Options;
96
using Microsoft.CodeAnalysis.Text;

src/BuiltInTools/dotnet-format/Formatters/EndOfLineFormatter.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
43
using System.Diagnostics.CodeAnalysis;
5-
using System.Threading;
6-
using System.Threading.Tasks;
74
using Microsoft.CodeAnalysis.Diagnostics;
85
using Microsoft.CodeAnalysis.Options;
96
using Microsoft.CodeAnalysis.Text;

src/BuiltInTools/dotnet-format/Formatters/FinalNewlineFormatter.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Threading;
5-
using System.Threading.Tasks;
63
using Microsoft.CodeAnalysis.Diagnostics;
74
using Microsoft.CodeAnalysis.Options;
85
using Microsoft.CodeAnalysis.Text;

src/BuiltInTools/dotnet-format/Formatters/ICodeFormatter.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Collections.Generic;
43
using System.Collections.Immutable;
5-
using System.Threading;
6-
using System.Threading.Tasks;
74
using Microsoft.Extensions.Logging;
85

96
namespace Microsoft.CodeAnalysis.Tools.Formatters

src/BuiltInTools/dotnet-format/Formatters/OrganizeImportsFormatter.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.IO;
5-
using System.Threading;
6-
using System.Threading.Tasks;
73
using Microsoft.CodeAnalysis.Diagnostics;
84
using Microsoft.CodeAnalysis.Formatting;
95
using Microsoft.CodeAnalysis.Options;

src/BuiltInTools/dotnet-format/Formatters/WhitespaceFormatter.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Threading;
4-
using System.Threading.Tasks;
53
using Microsoft.CodeAnalysis.Diagnostics;
64
using Microsoft.CodeAnalysis.Formatting;
75
using Microsoft.CodeAnalysis.Options;

src/BuiltInTools/dotnet-format/Logging/NullScope.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
53
namespace Microsoft.CodeAnalysis.Tools.Logging
64
{
75
internal class NullScope : IDisposable

src/BuiltInTools/dotnet-format/Logging/SimpleConsoleLogger.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.Immutable;
64
using System.CommandLine;
75
using System.CommandLine.Rendering;

src/BuiltInTools/dotnet-format/Program.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Threading;
4-
using System.Threading.Tasks;
53
using Microsoft.CodeAnalysis.Tools.Commands;
64

75
namespace Microsoft.CodeAnalysis.Tools

src/BuiltInTools/dotnet-format/Reflection/RemoveUnnecessaryImportsHelper.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
43
using System.Reflection;
5-
using System.Threading;
6-
using System.Threading.Tasks;
74

85
namespace Microsoft.CodeAnalysis.Tools.Reflection
96
{

src/BuiltInTools/dotnet-format/ReportWriter.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
5-
using System.IO;
63
using System.Text.Json;
74
using Microsoft.Extensions.Logging;
85

src/BuiltInTools/dotnet-format/Utilities/AssemblyResolver.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Collections.Generic;
4-
using System.IO;
53
using System.Reflection;
64
using System.Runtime.Loader;
75
using Microsoft.Extensions.Logging;

src/BuiltInTools/dotnet-format/Utilities/DotNetHelper.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Threading.Tasks;
53
using Microsoft.Extensions.Logging;
64

75
namespace Microsoft.CodeAnalysis.Tools.Utilities

src/BuiltInTools/dotnet-format/Utilities/EditorConfigFinder.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

33
using System.Collections.Immutable;
4-
using System.IO;
54

65
namespace Microsoft.CodeAnalysis.Tools.Utilities
76
{

src/BuiltInTools/dotnet-format/Utilities/EditorConfigOptions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System.Collections.Generic;
43
using System.Diagnostics.CodeAnalysis;
54
using Microsoft.CodeAnalysis.Diagnostics;
65

src/BuiltInTools/dotnet-format/Utilities/GeneratedCodeUtilities.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.IO;
5-
using System.Threading;
6-
using System.Threading.Tasks;
73
using Microsoft.CodeAnalysis.Diagnostics;
84

95
namespace Microsoft.CodeAnalysis.Tools.Utilities

src/BuiltInTools/dotnet-format/Utilities/ProcessRunner.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.ObjectModel;
64
using System.Diagnostics;
7-
using System.IO;
8-
using System.Threading;
9-
using System.Threading.Tasks;
105

116
namespace Microsoft.CodeAnalysis.Tools.Utilities
127
{

src/BuiltInTools/dotnet-format/Utilities/SourceFileMatcher.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.Immutable;
64
using Microsoft.Extensions.FileSystemGlobbing;
75

src/BuiltInTools/dotnet-format/Workspaces/FolderWorkspace.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.IO;
5-
using System.Text;
63
using Microsoft.CodeAnalysis.Host;
74
using Microsoft.CodeAnalysis.Host.Mef;
85
using Microsoft.CodeAnalysis.Text;

src/BuiltInTools/dotnet-format/Workspaces/FolderWorkspace_FolderSolutionLoader.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

33
using System.Collections.Immutable;
4-
using System.IO;
54
using Microsoft.CodeAnalysis.Tools.Utilities;
65

76
namespace Microsoft.CodeAnalysis.Tools.Workspaces

src/BuiltInTools/dotnet-format/Workspaces/FolderWorkspace_ProjectLoader.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Collections.Immutable;
64

75
namespace Microsoft.CodeAnalysis.Tools.Workspaces

0 commit comments

Comments
 (0)