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
Expand file tree
/
Copy pathRuleOrder.cs
More file actions
40 lines (36 loc) · 1.46 KB
/
RuleOrder.cs
File metadata and controls
40 lines (36 loc) · 1.46 KB
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
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license 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 CopyrightHeaderRule = 2;
public const int UsingLocationFormattingRule = 3;
public const int NewLineAboveFormattingRule = 4;
public const int NewLineAtEndOfFileRule = 5;
public const int BraceNewLineRule = 6;
public const int NonAsciiChractersAreEscapedInLiterals = 7;
}
// 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;
}
// Please keep these values sorted by number, not rule name.
internal static class GlobalSemanticRuleOrder
{
public const int PrivateFieldNamingRule = 1;
public const int MarkReadonlyFieldsRule = 2;
}
}