-
Notifications
You must be signed in to change notification settings - Fork 2
/
.editorconfig
118 lines (87 loc) · 5.11 KB
/
.editorconfig
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
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = crlf
insert_final_newline = false
spelling_exclusion_path = spellcheck.txt
[*.cs]
dotnet_analyzer_diagnostic.severity = error
dotnet_code_quality.api_surface = all
dotnet_diagnostic.CA1002.severity = none # CA1002: Do not expose generic lists
dotnet_code_quality.CA1002.api_surface = public,internal
dotnet_diagnostic.CA1031.severity = none # CA1031: Do not catch general exception types
dotnet_diagnostic.CA1054.severity = none # CA1054: URI parameters should not be strings
dotnet_code_quality.CA1054.api_surface = all
dotnet_diagnostic.CA1056.severity = none # CA1056: URI properties should not be strings
dotnet_code_quality.CA1056.api_surface = all
dotnet_diagnostic.CA1062.severity = none # CA1062: Validate arguments of public methods
dotnet_code_quality.CA1062.api_surface = all
dotnet_diagnostic.CA1707.severity = none # CA1707: Identifiers should not contain underscores
dotnet_code_quality.CA1707.api_surface = all
dotnet_diagnostic.CA2227.severity = none # CA2227: Collection properties should be read only
dotnet_diagnostic.IDE0008.severity = error # 'var' preferences
csharp_style_var_elsewhere = true
csharp_style_var_for_built_in_types = true
csharp_style_var_when_type_is_apparent = true
dotnet_diagnostic.IDE0130.severity = none # Namespace doesn't match folder structure
dotnet_diagnostic.IDE0160.severity = none # Use block-scoped namespace
dotnet_diagnostic.IDE0161.severity = error # Use file-scoped namespace
####################################################################################
# naming rules
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/naming-rules
dotnet_diagnostic.IDE1006.severity = error # Naming rule violation
# styles
dotnet_naming_style.style_pascal_case.capitalization = pascal_case
dotnet_naming_style.style_pascal_case.required_suffix =
dotnet_naming_style.style_pascal_case.required_prefix =
dotnet_naming_style.style_pascal_case.word_separator =
dotnet_naming_style.style_i_pascal_case.capitalization = pascal_case
dotnet_naming_style.style_i_pascal_case.required_suffix =
dotnet_naming_style.style_i_pascal_case.required_prefix = I
dotnet_naming_style.style_i_pascal_case.word_separator =
dotnet_naming_style.style_t_pascal_case.capitalization = pascal_case
dotnet_naming_style.style_t_pascal_case.required_suffix =
dotnet_naming_style.style_t_pascal_case.required_prefix = T
dotnet_naming_style.style_t_pascal_case.word_separator =
dotnet_naming_style.style_all_caps.capitalization = all_upper
dotnet_naming_style.style_all_caps.required_suffix =
dotnet_naming_style.style_all_caps.required_prefix =
dotnet_naming_style.style_all_caps.word_separator = _
dotnet_naming_style.style_underscore_camel_case.capitalization = camel_case
dotnet_naming_style.style_underscore_camel_case.required_suffix =
dotnet_naming_style.style_underscore_camel_case.required_prefix = _
dotnet_naming_style.style_underscore_camel_case.word_separator =
dotnet_naming_style.style_camel_case.capitalization = camel_case
dotnet_naming_style.style_camel_case.required_suffix =
dotnet_naming_style.style_camel_case.required_prefix =
dotnet_naming_style.style_camel_case.word_separator =
# symbols
dotnet_naming_symbols.symbols_allways_pascal_case.applicable_kinds = namespace,class,struct,enum,property,method,event,delegate
dotnet_naming_symbols.symbols_allways_pascal_case.applicable_accessibilities = *
dotnet_naming_symbols.symbols_interfaces.applicable_kinds = interface
dotnet_naming_symbols.symbols_interfaces.applicable_accessibilities = *
dotnet_naming_symbols.symbols_type_parameters.applicable_kinds = type_parameter
dotnet_naming_symbols.symbols_type_parameters.applicable_accessibilities = *
dotnet_naming_symbols.symbols_constants.applicable_kinds = field
dotnet_naming_symbols.symbols_constants.applicable_accessibilities = *
dotnet_naming_symbols.symbols_constants.required_modifiers = const
dotnet_naming_symbols.symbols_fields.applicable_kinds = field
dotnet_naming_symbols.symbols_fields.applicable_accessibilities = private
dotnet_naming_symbols.symbols_parameters.applicable_kinds = parameter,local,local_function
dotnet_naming_symbols.symbols_parameters.applicable_accessibilities = *
# rules
dotnet_naming_rule.rule_for_types.symbols = symbols_allways_pascal_case
dotnet_naming_rule.rule_for_types.style = style_pascal_case
dotnet_naming_rule.rule_for_interfaces.symbols = symbols_interfaces
dotnet_naming_rule.rule_for_interfaces.style = style_i_pascal_case
dotnet_naming_rule.rule_for_type_arguments.symbols = symbols_type_parameters
dotnet_naming_rule.rule_for_type_arguments.style = style_t_pascal_case
dotnet_naming_rule.rule_for_constants.symbols = symbols_constants
dotnet_naming_rule.rule_for_interfaces.style = style_all_caps
dotnet_naming_rule.rule_for_fields.symbols = symbols_fields
dotnet_naming_rule.rule_for_fields.style = style_underscore_camel_case
dotnet_naming_rule.rule_for_fields.symbols = symbols_parameters
dotnet_naming_rule.rule_for_fields.style = style_camel_case
####################################################################################
dotnet_diagnostic.NUnit2045.severity = none # NUnit2045: Use Assert.Multiple