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

Commit cff0114

Browse files
author
Lakshmi Priya Sekar
committed
Change rule names to match other rules
1 parent ad2d99e commit cff0114

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Microsoft.DotNet.CodeFormatting/Microsoft.DotNet.CodeFormatting.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
<Compile Include="Rules\HasNoNewLineAfterOpenBraceFormattingRule.cs" />
9494
<Compile Include="Rules\HasNoNewLineBeforeEndBraceFormattingRule.cs" />
9595
<Compile Include="Rules\HasNoXmlBasedCopyrightHeaderFormattingRule.cs" />
96-
<Compile Include="Rules\HasPrivateAccessorOnFieldNames.cs" />
97-
<Compile Include="Rules\HasUnderScoreInPrivateFieldNames.cs" />
96+
<Compile Include="Rules\HasPrivateAccessorOnFieldNamesFormattingRule.cs" />
97+
<Compile Include="Rules\HasUnderScoreInPrivateFieldNamesFormattingRule.cs" />
9898
<Compile Include="Rules\HasUsingsOutsideOfNamespaceFormattingRule.cs" />
9999
<Compile Include="Rules\IsFormattedFormattingRule.cs" />
100100
<Compile Include="Rules\IsSimplifiedFormattingRule.cs" />

src/Microsoft.DotNet.CodeFormatting/Rules/HasPrivateAccessorOnFieldNames.cs renamed to src/Microsoft.DotNet.CodeFormatting/Rules/HasPrivateAccessorOnFieldNamesFormattingRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
namespace Microsoft.DotNet.CodeFormatting.Rules
1616
{
1717
[RuleOrder(9)]
18-
internal sealed class HasPrivateAccessorOnFieldNames : IFormattingRule
18+
internal sealed class HasPrivateAccessorOnFieldNamesFormattingRule : IFormattingRule
1919
{
2020
private static readonly string[] AccessorModifiers = {"public", "private", "internal", "protected"};
2121
public async Task<Document> ProcessAsync(Document document, CancellationToken cancellationToken)

src/Microsoft.DotNet.CodeFormatting/Rules/HasUnderScoreInPrivateFieldNames.cs renamed to src/Microsoft.DotNet.CodeFormatting/Rules/HasUnderScoreInPrivateFieldNamesFormattingRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.DotNet.CodeFormatting.Rules
1919
// TODO Bug 1086632: Deactivated due to active bug in Roslyn.
2020
// There is a hack to run this rule, but it's slow.
2121
// If needed, enabled rule and enable the hack at the code below in RenameFields.
22-
internal sealed class HasUnderScoreInPrivateFieldNames : IFormattingRule
22+
internal sealed class HasUnderScoreInPrivateFieldNamesFormattingRule : IFormattingRule
2323
{
2424
private static string[] AccessorModifiers = { "public", "internal", "protected", "const" };
2525

0 commit comments

Comments
 (0)