Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 0cced5a

Browse files
committed
Some improvements
- Remove the unnecessary explicit constructor - Remove and Sort the usings
1 parent e221f31 commit 0cced5a

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/Microsoft.DotNet.CodeFormatting/Rules/HasNoIllegalHeadersFormattingRule.cs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4+
using Microsoft.CodeAnalysis;
5+
using Microsoft.CodeAnalysis.CSharp;
46
using System;
57
using System.Collections.Generic;
68
using System.ComponentModel.Composition;
7-
using System.Linq;
89
using System.IO;
9-
using System.Threading;
10-
using System.Threading.Tasks;
11-
12-
using Microsoft.CodeAnalysis;
13-
using Microsoft.CodeAnalysis.CSharp;
10+
using System.Linq;
1411
using System.Reflection;
1512
using System.Text;
13+
using System.Threading;
14+
using System.Threading.Tasks;
1615

1716
namespace Microsoft.DotNet.CodeFormatting.Rules
1817
{
@@ -25,12 +24,6 @@ internal sealed class HasNoIllegalHeadersFormattingRule : IFormattingRule
2524
// We are going to remove any multiline comments that *only* contain these characters
2625
private const string CommentFormattingCharacters = "*/=-";
2726

28-
[ImportingConstructor]
29-
public HasNoIllegalHeadersFormattingRule()
30-
{
31-
32-
}
33-
3427
public async Task<Document> ProcessAsync(Document document, CancellationToken cancellationToken)
3528
{
3629
var syntaxNode = await document.GetSyntaxRootAsync(cancellationToken) as CSharpSyntaxNode;

0 commit comments

Comments
 (0)