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

Commit b747c89

Browse files
author
Lakshmi Priya Sekar
committed
Enable rule
1 parent 26c1f35 commit b747c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace Microsoft.DotNet.CodeFormatting.Rules
1717
{
18-
// [RuleOrder(10)]
18+
[RuleOrder(10)]
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, enable the rule and enable the hack at the code below in RenameFields.
@@ -72,7 +72,7 @@ private async Task<Solution> RenameFields(Solution solution, DocumentId document
7272
for (int i = 0; i < count; i++)
7373
{
7474
// This is a hack to till the roslyn bug is fixed. Very slow, enable this statement only if the rule is enabled.
75-
// solution = await CleanSolutionAsync(solution, cancellationToken);
75+
solution = await CleanSolutionAsync(solution, cancellationToken);
7676
var model = await solution.GetDocument(documentId).GetSemanticModelAsync(cancellationToken);
7777
var root = await model.SyntaxTree.GetRootAsync(cancellationToken) as CSharpSyntaxNode;
7878
var symbol = model.GetDeclaredSymbol(root.GetAnnotatedNodes(AnnotationMarker).ElementAt(i), cancellationToken);

0 commit comments

Comments
 (0)