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

Commit ede334e

Browse files
committed
Enable the NonAscii Rule
1 parent a2ed012 commit ede334e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
namespace Microsoft.DotNet.CodeFormatting.Rules
1717
{
18+
[RuleOrder(RuleOrder.NonAsciiChractersAreEscapedInLiterals)]
1819
internal sealed class NonAsciiChractersAreEscapedInLiterals : IFormattingRule
1920
{
2021
public async Task<Document> ProcessAsync(Document document, CancellationToken cancellationToken)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ internal static class RuleOrder
2424
public const int HasUnderScoreInPrivateFieldNamesFormattingRule = 10;
2525
public const int IsFormattedFormattingRule = 11;
2626
public const int UsesXunitForTestsFormattingRule = 12;
27+
public const int NonAsciiChractersAreEscapedInLiterals = 13;
2728
}
2829
}

0 commit comments

Comments
 (0)