From 0a5216c0fc15d3ccd4c1a66b7f595540db0bf81a Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Sat, 29 Jul 2023 11:35:28 +0900 Subject: [PATCH] chore: Fix code formatting (#9025) chore: fix code formatting --- .editorconfig | 2 +- src/Docfx.App/RunServe.cs | 4 ++-- src/Docfx.Build.Common/YamlHtmlPart.cs | 4 +--- src/Docfx.Build.ConceptualDocuments/CountWord.cs | 4 +--- src/Docfx.Build.Engine/DocumentBuildParameters.cs | 3 +-- src/Docfx.Build.Engine/MarkupResultUtility.cs | 2 +- .../PostProcessors/ExtractSearchIndex.cs | 2 +- .../PostProcessors/HtmlDocumentHandler.cs | 2 +- .../PostProcessors/HtmlPostProcessor.cs | 4 +--- .../PostProcessors/IHtmlDocumentHandler.cs | 3 +-- src/Docfx.Build.Engine/PostProcessors/RemoveDebugInfo.cs | 3 +-- .../PostProcessors/ValidateBookmark.cs | 4 +--- .../Preprocessors/PreprocessorWithResourcePool.cs | 2 +- .../Preprocessors/TemplateJintPreprocessor.cs | 2 +- .../TemplateProcessors/TemplateModelTransformer.cs | 4 +--- src/Docfx.Build.Engine/XrefDetails.cs | 2 +- .../OverwriteDocumentModelCreator.cs | 3 +-- .../Rules/YamlCodeBlockRule.cs | 2 +- src/Docfx.Build.SchemaDriven/Models/DocumentSchema.cs | 2 +- .../Processors/FragmentsValidationInterpreter.cs | 3 +-- .../Processors/MarkdownAstInterpreter.cs | 2 +- src/Docfx.Build.SchemaDriven/SchemaFragmentsIterator.cs | 3 +-- .../Validators/SchemaValidator.cs | 2 +- src/Docfx.Dotnet/CompilationHelper.cs | 5 ++--- src/Docfx.Dotnet/DotnetApiCatalog.cs | 2 +- .../ExtractMetadata/ExtractMetadataWorker.cs | 9 +++------ src/Docfx.Dotnet/Parsers/XmlComment.cs | 6 +++--- src/Docfx.Dotnet/SymbolFormatter.Syntax.cs | 3 +-- src/Docfx.Dotnet/SymbolFormatter.cs | 3 +-- src/Docfx.Dotnet/SymbolUrlResolver.SourceLink.cs | 4 ++-- src/Docfx.Dotnet/Visitors/SymbolVisitorAdapter.cs | 5 ++--- src/Docfx.Dotnet/Visitors/VisitorHelper.cs | 4 +--- src/Docfx.Dotnet/Visitors/YamlModelGenerator.cs | 2 +- .../Transformer/AbsolutePathInTocPageFileTransformer.cs | 3 +-- src/Docfx.HtmlToPdf/Transformer/FrameTransformer.cs | 3 +-- .../Transformer/HtmlNotInTocTransformer.cs | 3 +-- .../Transformer/RemoveQueryStringTransformer.cs | 3 +-- .../TabGroup/TabGroupIdRewriter.cs | 2 +- .../TripleColon/ChromelessFormExtension.cs | 2 +- .../TripleColon/ImageExtension.cs | 8 ++++---- .../TripleColon/TripleColonBlock.cs | 2 +- .../TripleColon/TripleColonBlockParser.cs | 2 +- .../TripleColon/TripleColonBlockRenderer.cs | 2 +- .../TripleColon/TripleColonExtension.cs | 4 ++-- .../TripleColon/TripleColonInline.cs | 2 +- .../TripleColon/TripleColonInlineParser.cs | 2 +- .../TripleColon/TripleColonInlineRenderer.cs | 2 +- .../TripleColon/VideoExtension.cs | 2 +- .../TripleColon/ZoneExtension.cs | 2 +- src/Docfx.MarkdigEngine/MarkdigMarkdownService.cs | 6 +++--- src/Docfx.MarkdigEngine/MarkdigServiceProvider.cs | 2 +- src/Docfx.MarkdigEngine/YamlHeader/YamlHeaderRenderer.cs | 3 +-- .../ExtractSearchIndexFromHtmlTest.cs | 2 +- test/Docfx.Build.Engine.Tests/JintProcessorHelperTest.cs | 3 +-- .../OverwriteDocumentModelCreatorTest.cs | 6 ++---- .../Docfx.Dotnet.Tests/GenerateMetadataFromCSUnitTest.cs | 2 +- .../Docfx.Dotnet.Tests/GenerateMetadataFromVBUnitTest.cs | 2 +- .../AggregatorTest.cs | 2 +- test/Docfx.MarkdigEngine.Extensions.Tests/ImageTest.cs | 2 +- test/Docfx.MarkdigEngine.Extensions.Tests/TestUtility.cs | 2 +- test/Docfx.MarkdigEngine.Tests/InclusionTest.cs | 3 +-- test/Docfx.MarkdigEngine.Tests/MarkdigServiceTest.cs | 3 +-- test/docfx.Snapshot.Tests/SamplesTest.cs | 6 +++--- test/docfx.Tests/CompositeCommandTest.cs | 2 +- test/docfx.Tests/DocsetPdfTest.cs | 3 +-- 65 files changed, 82 insertions(+), 118 deletions(-) diff --git a/.editorconfig b/.editorconfig index d8c4dc4e5f8..bea43e142f4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -206,7 +206,7 @@ csharp_space_between_parentheses = false csharp_space_before_colon_in_inheritance_clause = true csharp_space_after_colon_in_inheritance_clause = true csharp_space_around_binary_operators = before_and_after -csharp_space_between_method_declaration_parameter_list_parentheses = true +csharp_space_between_method_declaration_parameter_list_parentheses = false csharp_space_between_method_declaration_empty_parameter_list_parentheses = false csharp_space_between_method_declaration_name_and_open_parenthesis = false csharp_space_between_method_call_parameter_list_parentheses = false diff --git a/src/Docfx.App/RunServe.cs b/src/Docfx.App/RunServe.cs index 5ade132bcf4..e1de1163e14 100644 --- a/src/Docfx.App/RunServe.cs +++ b/src/Docfx.App/RunServe.cs @@ -3,13 +3,13 @@ using System.Diagnostics; using System.Runtime.InteropServices; +using Docfx.Common; +using Docfx.Plugins; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Docfx.Common; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -using Docfx.Plugins; namespace Docfx; diff --git a/src/Docfx.Build.Common/YamlHtmlPart.cs b/src/Docfx.Build.Common/YamlHtmlPart.cs index cff4515a8a9..cfc5d680e56 100644 --- a/src/Docfx.Build.Common/YamlHtmlPart.cs +++ b/src/Docfx.Build.Common/YamlHtmlPart.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; - -using HtmlAgilityPack; - using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.Common; diff --git a/src/Docfx.Build.ConceptualDocuments/CountWord.cs b/src/Docfx.Build.ConceptualDocuments/CountWord.cs index 5564110f915..16bf8e62cb1 100644 --- a/src/Docfx.Build.ConceptualDocuments/CountWord.cs +++ b/src/Docfx.Build.ConceptualDocuments/CountWord.cs @@ -3,12 +3,10 @@ using System.Collections.Immutable; using System.Composition; - -using HtmlAgilityPack; - using Docfx.Build.Common; using Docfx.DataContracts.Common; using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.ConceptualDocuments; diff --git a/src/Docfx.Build.Engine/DocumentBuildParameters.cs b/src/Docfx.Build.Engine/DocumentBuildParameters.cs index 243669b0c2d..939c92880e6 100644 --- a/src/Docfx.Build.Engine/DocumentBuildParameters.cs +++ b/src/Docfx.Build.Engine/DocumentBuildParameters.cs @@ -2,10 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; -using Markdig; using Docfx.Common; using Docfx.Plugins; - +using Markdig; using Newtonsoft.Json.Linq; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/MarkupResultUtility.cs b/src/Docfx.Build.Engine/MarkupResultUtility.cs index 0714da96317..9e7ac4c67fc 100644 --- a/src/Docfx.Build.Engine/MarkupResultUtility.cs +++ b/src/Docfx.Build.Engine/MarkupResultUtility.cs @@ -3,9 +3,9 @@ using System.Collections.Immutable; using System.Net; -using HtmlAgilityPack; using Docfx.Common; using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/PostProcessors/ExtractSearchIndex.cs b/src/Docfx.Build.Engine/PostProcessors/ExtractSearchIndex.cs index dc3951211b2..067f3ad29a7 100644 --- a/src/Docfx.Build.Engine/PostProcessors/ExtractSearchIndex.cs +++ b/src/Docfx.Build.Engine/PostProcessors/ExtractSearchIndex.cs @@ -6,9 +6,9 @@ using System.Net; using System.Text; using System.Text.RegularExpressions; -using HtmlAgilityPack; using Docfx.Common; using Docfx.Plugins; +using HtmlAgilityPack; using Newtonsoft.Json; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/PostProcessors/HtmlDocumentHandler.cs b/src/Docfx.Build.Engine/PostProcessors/HtmlDocumentHandler.cs index 1d577722968..e7992c45a95 100644 --- a/src/Docfx.Build.Engine/PostProcessors/HtmlDocumentHandler.cs +++ b/src/Docfx.Build.Engine/PostProcessors/HtmlDocumentHandler.cs @@ -1,9 +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 HtmlAgilityPack; using Docfx.Common; using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/PostProcessors/HtmlPostProcessor.cs b/src/Docfx.Build.Engine/PostProcessors/HtmlPostProcessor.cs index fdf1e9a78e4..cd3f0f5bcb4 100644 --- a/src/Docfx.Build.Engine/PostProcessors/HtmlPostProcessor.cs +++ b/src/Docfx.Build.Engine/PostProcessors/HtmlPostProcessor.cs @@ -3,11 +3,9 @@ using System.Collections.Immutable; using System.Text; - -using HtmlAgilityPack; - using Docfx.Common; using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/PostProcessors/IHtmlDocumentHandler.cs b/src/Docfx.Build.Engine/PostProcessors/IHtmlDocumentHandler.cs index ba1feab167e..bc0eb609f09 100644 --- a/src/Docfx.Build.Engine/PostProcessors/IHtmlDocumentHandler.cs +++ b/src/Docfx.Build.Engine/PostProcessors/IHtmlDocumentHandler.cs @@ -1,9 +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 HtmlAgilityPack; - using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/PostProcessors/RemoveDebugInfo.cs b/src/Docfx.Build.Engine/PostProcessors/RemoveDebugInfo.cs index e8caef3f258..aacdd9ef0bf 100644 --- a/src/Docfx.Build.Engine/PostProcessors/RemoveDebugInfo.cs +++ b/src/Docfx.Build.Engine/PostProcessors/RemoveDebugInfo.cs @@ -1,9 +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 HtmlAgilityPack; - using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/PostProcessors/ValidateBookmark.cs b/src/Docfx.Build.Engine/PostProcessors/ValidateBookmark.cs index 7e4af36578e..c79d3654f9f 100644 --- a/src/Docfx.Build.Engine/PostProcessors/ValidateBookmark.cs +++ b/src/Docfx.Build.Engine/PostProcessors/ValidateBookmark.cs @@ -3,11 +3,9 @@ using System.Net; using System.Web; - -using HtmlAgilityPack; - using Docfx.Common; using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/TemplateProcessors/Preprocessors/PreprocessorWithResourcePool.cs b/src/Docfx.Build.Engine/TemplateProcessors/Preprocessors/PreprocessorWithResourcePool.cs index b5e9dbb0ed5..03ecc99638b 100644 --- a/src/Docfx.Build.Engine/TemplateProcessors/Preprocessors/PreprocessorWithResourcePool.cs +++ b/src/Docfx.Build.Engine/TemplateProcessors/Preprocessors/PreprocessorWithResourcePool.cs @@ -1,8 +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 Esprima; using Docfx.Common; +using Esprima; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/TemplateProcessors/Preprocessors/TemplateJintPreprocessor.cs b/src/Docfx.Build.Engine/TemplateProcessors/Preprocessors/TemplateJintPreprocessor.cs index b5f582d2ac6..25a110466b2 100644 --- a/src/Docfx.Build.Engine/TemplateProcessors/Preprocessors/TemplateJintPreprocessor.cs +++ b/src/Docfx.Build.Engine/TemplateProcessors/Preprocessors/TemplateJintPreprocessor.cs @@ -1,11 +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 Docfx.Common; using Jint; using Jint.Native; using Jint.Native.Function; using Jint.Native.Object; -using Docfx.Common; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/TemplateProcessors/TemplateModelTransformer.cs b/src/Docfx.Build.Engine/TemplateProcessors/TemplateModelTransformer.cs index bc1445f2ddb..1a5d2b7822d 100644 --- a/src/Docfx.Build.Engine/TemplateProcessors/TemplateModelTransformer.cs +++ b/src/Docfx.Build.Engine/TemplateProcessors/TemplateModelTransformer.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Web; - -using HtmlAgilityPack; - using Docfx.Common; using Docfx.Plugins; +using HtmlAgilityPack; using Newtonsoft.Json; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.Engine/XrefDetails.cs b/src/Docfx.Build.Engine/XrefDetails.cs index abef0995c4a..af0b9725c33 100644 --- a/src/Docfx.Build.Engine/XrefDetails.cs +++ b/src/Docfx.Build.Engine/XrefDetails.cs @@ -4,9 +4,9 @@ using System.Collections.Specialized; using System.Net; using System.Web; -using HtmlAgilityPack; using Docfx.Common; using Docfx.Plugins; +using HtmlAgilityPack; namespace Docfx.Build.Engine; diff --git a/src/Docfx.Build.OverwriteDocuments/OverwriteDocumentModelCreator.cs b/src/Docfx.Build.OverwriteDocuments/OverwriteDocumentModelCreator.cs index c0a24e17559..ffd603cda9f 100644 --- a/src/Docfx.Build.OverwriteDocuments/OverwriteDocumentModelCreator.cs +++ b/src/Docfx.Build.OverwriteDocuments/OverwriteDocumentModelCreator.cs @@ -1,10 +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 Markdig.Syntax; - using Docfx.Build.Common; using Docfx.Common; +using Markdig.Syntax; namespace Docfx.Build.OverwriteDocuments; diff --git a/src/Docfx.Build.OverwriteDocuments/Rules/YamlCodeBlockRule.cs b/src/Docfx.Build.OverwriteDocuments/Rules/YamlCodeBlockRule.cs index f70475763bd..a54c62a8d3b 100644 --- a/src/Docfx.Build.OverwriteDocuments/Rules/YamlCodeBlockRule.cs +++ b/src/Docfx.Build.OverwriteDocuments/Rules/YamlCodeBlockRule.cs @@ -1,8 +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 Markdig.Syntax; using Docfx.Common; +using Markdig.Syntax; namespace Docfx.Build.OverwriteDocuments; diff --git a/src/Docfx.Build.SchemaDriven/Models/DocumentSchema.cs b/src/Docfx.Build.SchemaDriven/Models/DocumentSchema.cs index 111fd5ef465..6295f55423e 100644 --- a/src/Docfx.Build.SchemaDriven/Models/DocumentSchema.cs +++ b/src/Docfx.Build.SchemaDriven/Models/DocumentSchema.cs @@ -3,9 +3,9 @@ using System.Text.Json; using System.Text.Json.Serialization; -using Json.Schema; using Docfx.Common; using Docfx.Exceptions; +using Json.Schema; namespace Docfx.Build.SchemaDriven; diff --git a/src/Docfx.Build.SchemaDriven/Processors/FragmentsValidationInterpreter.cs b/src/Docfx.Build.SchemaDriven/Processors/FragmentsValidationInterpreter.cs index b2a4310a2ed..f1b356e04e7 100644 --- a/src/Docfx.Build.SchemaDriven/Processors/FragmentsValidationInterpreter.cs +++ b/src/Docfx.Build.SchemaDriven/Processors/FragmentsValidationInterpreter.cs @@ -1,10 +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 Markdig.Syntax; - using Docfx.Build.OverwriteDocuments; using Docfx.Common; +using Markdig.Syntax; namespace Docfx.Build.SchemaDriven.Processors; diff --git a/src/Docfx.Build.SchemaDriven/Processors/MarkdownAstInterpreter.cs b/src/Docfx.Build.SchemaDriven/Processors/MarkdownAstInterpreter.cs index 678521c535a..a59cabc612a 100644 --- a/src/Docfx.Build.SchemaDriven/Processors/MarkdownAstInterpreter.cs +++ b/src/Docfx.Build.SchemaDriven/Processors/MarkdownAstInterpreter.cs @@ -1,8 +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 Markdig.Syntax; using Docfx.Common; +using Markdig.Syntax; namespace Docfx.Build.SchemaDriven.Processors; diff --git a/src/Docfx.Build.SchemaDriven/SchemaFragmentsIterator.cs b/src/Docfx.Build.SchemaDriven/SchemaFragmentsIterator.cs index c672a7f5e52..7b63a25b848 100644 --- a/src/Docfx.Build.SchemaDriven/SchemaFragmentsIterator.cs +++ b/src/Docfx.Build.SchemaDriven/SchemaFragmentsIterator.cs @@ -1,10 +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 Json.Schema; using Docfx.Build.OverwriteDocuments; using Docfx.Common; - +using Json.Schema; using YamlDotNet.RepresentationModel; namespace Docfx.Build.SchemaDriven; diff --git a/src/Docfx.Build.SchemaDriven/Validators/SchemaValidator.cs b/src/Docfx.Build.SchemaDriven/Validators/SchemaValidator.cs index cd77fc1c4b5..cc1d21a0f68 100644 --- a/src/Docfx.Build.SchemaDriven/Validators/SchemaValidator.cs +++ b/src/Docfx.Build.SchemaDriven/Validators/SchemaValidator.cs @@ -2,8 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; -using Json.Schema; using Docfx.Common; +using Json.Schema; namespace Docfx.Build.SchemaDriven; diff --git a/src/Docfx.Dotnet/CompilationHelper.cs b/src/Docfx.Dotnet/CompilationHelper.cs index 4cfeeca0a4e..f688a6344e1 100644 --- a/src/Docfx.Dotnet/CompilationHelper.cs +++ b/src/Docfx.Dotnet/CompilationHelper.cs @@ -1,11 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using ICSharpCode.Decompiler.Metadata; -using Microsoft.CodeAnalysis; using Docfx.Common; using Docfx.Exceptions; - +using ICSharpCode.Decompiler.Metadata; +using Microsoft.CodeAnalysis; using CS = Microsoft.CodeAnalysis.CSharp; using VB = Microsoft.CodeAnalysis.VisualBasic; diff --git a/src/Docfx.Dotnet/DotnetApiCatalog.cs b/src/Docfx.Dotnet/DotnetApiCatalog.cs index 1e638fd76f6..0dc13a574dc 100644 --- a/src/Docfx.Dotnet/DotnetApiCatalog.cs +++ b/src/Docfx.Dotnet/DotnetApiCatalog.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Microsoft.Build.Locator; using Docfx.Common; using Docfx.Exceptions; using Docfx.Plugins; +using Microsoft.Build.Locator; using Newtonsoft.Json.Linq; namespace Docfx.Dotnet; diff --git a/src/Docfx.Dotnet/ExtractMetadata/ExtractMetadataWorker.cs b/src/Docfx.Dotnet/ExtractMetadata/ExtractMetadataWorker.cs index 85341681ccc..0d9631c5c16 100644 --- a/src/Docfx.Dotnet/ExtractMetadata/ExtractMetadataWorker.cs +++ b/src/Docfx.Dotnet/ExtractMetadata/ExtractMetadataWorker.cs @@ -2,18 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; - +using Docfx.Common; +using Docfx.DataContracts.Common; +using Docfx.DataContracts.ManagedReference; using Microsoft.Build.Construction; using Microsoft.Build.Framework; using Microsoft.Build.Logging; - using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.MSBuild; -using Docfx.Common; -using Docfx.DataContracts.Common; -using Docfx.DataContracts.ManagedReference; - namespace Docfx.Dotnet; internal class ExtractMetadataWorker : IDisposable diff --git a/src/Docfx.Dotnet/Parsers/XmlComment.cs b/src/Docfx.Dotnet/Parsers/XmlComment.cs index b05360bf453..a3359a89e9e 100644 --- a/src/Docfx.Dotnet/Parsers/XmlComment.cs +++ b/src/Docfx.Dotnet/Parsers/XmlComment.cs @@ -7,14 +7,14 @@ using System.Xml; using System.Xml.Linq; using System.Xml.XPath; +using Docfx.Common; +using Docfx.DataContracts.ManagedReference; +using Docfx.Plugins; using Markdig; using Markdig.Helpers; using Markdig.Renderers.Roundtrip; using Markdig.Syntax; using Markdig.Syntax.Inlines; -using Docfx.Common; -using Docfx.DataContracts.ManagedReference; -using Docfx.Plugins; namespace Docfx.Dotnet; diff --git a/src/Docfx.Dotnet/SymbolFormatter.Syntax.cs b/src/Docfx.Dotnet/SymbolFormatter.Syntax.cs index ba36d7f6321..0a11c5ce784 100644 --- a/src/Docfx.Dotnet/SymbolFormatter.Syntax.cs +++ b/src/Docfx.Dotnet/SymbolFormatter.Syntax.cs @@ -1,7 +1,6 @@ using System.Collections.Immutable; -using Microsoft.CodeAnalysis; using Docfx.DataContracts.ManagedReference; - +using Microsoft.CodeAnalysis; using CS = Microsoft.CodeAnalysis.CSharp; using VB = Microsoft.CodeAnalysis.VisualBasic; diff --git a/src/Docfx.Dotnet/SymbolFormatter.cs b/src/Docfx.Dotnet/SymbolFormatter.cs index ea88f2cbc98..2ca5a487f4d 100644 --- a/src/Docfx.Dotnet/SymbolFormatter.cs +++ b/src/Docfx.Dotnet/SymbolFormatter.cs @@ -1,7 +1,6 @@ using System.Collections.Immutable; -using Microsoft.CodeAnalysis; using Docfx.DataContracts.ManagedReference; - +using Microsoft.CodeAnalysis; using CS = Microsoft.CodeAnalysis.CSharp; using VB = Microsoft.CodeAnalysis.VisualBasic; diff --git a/src/Docfx.Dotnet/SymbolUrlResolver.SourceLink.cs b/src/Docfx.Dotnet/SymbolUrlResolver.SourceLink.cs index 31f1ba05c11..a5b9ebbdb68 100644 --- a/src/Docfx.Dotnet/SymbolUrlResolver.SourceLink.cs +++ b/src/Docfx.Dotnet/SymbolUrlResolver.SourceLink.cs @@ -2,11 +2,11 @@ using System.Reflection.Metadata.Ecma335; using System.Reflection.PortableExecutable; using System.Runtime.CompilerServices; +using Docfx.Common; +using Docfx.Common.Git; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.PdbSourceDocument; -using Docfx.Common; -using Docfx.Common.Git; using Microsoft.SourceLink.Tools; #nullable enable diff --git a/src/Docfx.Dotnet/Visitors/SymbolVisitorAdapter.cs b/src/Docfx.Dotnet/Visitors/SymbolVisitorAdapter.cs index 0965bdb0a40..c7508c4c968 100644 --- a/src/Docfx.Dotnet/Visitors/SymbolVisitorAdapter.cs +++ b/src/Docfx.Dotnet/Visitors/SymbolVisitorAdapter.cs @@ -4,13 +4,12 @@ using System.Collections.Immutable; using System.Diagnostics; using System.Text.RegularExpressions; - -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Shared.Extensions; using Docfx.Common; using Docfx.DataContracts.ManagedReference; using Docfx.Exceptions; using Docfx.Plugins; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.Shared.Extensions; namespace Docfx.Dotnet; diff --git a/src/Docfx.Dotnet/Visitors/VisitorHelper.cs b/src/Docfx.Dotnet/Visitors/VisitorHelper.cs index c4267e5ebe4..5c66063f01b 100644 --- a/src/Docfx.Dotnet/Visitors/VisitorHelper.cs +++ b/src/Docfx.Dotnet/Visitors/VisitorHelper.cs @@ -3,14 +3,12 @@ using System.Diagnostics; using System.Text.RegularExpressions; - -using Microsoft.CodeAnalysis; - using Docfx.Common; using Docfx.Common.Git; using Docfx.DataContracts.Common; using Docfx.DataContracts.ManagedReference; using Docfx.Plugins; +using Microsoft.CodeAnalysis; namespace Docfx.Dotnet; diff --git a/src/Docfx.Dotnet/Visitors/YamlModelGenerator.cs b/src/Docfx.Dotnet/Visitors/YamlModelGenerator.cs index 3f919ce4faa..2086fb35908 100644 --- a/src/Docfx.Dotnet/Visitors/YamlModelGenerator.cs +++ b/src/Docfx.Dotnet/Visitors/YamlModelGenerator.cs @@ -1,8 +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 Microsoft.CodeAnalysis; using Docfx.DataContracts.ManagedReference; +using Microsoft.CodeAnalysis; namespace Docfx.Dotnet; diff --git a/src/Docfx.HtmlToPdf/Transformer/AbsolutePathInTocPageFileTransformer.cs b/src/Docfx.HtmlToPdf/Transformer/AbsolutePathInTocPageFileTransformer.cs index dc7494a922c..a1e1f794b1c 100644 --- a/src/Docfx.HtmlToPdf/Transformer/AbsolutePathInTocPageFileTransformer.cs +++ b/src/Docfx.HtmlToPdf/Transformer/AbsolutePathInTocPageFileTransformer.cs @@ -1,9 +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 HtmlAgilityPack; - using Docfx.Common; +using HtmlAgilityPack; namespace Docfx.HtmlToPdf.Transformer; diff --git a/src/Docfx.HtmlToPdf/Transformer/FrameTransformer.cs b/src/Docfx.HtmlToPdf/Transformer/FrameTransformer.cs index 90602e879ef..82b1e4a9bb8 100644 --- a/src/Docfx.HtmlToPdf/Transformer/FrameTransformer.cs +++ b/src/Docfx.HtmlToPdf/Transformer/FrameTransformer.cs @@ -1,9 +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 HtmlAgilityPack; - using Docfx.Common; +using HtmlAgilityPack; namespace Docfx.HtmlToPdf.Transformer; diff --git a/src/Docfx.HtmlToPdf/Transformer/HtmlNotInTocTransformer.cs b/src/Docfx.HtmlToPdf/Transformer/HtmlNotInTocTransformer.cs index 9130f6d5a79..312e0e5ab8a 100644 --- a/src/Docfx.HtmlToPdf/Transformer/HtmlNotInTocTransformer.cs +++ b/src/Docfx.HtmlToPdf/Transformer/HtmlNotInTocTransformer.cs @@ -1,9 +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 HtmlAgilityPack; - using Docfx.Common; +using HtmlAgilityPack; namespace Docfx.HtmlToPdf.Transformer; diff --git a/src/Docfx.HtmlToPdf/Transformer/RemoveQueryStringTransformer.cs b/src/Docfx.HtmlToPdf/Transformer/RemoveQueryStringTransformer.cs index ec90363ba63..fffeac04a21 100644 --- a/src/Docfx.HtmlToPdf/Transformer/RemoveQueryStringTransformer.cs +++ b/src/Docfx.HtmlToPdf/Transformer/RemoveQueryStringTransformer.cs @@ -1,9 +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 HtmlAgilityPack; - using Docfx.Common; +using HtmlAgilityPack; namespace Docfx.HtmlToPdf.Transformer; diff --git a/src/Docfx.MarkdigEngine.Extensions/TabGroup/TabGroupIdRewriter.cs b/src/Docfx.MarkdigEngine.Extensions/TabGroup/TabGroupIdRewriter.cs index f062391f4a5..84944822054 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TabGroup/TabGroupIdRewriter.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TabGroup/TabGroupIdRewriter.cs @@ -1,8 +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 Markdig.Syntax; using Docfx.MarkdigEngine.Extensions; +using Markdig.Syntax; namespace Docfx.MarkdigEngine; diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/ChromelessFormExtension.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/ChromelessFormExtension.cs index fc4e134dd9c..44eb4ab6a29 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/ChromelessFormExtension.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/ChromelessFormExtension.cs @@ -84,4 +84,4 @@ public bool TryValidateAncestry(ContainerBlock container, Action logErro { return true; } -} \ No newline at end of file +} diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/ImageExtension.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/ImageExtension.cs index ff33439c54d..459076f8417 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/ImageExtension.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/ImageExtension.cs @@ -105,16 +105,16 @@ public bool Render(HtmlRenderer renderer, MarkdownObject obj, Action log if (currentType == "icon") { htmlAttributes.AddProperty("role", "presentation"); - } - else - { + } + else + { htmlAttributes.AddProperty("alt", alt); } var htmlId = GetHtmlId(obj); if (currentType == "complex") { htmlAttributes.AddProperty("aria-describedby", htmlId); - } + } if (!bool.TryParse(currentBorderStr, out var currentBorder)) { diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonBlock.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonBlock.cs index bfdf1704ae0..910cabdc439 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonBlock.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonBlock.cs @@ -35,4 +35,4 @@ internal interface ITripleColon public IDictionary Attributes { get; set; } public int Count { get; } -} \ No newline at end of file +} diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonBlockParser.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonBlockParser.cs index bebefa3f8dd..c143467ff63 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonBlockParser.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonBlockParser.cs @@ -278,4 +278,4 @@ public static bool TryMatchAttributes(ref StringSlice slice, out IDictionary"); } -} \ No newline at end of file +} diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonExtension.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonExtension.cs index 5539ca9e670..b775f497163 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonExtension.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonExtension.cs @@ -28,7 +28,7 @@ public TripleColonExtension(MarkdownContext context) } public TripleColonExtension(MarkdownContext context, params ITripleColonExtensionInfo[] extensions) - { + { _context = context; _extensionsBlock = extensions.Where(x => x.IsBlock).ToDictionary(x => x.Name); _extensionsInline = extensions.Where(x => x.IsInline).ToDictionary(x => x.Name); @@ -75,4 +75,4 @@ public interface ITripleColonExtensionInfo bool TryValidateAncestry(ContainerBlock container, Action logError); bool Render(HtmlRenderer renderer, MarkdownObject markdownObject, Action logWarning); -} \ No newline at end of file +} diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInline.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInline.cs index b60409abd89..dbd0590bf45 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInline.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInline.cs @@ -22,4 +22,4 @@ public TripleColonInline() public IDictionary Attributes { get; set; } public int Count { get; } -} \ No newline at end of file +} diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInlineParser.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInlineParser.cs index faab8f202d1..cb996079956 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInlineParser.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInlineParser.cs @@ -64,4 +64,4 @@ public override bool Match(InlineProcessor processor, ref StringSlice slice) return true; } -} \ No newline at end of file +} diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInlineRenderer.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInlineRenderer.cs index 9e473bfdca0..7357d5b19aa 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInlineRenderer.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/TripleColonInlineRenderer.cs @@ -27,4 +27,4 @@ protected override void Write(HtmlRenderer renderer, TripleColonInline inline) renderer.Write(""); renderer.WriteLine(""); } -} \ No newline at end of file +} diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/VideoExtension.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/VideoExtension.cs index 60d5ea1ecfe..a93df1843e5 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/VideoExtension.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/VideoExtension.cs @@ -197,7 +197,7 @@ public bool TryValidateAncestry(ContainerBlock container, Action logErro public static string GetHtmlId(MarkdownObject obj) { return $"{obj.Line}-{obj.Column}"; -} + } public static bool RequiresClosingTripleColon(IDictionary attributes) { diff --git a/src/Docfx.MarkdigEngine.Extensions/TripleColon/ZoneExtension.cs b/src/Docfx.MarkdigEngine.Extensions/TripleColon/ZoneExtension.cs index 438dc2edbe6..2058addea3b 100644 --- a/src/Docfx.MarkdigEngine.Extensions/TripleColon/ZoneExtension.cs +++ b/src/Docfx.MarkdigEngine.Extensions/TripleColon/ZoneExtension.cs @@ -98,4 +98,4 @@ public bool TryValidateAncestry(ContainerBlock container, Action logErro } return true; } -} \ No newline at end of file +} diff --git a/src/Docfx.MarkdigEngine/MarkdigMarkdownService.cs b/src/Docfx.MarkdigEngine/MarkdigMarkdownService.cs index 704a03d34c2..cc9064a66d6 100644 --- a/src/Docfx.MarkdigEngine/MarkdigMarkdownService.cs +++ b/src/Docfx.MarkdigEngine/MarkdigMarkdownService.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; -using Markdig; -using Markdig.Renderers; -using Markdig.Syntax; using Docfx.Common; using Docfx.MarkdigEngine.Extensions; using Docfx.Plugins; +using Markdig; +using Markdig.Renderers; +using Markdig.Syntax; namespace Docfx.MarkdigEngine; diff --git a/src/Docfx.MarkdigEngine/MarkdigServiceProvider.cs b/src/Docfx.MarkdigEngine/MarkdigServiceProvider.cs index e1db981ca98..ec28130870b 100644 --- a/src/Docfx.MarkdigEngine/MarkdigServiceProvider.cs +++ b/src/Docfx.MarkdigEngine/MarkdigServiceProvider.cs @@ -1,8 +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 Markdig; using Docfx.Plugins; +using Markdig; namespace Docfx.MarkdigEngine; diff --git a/src/Docfx.MarkdigEngine/YamlHeader/YamlHeaderRenderer.cs b/src/Docfx.MarkdigEngine/YamlHeader/YamlHeaderRenderer.cs index edb7ab0579a..1cc3a5af487 100644 --- a/src/Docfx.MarkdigEngine/YamlHeader/YamlHeaderRenderer.cs +++ b/src/Docfx.MarkdigEngine/YamlHeader/YamlHeaderRenderer.cs @@ -2,11 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Net; - +using Docfx.Common; using Markdig.Extensions.Yaml; using Markdig.Renderers; using Markdig.Renderers.Html; -using Docfx.Common; namespace Docfx.MarkdigEngine.Extensions; diff --git a/test/Docfx.Build.Engine.Tests/ExtractSearchIndexFromHtmlTest.cs b/test/Docfx.Build.Engine.Tests/ExtractSearchIndexFromHtmlTest.cs index 19a2d27e872..d1212295d5b 100644 --- a/test/Docfx.Build.Engine.Tests/ExtractSearchIndexFromHtmlTest.cs +++ b/test/Docfx.Build.Engine.Tests/ExtractSearchIndexFromHtmlTest.cs @@ -2,8 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text; -using HtmlAgilityPack; using Docfx.Plugins; +using HtmlAgilityPack; using Xunit; namespace Docfx.Build.Engine.Tests; diff --git a/test/Docfx.Build.Engine.Tests/JintProcessorHelperTest.cs b/test/Docfx.Build.Engine.Tests/JintProcessorHelperTest.cs index 51a37b3af96..ef66c716c2d 100644 --- a/test/Docfx.Build.Engine.Tests/JintProcessorHelperTest.cs +++ b/test/Docfx.Build.Engine.Tests/JintProcessorHelperTest.cs @@ -1,7 +1,6 @@  -using Jint; using Docfx.Common; - +using Jint; using Xunit; namespace Docfx.Build.Engine.Tests; diff --git a/test/Docfx.Build.OverwriteDocuments.Tests/OverwriteDocumentModelCreatorTest.cs b/test/Docfx.Build.OverwriteDocuments.Tests/OverwriteDocumentModelCreatorTest.cs index 180cc438081..67e509e7455 100644 --- a/test/Docfx.Build.OverwriteDocuments.Tests/OverwriteDocumentModelCreatorTest.cs +++ b/test/Docfx.Build.OverwriteDocuments.Tests/OverwriteDocumentModelCreatorTest.cs @@ -1,13 +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 Markdig; -using Markdig.Syntax; using Docfx.Common; using Docfx.Tests.Common; - +using Markdig; +using Markdig.Syntax; using Newtonsoft.Json.Linq; - using Xunit; namespace Docfx.Build.OverwriteDocuments.Tests; diff --git a/test/Docfx.Dotnet.Tests/GenerateMetadataFromCSUnitTest.cs b/test/Docfx.Dotnet.Tests/GenerateMetadataFromCSUnitTest.cs index 598a9dfed7f..a5a27ddde4f 100644 --- a/test/Docfx.Dotnet.Tests/GenerateMetadataFromCSUnitTest.cs +++ b/test/Docfx.Dotnet.Tests/GenerateMetadataFromCSUnitTest.cs @@ -2,9 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; +using Docfx.DataContracts.ManagedReference; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Emit; -using Docfx.DataContracts.ManagedReference; using Xunit; namespace Docfx.Dotnet.Tests; diff --git a/test/Docfx.Dotnet.Tests/GenerateMetadataFromVBUnitTest.cs b/test/Docfx.Dotnet.Tests/GenerateMetadataFromVBUnitTest.cs index 148d2ea9cde..393dace0a8b 100644 --- a/test/Docfx.Dotnet.Tests/GenerateMetadataFromVBUnitTest.cs +++ b/test/Docfx.Dotnet.Tests/GenerateMetadataFromVBUnitTest.cs @@ -1,8 +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 Microsoft.CodeAnalysis; using Docfx.DataContracts.ManagedReference; +using Microsoft.CodeAnalysis; using Xunit; namespace Docfx.Dotnet.Tests; diff --git a/test/Docfx.MarkdigEngine.Extensions.Tests/AggregatorTest.cs b/test/Docfx.MarkdigEngine.Extensions.Tests/AggregatorTest.cs index 4c065892877..c4bb50fe11d 100644 --- a/test/Docfx.MarkdigEngine.Extensions.Tests/AggregatorTest.cs +++ b/test/Docfx.MarkdigEngine.Extensions.Tests/AggregatorTest.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using Docfx.MarkdigEngine.Extensions; using Markdig; using Markdig.Syntax; using Markdig.Syntax.Inlines; -using Docfx.MarkdigEngine.Extensions; using Xunit; namespace Docfx.MarkdigEngine.Tests; diff --git a/test/Docfx.MarkdigEngine.Extensions.Tests/ImageTest.cs b/test/Docfx.MarkdigEngine.Extensions.Tests/ImageTest.cs index 907fb9295cc..ec9ede90605 100644 --- a/test/Docfx.MarkdigEngine.Extensions.Tests/ImageTest.cs +++ b/test/Docfx.MarkdigEngine.Extensions.Tests/ImageTest.cs @@ -242,4 +242,4 @@ This is where your content goes. TestUtility.VerifyMarkup(source, expected); } -} \ No newline at end of file +} diff --git a/test/Docfx.MarkdigEngine.Extensions.Tests/TestUtility.cs b/test/Docfx.MarkdigEngine.Extensions.Tests/TestUtility.cs index 497d0f160fc..eb21d3b6671 100644 --- a/test/Docfx.MarkdigEngine.Extensions.Tests/TestUtility.cs +++ b/test/Docfx.MarkdigEngine.Extensions.Tests/TestUtility.cs @@ -1,9 +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 Docfx.MarkdigEngine.Extensions; using Markdig; using Markdig.Syntax; -using Docfx.MarkdigEngine.Extensions; using Xunit; namespace Docfx.MarkdigEngine.Tests; diff --git a/test/Docfx.MarkdigEngine.Tests/InclusionTest.cs b/test/Docfx.MarkdigEngine.Tests/InclusionTest.cs index 3d05345a8ef..9ac2a979ef1 100644 --- a/test/Docfx.MarkdigEngine.Tests/InclusionTest.cs +++ b/test/Docfx.MarkdigEngine.Tests/InclusionTest.cs @@ -2,11 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; -using Markdig; using Docfx.Common; using Docfx.MarkdigEngine.Extensions; using Docfx.Plugins; - +using Markdig; using Xunit; namespace Docfx.MarkdigEngine.Tests; diff --git a/test/Docfx.MarkdigEngine.Tests/MarkdigServiceTest.cs b/test/Docfx.MarkdigEngine.Tests/MarkdigServiceTest.cs index b0fc0e6c87b..e085ef103aa 100644 --- a/test/Docfx.MarkdigEngine.Tests/MarkdigServiceTest.cs +++ b/test/Docfx.MarkdigEngine.Tests/MarkdigServiceTest.cs @@ -2,9 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; - -using Markdig.Syntax; using Docfx.MarkdigEngine.Extensions; +using Markdig.Syntax; using Xunit; namespace Docfx.MarkdigEngine.Tests; diff --git a/test/docfx.Snapshot.Tests/SamplesTest.cs b/test/docfx.Snapshot.Tests/SamplesTest.cs index ee4eb0e1275..df2a04d53ae 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.cs +++ b/test/docfx.Snapshot.Tests/SamplesTest.cs @@ -3,17 +3,17 @@ using System.Collections.Concurrent; using System.Diagnostics; +using System.Net; +using System.Net.NetworkInformation; using System.Text; using System.Text.Encodings.Web; using System.Text.Json; using System.Text.Json.Nodes; using System.Text.RegularExpressions; -using ImageMagick; using Docfx.Common; using Docfx.Dotnet; +using ImageMagick; using Microsoft.Playwright; -using System.Net.NetworkInformation; -using System.Net; namespace Docfx.Tests; diff --git a/test/docfx.Tests/CompositeCommandTest.cs b/test/docfx.Tests/CompositeCommandTest.cs index 1278f74fd46..d0dd3521c64 100644 --- a/test/docfx.Tests/CompositeCommandTest.cs +++ b/test/docfx.Tests/CompositeCommandTest.cs @@ -2,9 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Xml.Linq; -using HtmlAgilityPack; using Docfx.Common; using Docfx.Tests.Common; +using HtmlAgilityPack; using Xunit; namespace Docfx.Tests; diff --git a/test/docfx.Tests/DocsetPdfTest.cs b/test/docfx.Tests/DocsetPdfTest.cs index 7a48be25968..ff477fe2c47 100644 --- a/test/docfx.Tests/DocsetPdfTest.cs +++ b/test/docfx.Tests/DocsetPdfTest.cs @@ -2,10 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; -using Docfx; using docfx.Tests.Attributes; +using Docfx; using Docfx.Tests.Common; - using Xunit; namespace Microsoft.DocAsCode.Tests;