From ca3ad90ec8f5819c42c3b27ee14985ac46f6aa09 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Tue, 24 Dec 2024 12:30:59 +0900 Subject: [PATCH] chore: Apply code formatting rules (IDE0005) (#10462) chore: apply IDE0005 code formatter rule --- .editorconfig | 2 +- .../FileMetadataPairsConverter.SystemTextJson.cs | 1 - src/Docfx.App/Config/FileMetadataPairsConverter.cs | 5 ----- .../ListWithStringFallbackConverter.SystemTextJson.cs | 2 -- .../Config/ListWithStringFallbackConverter.cs | 3 --- .../Config/MergeJsonConfigConverter.SystemTextJson.cs | 1 - src/Docfx.App/Config/MergeJsonConfigConverter.cs | 3 --- src/Docfx.Build/DocumentBuilder.cs | 1 - src/Docfx.Build/PostProcessors/ExtractSearchIndex.cs | 1 - src/Docfx.Build/SingleDocumentBuilder.cs | 1 - .../TemplateProcessors/TemplateModelTransformer.cs | 1 - src/Docfx.Build/XRefMaps/XRefArchiveBuilder.cs | 1 - src/Docfx.Build/XRefMaps/XRefMapDownloader.cs | 2 -- .../Json/FileMappingConverter.SystemTextJson.cs | 1 - src/Docfx.Common/Json/FileMappingConverter.cs | 3 --- src/Docfx.Common/Json/JsonUtility.cs | 6 ------ .../Json/System.Text.Json/SystemTextJsonUtility.cs | 1 - src/Docfx.Dotnet/DotnetApiCatalog.ApiPage.cs | 1 - src/Docfx.Dotnet/Filters/ConfigFilterRuleItemUnion.cs | 1 - .../ManagedReference/Visitors/SymbolVisitorAdapter.cs | 1 - .../MarkdigExtensionSetting.cs | 1 - ...MarkdigExtensionSettingConverter.SystemTextJson.cs | 2 -- .../QuoteSectionNote/QuoteSectionNoteRender.cs | 1 - .../MarkdownFragmentsValidationTest.cs | 1 - .../MergeMarkdownFragmentsTest.cs | 1 - .../SchemaDrivenProcessorTest.cs | 1 - .../ConceptualDocumentProcessorTest.cs | 1 - test/Docfx.Build.Tests/TemplateManagerUnitTest.cs | 1 - test/Docfx.Build.Tests/TocDocumentProcessorTest.cs | 1 - test/Docfx.Build.Tests/XRefMapDownloaderTest.cs | 1 - test/docfx.Tests/JsonSchemaTest.cs | 1 - .../JsonSerializationTest.BuildJsonConfig.cs | 2 -- .../JsonSerializationTest.DocfxConfig.cs | 2 -- .../JsonSerializationTest.FileMapping.cs | 2 -- .../JsonSerializationTest.FileMetadataPairs.cs | 2 -- .../JsonSerializationTest.ListWithStringFallback.cs | 2 -- .../JsonSerializationTest.Manifest.cs | 4 ---- ...JsonSerializationTest.MarkdownServiceProperties.cs | 4 ---- .../JsonSerializationTest.MergeJsonConfig.cs | 2 -- .../JsonSerializationTest.MetadataJsonConfig.cs | 2 -- .../JsonSerializationTest.XRefMap.cs | 4 ---- .../SerializationTests/JsonSerializationTest.cs | 1 - .../Shared/CustomEqualityEquivalencyStep.cs | 4 ---- .../SerializationTests/TestData/TestData.cs | 3 --- .../YamlSerializationTest.ApiPage.cs | 8 -------- .../YamlSerializationTest.FilterConfig.cs | 6 ------ .../YamlSerializationTest.ManagedReference.cs | 3 --- .../YamlSerializationTest.TocItemViewModel.cs | 2 -- .../YamlSerializationTest.UniversalReference.cs | 3 --- .../YamlSerializationTest.XRefMap.cs | 11 ----------- test/docfx.Tests/Utilities/JsonSchemaUtility.cs | 1 - 51 files changed, 1 insertion(+), 117 deletions(-) diff --git a/.editorconfig b/.editorconfig index f8ad6ea8e56..72172fcbec6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -153,7 +153,7 @@ dotnet_style_namespace_match_folder = true:suggestion # IDE013 dotnet_diagnostic.IDE0001.severity = suggestion # IDE0001: Simplify name dotnet_diagnostic.IDE0002.severity = suggestion # IDE0002: Simplify member access dotnet_diagnostic.IDE0004.severity = suggestion # IDE0004: Remove unnecessary cast -dotnet_diagnostic.IDE0005.severity = suggestion # IDE0005: Remove unnecessary import +dotnet_diagnostic.IDE0005.severity = warning # IDE0005: Remove unnecessary import dotnet_diagnostic.IDE0035.severity = suggestion # IDE0035: Remove unreachable code dotnet_diagnostic.IDE0051.severity = suggestion # IDE0051: Remove unused private member dotnet_diagnostic.IDE0052.severity = suggestion # IDE0052: Remove unread private member diff --git a/src/Docfx.App/Config/FileMetadataPairsConverter.SystemTextJson.cs b/src/Docfx.App/Config/FileMetadataPairsConverter.SystemTextJson.cs index 5d294a0e691..7756e581a4b 100644 --- a/src/Docfx.App/Config/FileMetadataPairsConverter.SystemTextJson.cs +++ b/src/Docfx.App/Config/FileMetadataPairsConverter.SystemTextJson.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; using Docfx.Common; diff --git a/src/Docfx.App/Config/FileMetadataPairsConverter.cs b/src/Docfx.App/Config/FileMetadataPairsConverter.cs index 71dcc5f3458..a982a1a9c28 100644 --- a/src/Docfx.App/Config/FileMetadataPairsConverter.cs +++ b/src/Docfx.App/Config/FileMetadataPairsConverter.cs @@ -1,11 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Docfx.Common; - -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - namespace Docfx; /// diff --git a/src/Docfx.App/Config/ListWithStringFallbackConverter.SystemTextJson.cs b/src/Docfx.App/Config/ListWithStringFallbackConverter.SystemTextJson.cs index 742164a8ffc..1c1ef94d29a 100644 --- a/src/Docfx.App/Config/ListWithStringFallbackConverter.SystemTextJson.cs +++ b/src/Docfx.App/Config/ListWithStringFallbackConverter.SystemTextJson.cs @@ -1,10 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using System.Text.Json; using System.Text.Json.Serialization; -using YamlDotNet.Serialization; namespace Docfx; diff --git a/src/Docfx.App/Config/ListWithStringFallbackConverter.cs b/src/Docfx.App/Config/ListWithStringFallbackConverter.cs index 12188991a86..ea91f6aa239 100644 --- a/src/Docfx.App/Config/ListWithStringFallbackConverter.cs +++ b/src/Docfx.App/Config/ListWithStringFallbackConverter.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - namespace Docfx; diff --git a/src/Docfx.App/Config/MergeJsonConfigConverter.SystemTextJson.cs b/src/Docfx.App/Config/MergeJsonConfigConverter.SystemTextJson.cs index 90ebe522bd1..fcb0825a71a 100644 --- a/src/Docfx.App/Config/MergeJsonConfigConverter.SystemTextJson.cs +++ b/src/Docfx.App/Config/MergeJsonConfigConverter.SystemTextJson.cs @@ -3,7 +3,6 @@ using System.Text.Json; using System.Text.Json.Serialization; -using YamlDotNet.Serialization; namespace Docfx; diff --git a/src/Docfx.App/Config/MergeJsonConfigConverter.cs b/src/Docfx.App/Config/MergeJsonConfigConverter.cs index 64d4e815013..03c9836af2f 100644 --- a/src/Docfx.App/Config/MergeJsonConfigConverter.cs +++ b/src/Docfx.App/Config/MergeJsonConfigConverter.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - namespace Docfx; /// diff --git a/src/Docfx.Build/DocumentBuilder.cs b/src/Docfx.Build/DocumentBuilder.cs index 6b9c3f72813..f2ef6f51204 100644 --- a/src/Docfx.Build/DocumentBuilder.cs +++ b/src/Docfx.Build/DocumentBuilder.cs @@ -9,7 +9,6 @@ using Docfx.Common; using Docfx.MarkdigEngine; using Docfx.Plugins; -using Newtonsoft.Json; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build/PostProcessors/ExtractSearchIndex.cs b/src/Docfx.Build/PostProcessors/ExtractSearchIndex.cs index 34e11fb2d2a..95b236d0e7c 100644 --- a/src/Docfx.Build/PostProcessors/ExtractSearchIndex.cs +++ b/src/Docfx.Build/PostProcessors/ExtractSearchIndex.cs @@ -9,7 +9,6 @@ using Docfx.Common; using Docfx.Plugins; using HtmlAgilityPack; -using Newtonsoft.Json; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build/SingleDocumentBuilder.cs b/src/Docfx.Build/SingleDocumentBuilder.cs index f1cf5ee4aa5..5b973455976 100644 --- a/src/Docfx.Build/SingleDocumentBuilder.cs +++ b/src/Docfx.Build/SingleDocumentBuilder.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; -using System.Threading; using Docfx.Common; using Docfx.Plugins; diff --git a/src/Docfx.Build/TemplateProcessors/TemplateModelTransformer.cs b/src/Docfx.Build/TemplateProcessors/TemplateModelTransformer.cs index 57483f41930..18e41f5560e 100644 --- a/src/Docfx.Build/TemplateProcessors/TemplateModelTransformer.cs +++ b/src/Docfx.Build/TemplateProcessors/TemplateModelTransformer.cs @@ -5,7 +5,6 @@ using Docfx.Common; using Docfx.Plugins; using HtmlAgilityPack; -using Newtonsoft.Json; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build/XRefMaps/XRefArchiveBuilder.cs b/src/Docfx.Build/XRefMaps/XRefArchiveBuilder.cs index 8ad9e3932c4..354e90d6fcc 100644 --- a/src/Docfx.Build/XRefMaps/XRefArchiveBuilder.cs +++ b/src/Docfx.Build/XRefMaps/XRefArchiveBuilder.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Threading; using Docfx.Common; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build/XRefMaps/XRefMapDownloader.cs b/src/Docfx.Build/XRefMaps/XRefMapDownloader.cs index d1bb1ef97c8..340df7e7729 100644 --- a/src/Docfx.Build/XRefMaps/XRefMapDownloader.cs +++ b/src/Docfx.Build/XRefMaps/XRefMapDownloader.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Diagnostics; using System.IO.Compression; using System.Net; using Docfx.Common; diff --git a/src/Docfx.Common/Json/FileMappingConverter.SystemTextJson.cs b/src/Docfx.Common/Json/FileMappingConverter.SystemTextJson.cs index 902f5878ca4..fb7da65e757 100644 --- a/src/Docfx.Common/Json/FileMappingConverter.SystemTextJson.cs +++ b/src/Docfx.Common/Json/FileMappingConverter.SystemTextJson.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Docfx.Common/Json/FileMappingConverter.cs b/src/Docfx.Common/Json/FileMappingConverter.cs index 65a4cd2dbe8..d0e9d03e734 100644 --- a/src/Docfx.Common/Json/FileMappingConverter.cs +++ b/src/Docfx.Common/Json/FileMappingConverter.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - namespace Docfx; internal partial class FileMappingConverter diff --git a/src/Docfx.Common/Json/JsonUtility.cs b/src/Docfx.Common/Json/JsonUtility.cs index b0c4d7ca1ac..de00f591944 100644 --- a/src/Docfx.Common/Json/JsonUtility.cs +++ b/src/Docfx.Common/Json/JsonUtility.cs @@ -1,13 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; -using System.IO; -using System.Reflection.PortableExecutable; -using System.Text.RegularExpressions; -using Docfx.Plugins; using Newtonsoft.Json; -using YamlDotNet.Serialization; namespace Docfx.Common; diff --git a/src/Docfx.Common/Json/System.Text.Json/SystemTextJsonUtility.cs b/src/Docfx.Common/Json/System.Text.Json/SystemTextJsonUtility.cs index e16fa005d79..1b3fd2d2aaa 100644 --- a/src/Docfx.Common/Json/System.Text.Json/SystemTextJsonUtility.cs +++ b/src/Docfx.Common/Json/System.Text.Json/SystemTextJsonUtility.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using System.Text.Encodings.Web; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Docfx.Dotnet/DotnetApiCatalog.ApiPage.cs b/src/Docfx.Dotnet/DotnetApiCatalog.ApiPage.cs index 454c0303c40..bf5e65f2c45 100644 --- a/src/Docfx.Dotnet/DotnetApiCatalog.ApiPage.cs +++ b/src/Docfx.Dotnet/DotnetApiCatalog.ApiPage.cs @@ -10,7 +10,6 @@ using Docfx.Plugins; using HtmlAgilityPack; using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Shared.Extensions; using OneOf; #nullable enable diff --git a/src/Docfx.Dotnet/Filters/ConfigFilterRuleItemUnion.cs b/src/Docfx.Dotnet/Filters/ConfigFilterRuleItemUnion.cs index acb2cc10a92..27b4df73f1b 100644 --- a/src/Docfx.Dotnet/Filters/ConfigFilterRuleItemUnion.cs +++ b/src/Docfx.Dotnet/Filters/ConfigFilterRuleItemUnion.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Text.Json.Serialization; using YamlDotNet.Serialization; namespace Docfx.Dotnet; diff --git a/src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs b/src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs index a81d5a930a1..75e08f64399 100644 --- a/src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs +++ b/src/Docfx.Dotnet/ManagedReference/Visitors/SymbolVisitorAdapter.cs @@ -8,7 +8,6 @@ using Docfx.DataContracts.ManagedReference; using Docfx.Plugins; using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Shared.Extensions; namespace Docfx.Dotnet; diff --git a/src/Docfx.MarkdigEngine.Extensions/MarkdigExtensionSetting.cs b/src/Docfx.MarkdigEngine.Extensions/MarkdigExtensionSetting.cs index 87cf1a0d20a..8872302adc8 100644 --- a/src/Docfx.MarkdigEngine.Extensions/MarkdigExtensionSetting.cs +++ b/src/Docfx.MarkdigEngine.Extensions/MarkdigExtensionSetting.cs @@ -4,7 +4,6 @@ using System.Diagnostics; using System.Text.Json; using System.Text.Json.Nodes; -using System.Text.Json.Serialization; #nullable enable diff --git a/src/Docfx.MarkdigEngine.Extensions/MarkdigExtensionSettingConverter.SystemTextJson.cs b/src/Docfx.MarkdigEngine.Extensions/MarkdigExtensionSettingConverter.SystemTextJson.cs index d2636d8d96e..93f7a1cf69d 100644 --- a/src/Docfx.MarkdigEngine.Extensions/MarkdigExtensionSettingConverter.SystemTextJson.cs +++ b/src/Docfx.MarkdigEngine.Extensions/MarkdigExtensionSettingConverter.SystemTextJson.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; -using System.Text.Json.Nodes; using System.Text.Json.Serialization; -using System.Xml.Linq; namespace Docfx.MarkdigEngine.Extensions; diff --git a/src/Docfx.MarkdigEngine.Extensions/QuoteSectionNote/QuoteSectionNoteRender.cs b/src/Docfx.MarkdigEngine.Extensions/QuoteSectionNote/QuoteSectionNoteRender.cs index b5c19ad5073..da1ee519202 100644 --- a/src/Docfx.MarkdigEngine.Extensions/QuoteSectionNote/QuoteSectionNoteRender.cs +++ b/src/Docfx.MarkdigEngine.Extensions/QuoteSectionNote/QuoteSectionNoteRender.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.ObjectModel; -using System.Diagnostics; using System.Text.RegularExpressions; using System.Web; using Markdig.Renderers; diff --git a/test/Docfx.Build.SchemaDriven.Tests/MarkdownFragmentsValidationTest.cs b/test/Docfx.Build.SchemaDriven.Tests/MarkdownFragmentsValidationTest.cs index a04406a268e..1c1497e016b 100644 --- a/test/Docfx.Build.SchemaDriven.Tests/MarkdownFragmentsValidationTest.cs +++ b/test/Docfx.Build.SchemaDriven.Tests/MarkdownFragmentsValidationTest.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Immutable; using Docfx.Build.Engine; using Docfx.Common; using Docfx.Plugins; diff --git a/test/Docfx.Build.SchemaDriven.Tests/MergeMarkdownFragmentsTest.cs b/test/Docfx.Build.SchemaDriven.Tests/MergeMarkdownFragmentsTest.cs index f82fa591e58..97158492044 100644 --- a/test/Docfx.Build.SchemaDriven.Tests/MergeMarkdownFragmentsTest.cs +++ b/test/Docfx.Build.SchemaDriven.Tests/MergeMarkdownFragmentsTest.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Immutable; using Docfx.Build.Engine; using Docfx.Common; using Docfx.Plugins; diff --git a/test/Docfx.Build.SchemaDriven.Tests/SchemaDrivenProcessorTest.cs b/test/Docfx.Build.SchemaDriven.Tests/SchemaDrivenProcessorTest.cs index 400694d1d06..0337e095193 100644 --- a/test/Docfx.Build.SchemaDriven.Tests/SchemaDrivenProcessorTest.cs +++ b/test/Docfx.Build.SchemaDriven.Tests/SchemaDrivenProcessorTest.cs @@ -3,7 +3,6 @@ using System.Collections.Immutable; using System.Composition; -using System.Text.RegularExpressions; using Docfx.Build.Engine; using Docfx.Common; diff --git a/test/Docfx.Build.Tests/ConceptualDocumentProcessorTest.cs b/test/Docfx.Build.Tests/ConceptualDocumentProcessorTest.cs index 4d4c7961e93..4bcb39a5f4e 100644 --- a/test/Docfx.Build.Tests/ConceptualDocumentProcessorTest.cs +++ b/test/Docfx.Build.Tests/ConceptualDocumentProcessorTest.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; -using System.Reflection; using System.Web; using Docfx.Build.Engine; using Docfx.Common; diff --git a/test/Docfx.Build.Tests/TemplateManagerUnitTest.cs b/test/Docfx.Build.Tests/TemplateManagerUnitTest.cs index 2a72b1c83a0..22c766f0612 100644 --- a/test/Docfx.Build.Tests/TemplateManagerUnitTest.cs +++ b/test/Docfx.Build.Tests/TemplateManagerUnitTest.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Docfx.Common; using Docfx.Plugins; using Docfx.Tests.Common; diff --git a/test/Docfx.Build.Tests/TocDocumentProcessorTest.cs b/test/Docfx.Build.Tests/TocDocumentProcessorTest.cs index 6b2dbc2ca47..6b00e80586c 100644 --- a/test/Docfx.Build.Tests/TocDocumentProcessorTest.cs +++ b/test/Docfx.Build.Tests/TocDocumentProcessorTest.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; -using System.Reflection; using System.Web; using Docfx.Build.Engine; using Docfx.Common; diff --git a/test/Docfx.Build.Tests/XRefMapDownloaderTest.cs b/test/Docfx.Build.Tests/XRefMapDownloaderTest.cs index b3557df9c27..04f21141a85 100644 --- a/test/Docfx.Build.Tests/XRefMapDownloaderTest.cs +++ b/test/Docfx.Build.Tests/XRefMapDownloaderTest.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Net; using FluentAssertions; using Xunit; diff --git a/test/docfx.Tests/JsonSchemaTest.cs b/test/docfx.Tests/JsonSchemaTest.cs index aeed970aa31..fc4e24847a5 100644 --- a/test/docfx.Tests/JsonSchemaTest.cs +++ b/test/docfx.Tests/JsonSchemaTest.cs @@ -6,7 +6,6 @@ using Docfx.DataContracts.Common; using Docfx.Tests.Common; using FluentAssertions; -using Json.Schema; using Xunit.Abstractions; using YamlDotNet.Serialization; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.BuildJsonConfig.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.BuildJsonConfig.cs index 16c4599c03a..f479f417ecc 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.BuildJsonConfig.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.BuildJsonConfig.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Docfx; -using Docfx.Common; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.DocfxConfig.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.DocfxConfig.cs index 50473ad2ab3..4cdc1bcd705 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.DocfxConfig.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.DocfxConfig.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Docfx; -using Docfx.Common; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.FileMapping.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.FileMapping.cs index 488be5c6d49..7b68bee9566 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.FileMapping.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.FileMapping.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Docfx; -using Docfx.Common; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.FileMetadataPairs.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.FileMetadataPairs.cs index 4a026e26a87..496b86868af 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.FileMetadataPairs.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.FileMetadataPairs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Docfx; -using Docfx.Common; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.ListWithStringFallback.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.ListWithStringFallback.cs index f7557fe6429..05bf661d959 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.ListWithStringFallback.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.ListWithStringFallback.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Docfx; -using Docfx.Common; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.Manifest.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.Manifest.cs index 0784927eb9c..8c425f89b9a 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.Manifest.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.Manifest.cs @@ -1,11 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Docfx; -using Docfx.Common; using Docfx.Plugins; -using FluentAssertions; -using YamlDotNet.Core.Tokens; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.MarkdownServiceProperties.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.MarkdownServiceProperties.cs index 51546b4c973..8e4c693a560 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.MarkdownServiceProperties.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.MarkdownServiceProperties.cs @@ -1,10 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Text.Json; -using Docfx; -using Docfx.Common; -using Docfx.MarkdigEngine.Extensions; using Docfx.Plugins; using FluentAssertions; using Markdig.Extensions.MediaLinks; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.MergeJsonConfig.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.MergeJsonConfig.cs index 0d5617f01a1..0abb22f8dee 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.MergeJsonConfig.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.MergeJsonConfig.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Docfx; -using Docfx.Common; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.MetadataJsonConfig.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.MetadataJsonConfig.cs index 6308a02daa9..e1eff91f639 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.MetadataJsonConfig.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.MetadataJsonConfig.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Docfx; -using Docfx.Common; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.XRefMap.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.XRefMap.cs index 24679084df3..ccf7f032eaa 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.XRefMap.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.XRefMap.cs @@ -1,11 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Docfx; using Docfx.Build.Engine; -using Docfx.Common; -using Docfx.Plugins; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/JsonSerializationTest.cs b/test/docfx.Tests/SerializationTests/JsonSerializationTest.cs index 8acf7ad79d7..b751e20b36a 100644 --- a/test/docfx.Tests/SerializationTests/JsonSerializationTest.cs +++ b/test/docfx.Tests/SerializationTests/JsonSerializationTest.cs @@ -5,7 +5,6 @@ using Docfx.Common; using FluentAssertions; using FluentAssertions.Equivalency; -using FluentAssertions.Equivalency.Tracing; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/Shared/CustomEqualityEquivalencyStep.cs b/test/docfx.Tests/SerializationTests/Shared/CustomEqualityEquivalencyStep.cs index e8266a0d3d5..1a1b2380c34 100644 --- a/test/docfx.Tests/SerializationTests/Shared/CustomEqualityEquivalencyStep.cs +++ b/test/docfx.Tests/SerializationTests/Shared/CustomEqualityEquivalencyStep.cs @@ -1,10 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Diagnostics; -using System.Globalization; -using Docfx.Common; -using FluentAssertions; using FluentAssertions.Equivalency; using Newtonsoft.Json.Linq; diff --git a/test/docfx.Tests/SerializationTests/TestData/TestData.cs b/test/docfx.Tests/SerializationTests/TestData/TestData.cs index bf75bddbac3..30b08de0366 100644 --- a/test/docfx.Tests/SerializationTests/TestData/TestData.cs +++ b/test/docfx.Tests/SerializationTests/TestData/TestData.cs @@ -1,12 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Diagnostics; -using System.Text.Json; using Docfx.Build.ApiPage; using Docfx.Common; using Docfx.Tests; -using YamlDotNet.Serialization; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/YamlSerializationTest.ApiPage.cs b/test/docfx.Tests/SerializationTests/YamlSerializationTest.ApiPage.cs index c0db0066478..f78caa12072 100644 --- a/test/docfx.Tests/SerializationTests/YamlSerializationTest.ApiPage.cs +++ b/test/docfx.Tests/SerializationTests/YamlSerializationTest.ApiPage.cs @@ -1,19 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Diagnostics; -using System.IO; -using System.Net; -using System.Runtime.CompilerServices; using System.Text.Json; using Docfx.Build.ApiPage; -using Docfx.Build.ManagedReference; using Docfx.Common; -using Docfx.DataContracts.ManagedReference; using Docfx.Tests; using FluentAssertions; -using Microsoft.Playwright; -using OneOf; using YamlDotNet.Serialization; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/YamlSerializationTest.FilterConfig.cs b/test/docfx.Tests/SerializationTests/YamlSerializationTest.FilterConfig.cs index 01654be228b..5385f8d5092 100644 --- a/test/docfx.Tests/SerializationTests/YamlSerializationTest.FilterConfig.cs +++ b/test/docfx.Tests/SerializationTests/YamlSerializationTest.FilterConfig.cs @@ -1,13 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; -using Docfx; -using Docfx.Build.Engine; -using Docfx.Common; using Docfx.Dotnet; -using Docfx.Plugins; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/YamlSerializationTest.ManagedReference.cs b/test/docfx.Tests/SerializationTests/YamlSerializationTest.ManagedReference.cs index 3012c8a890f..505598ef3fe 100644 --- a/test/docfx.Tests/SerializationTests/YamlSerializationTest.ManagedReference.cs +++ b/test/docfx.Tests/SerializationTests/YamlSerializationTest.ManagedReference.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Diagnostics; -using System.Runtime.CompilerServices; using Docfx.DataContracts.ManagedReference; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/YamlSerializationTest.TocItemViewModel.cs b/test/docfx.Tests/SerializationTests/YamlSerializationTest.TocItemViewModel.cs index ac3d4b47bfa..b4486079209 100644 --- a/test/docfx.Tests/SerializationTests/YamlSerializationTest.TocItemViewModel.cs +++ b/test/docfx.Tests/SerializationTests/YamlSerializationTest.TocItemViewModel.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Docfx.Build.ApiPage; using Docfx.DataContracts.Common; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/YamlSerializationTest.UniversalReference.cs b/test/docfx.Tests/SerializationTests/YamlSerializationTest.UniversalReference.cs index 2920741e685..15eaf1a2d99 100644 --- a/test/docfx.Tests/SerializationTests/YamlSerializationTest.UniversalReference.cs +++ b/test/docfx.Tests/SerializationTests/YamlSerializationTest.UniversalReference.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Diagnostics; -using System.Runtime.CompilerServices; using Docfx.DataContracts.UniversalReference; -using FluentAssertions; namespace docfx.Tests; diff --git a/test/docfx.Tests/SerializationTests/YamlSerializationTest.XRefMap.cs b/test/docfx.Tests/SerializationTests/YamlSerializationTest.XRefMap.cs index 68bc961a423..9d512152db9 100644 --- a/test/docfx.Tests/SerializationTests/YamlSerializationTest.XRefMap.cs +++ b/test/docfx.Tests/SerializationTests/YamlSerializationTest.XRefMap.cs @@ -1,18 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Diagnostics; -using System.Reflection; -using System.Runtime.CompilerServices; -using Docfx.Build.ApiPage; using Docfx.Build.Engine; -using Docfx.Build.ManagedReference; -using Docfx.DataContracts.ManagedReference; -using Docfx.Plugins; -using FluentAssertions; -using Microsoft.AspNetCore.Mvc; -using Microsoft.CodeAnalysis; -using Xunit.Sdk; namespace docfx.Tests; diff --git a/test/docfx.Tests/Utilities/JsonSchemaUtility.cs b/test/docfx.Tests/Utilities/JsonSchemaUtility.cs index 0d12c1e2063..a66581cafcc 100644 --- a/test/docfx.Tests/Utilities/JsonSchemaUtility.cs +++ b/test/docfx.Tests/Utilities/JsonSchemaUtility.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Text; using System.Text.Json; using Json.Schema;