This repository was archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 243
/
Copy pathRuleOrder.cs
41 lines (37 loc) · 1.5 KB
/
RuleOrder.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.DotNet.CodeFormatting.Rules
{
// Please keep these values sorted by number, not rule name.
internal static class SyntaxRuleOrder
{
public const int HasNoCustomCopyrightHeaderFormattingRule = 1;
public const int UsingLocationFormattingRule = 2;
public const int NewLineAboveFormattingRule = 3;
public const int BraceNewLineRule = 4;
public const int NonAsciiChractersAreEscapedInLiterals = 5;
public const int CopyrightHeaderRule = 6;
}
// Please keep these values sorted by number, not rule name.
internal static class LocalSemanticRuleOrder
{
public const int HasNoIllegalHeadersFormattingRule = 1;
public const int ExplicitVisibilityRule = 2;
public const int IsFormattedFormattingRule = 3;
public const int RemoveExplicitThisRule = 4;
public const int AssertArgumentOrderRule = 5;
public const int MemberThisRule = 6;
}
// Please keep these values sorted by number, not rule name.
internal static class GlobalSemanticRuleOrder
{
public const int PrivateFieldNamingRule = 1;
public const int MarkReadonlyFieldsRule = 2;
}
}