forked from dotnet/roslynator
/
ConfigOptions.Generated.cs
239 lines (203 loc) · 15.6 KB
/
ConfigOptions.Generated.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
// Copyright (c) Josef Pihrt and Contributors. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// <auto-generated>
using System.Collections.Generic;
namespace Roslynator
{
public static partial class ConfigOptions
{
public static readonly ConfigOptionDescriptor AccessibilityModifiers = new(
key: ConfigOptionKeys.AccessibilityModifiers,
defaultValue: null,
defaultValuePlaceholder: "explicit|implicit",
description: "Prefer explicit/implicit accessibility modifiers");
public static readonly ConfigOptionDescriptor AccessorBracesStyle = new(
key: ConfigOptionKeys.AccessorBracesStyle,
defaultValue: "multi_line",
defaultValuePlaceholder: "multi_line|single_line_when_expression_is_on_single_line",
description: "Format accessor's braces on single line or multiple lines");
public static readonly ConfigOptionDescriptor ArrayCreationTypeStyle = new(
key: ConfigOptionKeys.ArrayCreationTypeStyle,
defaultValue: null,
defaultValuePlaceholder: "explicit|implicit|implicit_when_type_is_obvious",
description: "Prefer explicitly/implicitly typed array");
public static readonly ConfigOptionDescriptor ArrowTokenNewLine = new(
key: ConfigOptionKeys.ArrowTokenNewLine,
defaultValue: null,
defaultValuePlaceholder: "after|before",
description: "Place new line after/before arrow token");
public static readonly ConfigOptionDescriptor BinaryOperatorNewLine = new(
key: ConfigOptionKeys.BinaryOperatorNewLine,
defaultValue: null,
defaultValuePlaceholder: "after|before",
description: "Place new line after/before binary operator");
public static readonly ConfigOptionDescriptor BlankLineAfterFileScopedNamespaceDeclaration = new(
key: ConfigOptionKeys.BlankLineAfterFileScopedNamespaceDeclaration,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Add/remove blank line after file scoped namespace declaration");
public static readonly ConfigOptionDescriptor BlankLineBetweenClosingBraceAndSwitchSection = new(
key: ConfigOptionKeys.BlankLineBetweenClosingBraceAndSwitchSection,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Add/remove blank line between closing brace and switch section");
public static readonly ConfigOptionDescriptor BlankLineBetweenSingleLineAccessors = new(
key: ConfigOptionKeys.BlankLineBetweenSingleLineAccessors,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Add/remove blank line between single-line accessors");
public static readonly ConfigOptionDescriptor BlankLineBetweenUsingDirectives = new(
key: ConfigOptionKeys.BlankLineBetweenUsingDirectives,
defaultValue: null,
defaultValuePlaceholder: "never|separate_groups",
description: "Add/remove blank line between using directives");
public static readonly ConfigOptionDescriptor BlockBracesStyle = new(
key: ConfigOptionKeys.BlockBracesStyle,
defaultValue: "multi_line",
defaultValuePlaceholder: "multi_line|single_line_when_empty",
description: "Format block's braces on single line or multiple lines");
public static readonly ConfigOptionDescriptor BodyStyle = new(
key: ConfigOptionKeys.BodyStyle,
defaultValue: null,
defaultValuePlaceholder: "block|expression",
description: "Prefer block body or expression body");
public static readonly ConfigOptionDescriptor ConditionalOperatorConditionParenthesesStyle = new(
key: ConfigOptionKeys.ConditionalOperatorConditionParenthesesStyle,
defaultValue: null,
defaultValuePlaceholder: "include|omit|omit_when_condition_is_single_token",
description: "Add/remove parentheses to/from condition in conditional operator");
public static readonly ConfigOptionDescriptor ConditionalOperatorNewLine = new(
key: ConfigOptionKeys.ConditionalOperatorNewLine,
defaultValue: null,
defaultValuePlaceholder: "after|before",
description: "Place new line after/before '?:' operator");
public static readonly ConfigOptionDescriptor ConfigureAwait = new(
key: ConfigOptionKeys.ConfigureAwait,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Add/remove 'ConfigureAwait(false)' call");
public static readonly ConfigOptionDescriptor DocCommentSummaryStyle = new(
key: ConfigOptionKeys.DocCommentSummaryStyle,
defaultValue: null,
defaultValuePlaceholder: "multi_line|single_line",
description: "Format documentation comment summary on single line or multiple lines");
public static readonly ConfigOptionDescriptor EmptyStringStyle = new(
key: ConfigOptionKeys.EmptyStringStyle,
defaultValue: null,
defaultValuePlaceholder: "field|literal",
description: "Prefer 'string.Empty' or empty string literal");
public static readonly ConfigOptionDescriptor EnumFlagValueStyle = new(
key: ConfigOptionKeys.EnumFlagValueStyle,
defaultValue: null,
defaultValuePlaceholder: "decimal_number|shift_operator",
description: "Format enum flag value as decimal number or as a shift operator");
public static readonly ConfigOptionDescriptor EnumHasFlagStyle = new(
key: ConfigOptionKeys.EnumHasFlagStyle,
defaultValue: null,
defaultValuePlaceholder: "method|operator",
description: "Use 'HasFlag' method or bitwise operator");
public static readonly ConfigOptionDescriptor EqualsTokenNewLine = new(
key: ConfigOptionKeys.EqualsTokenNewLine,
defaultValue: null,
defaultValuePlaceholder: "after|before",
description: "Place new line after/before equals sign");
public static readonly ConfigOptionDescriptor InfiniteLoopStyle = new(
key: ConfigOptionKeys.InfiniteLoopStyle,
defaultValue: null,
defaultValuePlaceholder: "for|while",
description: "Use 'for'/'while' statement as an infinite loop");
public static readonly ConfigOptionDescriptor MaxLineLength = new(
key: ConfigOptionKeys.MaxLineLength,
defaultValue: "140",
defaultValuePlaceholder: "<NUM>",
description: "Max line length");
public static readonly ConfigOptionDescriptor NewLineAtEndOfFile = new(
key: ConfigOptionKeys.NewLineAtEndOfFile,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Include/omit new line at the end of a file");
public static readonly ConfigOptionDescriptor NewLineBeforeWhileInDoStatement = new(
key: ConfigOptionKeys.NewLineBeforeWhileInDoStatement,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Include/omit new line before 'while' in 'do' statement");
public static readonly ConfigOptionDescriptor NullConditionalOperatorNewLine = new(
key: ConfigOptionKeys.NullConditionalOperatorNewLine,
defaultValue: null,
defaultValuePlaceholder: "after|before",
description: "Place new line after/before null-conditional operator");
public static readonly ConfigOptionDescriptor NullCheckStyle = new(
key: ConfigOptionKeys.NullCheckStyle,
defaultValue: null,
defaultValuePlaceholder: "equality_operator|pattern_matching",
description: "Use equality operator or pattern matchding as a null check");
public static readonly ConfigOptionDescriptor ObjectCreationParenthesesStyle = new(
key: ConfigOptionKeys.ObjectCreationParenthesesStyle,
defaultValue: null,
defaultValuePlaceholder: "include|omit",
description: "Include/omit parentheses when creating new object");
public static readonly ConfigOptionDescriptor ObjectCreationTypeStyle = new(
key: ConfigOptionKeys.ObjectCreationTypeStyle,
defaultValue: null,
defaultValuePlaceholder: "explicit|implicit|implicit_when_type_is_obvious",
description: "Prefer explicit/implicit object creation");
public static readonly ConfigOptionDescriptor PrefixFieldIdentifierWithUnderscore = new(
key: ConfigOptionKeys.PrefixFieldIdentifierWithUnderscore,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Prefix field identifier with underscore");
public static readonly ConfigOptionDescriptor SuppressUnityScriptMethods = new(
key: ConfigOptionKeys.SuppressUnityScriptMethods,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Suppress Unity script methods");
public static readonly ConfigOptionDescriptor UseAnonymousFunctionOrMethodGroup = new(
key: ConfigOptionKeys.UseAnonymousFunctionOrMethodGroup,
defaultValue: null,
defaultValuePlaceholder: "anonymous_function|method_group",
description: "Use anonymous function or method group");
public static readonly ConfigOptionDescriptor UseBlockBodyWhenDeclarationSpansOverMultipleLines = new(
key: ConfigOptionKeys.UseBlockBodyWhenDeclarationSpansOverMultipleLines,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Use block body when declaration spans over multiple lines");
public static readonly ConfigOptionDescriptor UseBlockBodyWhenExpressionSpansOverMultipleLines = new(
key: ConfigOptionKeys.UseBlockBodyWhenExpressionSpansOverMultipleLines,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Use block body when expression spans over multiple lines");
public static readonly ConfigOptionDescriptor UseVarInsteadOfImplicitObjectCreation = new(
key: ConfigOptionKeys.UseVarInsteadOfImplicitObjectCreation,
defaultValue: null,
defaultValuePlaceholder: "true|false",
description: "Use 'var' instead of implicit object creation");
private static IEnumerable<KeyValuePair<string, string>> GetRequiredOptions()
{
yield return new KeyValuePair<string, string>("RCS0011", JoinOptionKeys(ConfigOptionKeys.BlankLineBetweenSingleLineAccessors));
yield return new KeyValuePair<string, string>("RCS0015", JoinOptionKeys(ConfigOptionKeys.BlankLineBetweenUsingDirectives));
yield return new KeyValuePair<string, string>("RCS0020", JoinOptionKeys(ConfigOptionKeys.AccessorBracesStyle));
yield return new KeyValuePair<string, string>("RCS0021", JoinOptionKeys(ConfigOptionKeys.BlockBracesStyle));
yield return new KeyValuePair<string, string>("RCS0027", JoinOptionKeys(ConfigOptionKeys.BinaryOperatorNewLine));
yield return new KeyValuePair<string, string>("RCS0028", JoinOptionKeys(ConfigOptionKeys.ConditionalOperatorNewLine));
yield return new KeyValuePair<string, string>("RCS0032", JoinOptionKeys(ConfigOptionKeys.ArrowTokenNewLine));
yield return new KeyValuePair<string, string>("RCS0051", JoinOptionKeys(ConfigOptionKeys.NewLineBeforeWhileInDoStatement));
yield return new KeyValuePair<string, string>("RCS0052", JoinOptionKeys(ConfigOptionKeys.EqualsTokenNewLine));
yield return new KeyValuePair<string, string>("RCS0058", JoinOptionKeys(ConfigOptionKeys.NewLineAtEndOfFile));
yield return new KeyValuePair<string, string>("RCS0059", JoinOptionKeys(ConfigOptionKeys.NullConditionalOperatorNewLine));
yield return new KeyValuePair<string, string>("RCS0060", JoinOptionKeys(ConfigOptionKeys.BlankLineAfterFileScopedNamespaceDeclaration));
yield return new KeyValuePair<string, string>("RCS1014", JoinOptionKeys(ConfigOptionKeys.ArrayCreationTypeStyle));
yield return new KeyValuePair<string, string>("RCS1016", JoinOptionKeys(ConfigOptionKeys.BodyStyle, ConfigOptionKeys.UseBlockBodyWhenDeclarationSpansOverMultipleLines, ConfigOptionKeys.UseBlockBodyWhenExpressionSpansOverMultipleLines));
yield return new KeyValuePair<string, string>("RCS1018", JoinOptionKeys(ConfigOptionKeys.AccessibilityModifiers));
yield return new KeyValuePair<string, string>("RCS1050", JoinOptionKeys(ConfigOptionKeys.ObjectCreationParenthesesStyle));
yield return new KeyValuePair<string, string>("RCS1051", JoinOptionKeys(ConfigOptionKeys.ConditionalOperatorConditionParenthesesStyle));
yield return new KeyValuePair<string, string>("RCS1078", JoinOptionKeys(ConfigOptionKeys.EmptyStringStyle));
yield return new KeyValuePair<string, string>("RCS1090", JoinOptionKeys(ConfigOptionKeys.ConfigureAwait));
yield return new KeyValuePair<string, string>("RCS1096", JoinOptionKeys(ConfigOptionKeys.EnumHasFlagStyle));
yield return new KeyValuePair<string, string>("RCS1207", JoinOptionKeys(ConfigOptionKeys.UseAnonymousFunctionOrMethodGroup));
yield return new KeyValuePair<string, string>("RCS1248", JoinOptionKeys(ConfigOptionKeys.NullCheckStyle));
yield return new KeyValuePair<string, string>("RCS1250", JoinOptionKeys(ConfigOptionKeys.ObjectCreationTypeStyle));
yield return new KeyValuePair<string, string>("RCS1252", JoinOptionKeys(ConfigOptionKeys.InfiniteLoopStyle));
yield return new KeyValuePair<string, string>("RCS1253", JoinOptionKeys(ConfigOptionKeys.DocCommentSummaryStyle));
yield return new KeyValuePair<string, string>("RCS1254", JoinOptionKeys(ConfigOptionKeys.EnumFlagValueStyle));
}
}
}