Skip to content

Commit

Permalink
chore: Fix code formatting (dotnet#9025)
Browse files Browse the repository at this point in the history
chore: fix code formatting
  • Loading branch information
filzrev authored and p-kostov committed Jun 28, 2024
1 parent b102e09 commit 0a5216c
Show file tree
Hide file tree
Showing 65 changed files with 82 additions and 118 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Docfx.App/RunServe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 1 addition & 3 deletions src/Docfx.Build.Common/YamlHtmlPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 1 addition & 3 deletions src/Docfx.Build.ConceptualDocuments/CountWord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/Docfx.Build.Engine/DocumentBuildParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Build.Engine/MarkupResultUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 1 addition & 3 deletions src/Docfx.Build.Engine/PostProcessors/HtmlPostProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/Docfx.Build.Engine/PostProcessors/RemoveDebugInfo.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 1 addition & 3 deletions src/Docfx.Build.Engine/PostProcessors/ValidateBookmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@

using System.Net;
using System.Web;

using HtmlAgilityPack;

using Docfx.Common;
using Docfx.Plugins;
using HtmlAgilityPack;

namespace Docfx.Build.Engine;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Build.Engine/XrefDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Build.SchemaDriven/Models/DocumentSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/Docfx.Build.SchemaDriven/SchemaFragmentsIterator.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Build.SchemaDriven/Validators/SchemaValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
5 changes: 2 additions & 3 deletions src/Docfx.Dotnet/CompilationHelper.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Dotnet/DotnetApiCatalog.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
9 changes: 3 additions & 6 deletions src/Docfx.Dotnet/ExtractMetadata/ExtractMetadataWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/Docfx.Dotnet/Parsers/XmlComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/Docfx.Dotnet/SymbolFormatter.Syntax.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/Docfx.Dotnet/SymbolFormatter.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/Docfx.Dotnet/SymbolUrlResolver.SourceLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions src/Docfx.Dotnet/Visitors/SymbolVisitorAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 1 addition & 3 deletions src/Docfx.Dotnet/Visitors/VisitorHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading

0 comments on commit 0a5216c

Please sign in to comment.