Skip to content

Commit c85baf8

Browse files
chore : Remove unwanted using statement (#39176)
1 parent 2a2f285 commit c85baf8

File tree

4,869 files changed

+48
-12842
lines changed

Some content is hidden

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

4,869 files changed

+48
-12842
lines changed

.devcontainer/devcontainer.json

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/dotnet
33
{
4-
"name": "C# (.NET)",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
// The VARIANT here must align with a dotnet container image that
9-
// is publicly available on https://mcr.microsoft.com/v2/vscode/devcontainers/dotnet/tags/list.
10-
// We'll default to `latest` as the default. Generally, the .NET version that is baked
11-
// into the image by default doesn't matter since we end up installing our own
12-
// local version and using that by default in the container environment.
13-
"VARIANT": "latest",
14-
// Options
15-
"INSTALL_NODE": "true",
16-
"NODE_VERSION": "lts/*"
17-
}
18-
},
19-
// Add the IDs of extensions you want installed when the container is created.
20-
"extensions": [
21-
"ms-dotnettools.csharp",
22-
"EditorConfig.EditorConfig",
23-
"k--kato.docomment"
24-
],
25-
"settings": {
26-
// Loading projects on demand is better for larger codebases
27-
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
28-
"omnisharp.enableRoslynAnalyzers": true,
29-
"omnisharp.enableEditorConfigSupport": true,
30-
},
31-
// Use 'postCreateCommand' to run commands after the container is created.
32-
"onCreateCommand": "bash -i ${containerWorkspaceFolder}/.devcontainer/scripts/container-creation.sh",
33-
// Add the locally installed dotnet to the path to ensure that it is activated
34-
// This is needed so that things like the C# extension can resolve the correct SDK version
35-
"remoteEnv": {
36-
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
37-
"DOTNET_MULTILEVEL_LOOKUP": "0",
38-
"TARGET": "net7.0"
39-
},
40-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
41-
"remoteUser": "vscode"
4+
"name": "C# (.NET)",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
// The VARIANT here must align with a dotnet container image that
9+
// is publicly available on https://mcr.microsoft.com/v2/vscode/devcontainers/dotnet/tags/list.
10+
// We'll default to `latest` as the default. Generally, the .NET version that is baked
11+
// into the image by default doesn't matter since we end up installing our own
12+
// local version and using that by default in the container environment.
13+
"VARIANT": "latest",
14+
// Options
15+
"INSTALL_NODE": "true",
16+
"NODE_VERSION": "lts/*"
17+
}
18+
},
19+
// Add the IDs of extensions you want installed when the container is created.
20+
"extensions": [
21+
"ms-dotnettools.csharp",
22+
"EditorConfig.EditorConfig",
23+
"k--kato.docomment"
24+
],
25+
"settings": {
26+
// Loading projects on demand is better for larger codebases
27+
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
28+
"omnisharp.enableRoslynAnalyzers": true,
29+
"omnisharp.enableEditorConfigSupport": true,
30+
"omnisharp.enableImportCompletion": true,
31+
},
32+
// Use 'postCreateCommand' to run commands after the container is created.
33+
"onCreateCommand": "bash -i ${containerWorkspaceFolder}/.devcontainer/scripts/container-creation.sh",
34+
// Add the locally installed dotnet to the path to ensure that it is activated
35+
// This is needed so that things like the C# extension can resolve the correct SDK version
36+
"remoteEnv": {
37+
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
38+
"DOTNET_MULTILEVEL_LOOKUP": "0",
39+
"TARGET": "net7.0"
40+
},
41+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
42+
"remoteUser": "vscode"
4243
}

.editorconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ end_of_line = lf
7373
charset = utf-8-bom
7474

7575
[*.{cs,vb}]
76+
77+
# CS8019: Remove unnecessary usings
78+
# dotnet_diagnostic.CS8019.severity = warning
79+
# dotnet_diagnostic.IDE0005.severity = warning
80+
7681
# CA1018: Mark attributes with AttributeUsageAttribute
7782
dotnet_diagnostic.CA1018.severity = warning
7883

@@ -266,4 +271,4 @@ dotnet_diagnostic.CA2016.severity = suggestion
266271
# IDE0055: Fix formatting
267272
dotnet_diagnostic.IDE0055.severity = silent
268273
# IDE0161: Convert to file-scoped namespace
269-
dotnet_diagnostic.IDE0161.severity = silent
274+
dotnet_diagnostic.IDE0161.severity = silent

src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticProject.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Collections.Generic;
5-
using System.IO;
65
using System.Linq;
76
using System.Reflection;
87
using Microsoft.CodeAnalysis;

src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/TestSource.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.IO;
76

87
namespace Microsoft.AspNetCore.Analyzer.Testing;
98

src/Antiforgery/src/AntiforgeryOptions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using Microsoft.AspNetCore.Http;
65

76
namespace Microsoft.AspNetCore.Antiforgery;

src/Antiforgery/src/AntiforgeryServiceCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using Microsoft.AspNetCore.Antiforgery;
65
using Microsoft.Extensions.DependencyInjection.Extensions;
76
using Microsoft.Extensions.ObjectPool;

src/Antiforgery/src/AntiforgeryTokenSet.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
64
namespace Microsoft.AspNetCore.Antiforgery;
75

86
/// <summary>

src/Antiforgery/src/AntiforgeryValidationException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
64
namespace Microsoft.AspNetCore.Antiforgery;
75

86
/// <summary>

src/Antiforgery/src/IAntiforgery.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Threading.Tasks;
54
using Microsoft.AspNetCore.Http;
65

76
namespace Microsoft.AspNetCore.Antiforgery;

src/Antiforgery/src/Internal/AntiforgeryLoggerExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using Microsoft.Extensions.Logging;
65

76
namespace Microsoft.AspNetCore.Antiforgery;

0 commit comments

Comments
 (0)