Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav K <prkrishn@hotmail.com>2022-01-04 00:26:26 +0300
committerGitHub <noreply@github.com>2022-01-04 00:26:26 +0300
commit667f0685b56adc1586464a200766e9b172ad06af (patch)
tree9b06a1668b59558020865e7c0374e40c9af96cca /.editorconfig
parentc41741805eadf18986a4182f7fe7fd137318f691 (diff)
Enforce warnings for unused usings (#39280)
* Enforce warnings for unused usings Contributes to https://github.com/dotnet/aspnetcore/issues/24055
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig11
1 files changed, 7 insertions, 4 deletions
diff --git a/.editorconfig b/.editorconfig
index 2d3c2cb026..662cf391ad 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -74,10 +74,6 @@ charset = utf-8-bom
[*.{cs,vb}]
-# CS8019: Remove unnecessary usings
-# dotnet_diagnostic.CS8019.severity = warning
-# dotnet_diagnostic.IDE0005.severity = warning
-
# CA1018: Mark attributes with AttributeUsageAttribute
dotnet_diagnostic.CA1018.severity = warning
@@ -199,6 +195,9 @@ dotnet_diagnostic.CA2200.severity = warning
# CA2208: Instantiate argument exceptions correctly
dotnet_diagnostic.CA2208.severity = warning
+# IDE0005: Remove unnecessary usings
+dotnet_diagnostic.IDE0005.severity = warning
+
# IDE0035: Remove unreachable code
dotnet_diagnostic.IDE0035.severity = warning
@@ -272,3 +271,7 @@ dotnet_diagnostic.CA2016.severity = suggestion
dotnet_diagnostic.IDE0055.severity = silent
# IDE0161: Convert to file-scoped namespace
dotnet_diagnostic.IDE0161.severity = silent
+
+[{**/Shared/**.cs,**/microsoft.extensions.hostfactoryresolver.sources/**.{cs,vb}}]
+# IDE0005: Remove unused usings. Ignore for shared src files since imports for those depend on the projects in which they are included.
+dotnet_diagnostic.IDE0005.severity = silent