-
Notifications
You must be signed in to change notification settings - Fork 712
Expand file tree
/
Copy path.editorconfig
More file actions
189 lines (156 loc) · 9.1 KB
/
Copy path.editorconfig
File metadata and controls
189 lines (156 loc) · 9.1 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
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
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
file_header_template = SPDX-FileCopyrightText: 2026 Demerzel Solutions Limited\nSPDX-License-Identifier: LGPL-3.0-only
[*.py]
indent_size = 4
[*.cs]
indent_size = 4
#### Naming styles ####
# Naming rules
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
# Symbol specifications
dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =
# Naming styles
dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_coalesce_expression = true:error
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_prefer_collection_expression = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_namespace_match_folder = true:warning
csharp_indent_labels = one_less_than_current
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:warning
csharp_prefer_braces = when_multiline:suggestion
csharp_style_namespace_declarations = file_scoped:suggestion
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:error
csharp_style_expression_bodied_methods = true:error
csharp_style_expression_bodied_constructors = true:error
csharp_style_expression_bodied_operators = true:error
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = true:error
csharp_style_var_for_built_in_types = false:error
csharp_style_var_when_type_is_apparent = false:error
csharp_style_var_elsewhere = false:error
# Coding convention
dotnet_diagnostic.IDE0005.severity = warning
dotnet_diagnostic.IDE0130.severity = warning
dotnet_diagnostic.IDE0041.severity = error
dotnet_diagnostic.IDE0100.severity = warning
dotnet_diagnostic.CA1825.severity = warning
dotnet_diagnostic.CA1829.severity = warning
dotnet_diagnostic.CA1834.severity = warning
dotnet_diagnostic.IDE0008.severity = error
dotnet_diagnostic.IDE0090.severity = error
dotnet_diagnostic.IDE0290.severity = error
csharp_style_implicit_object_creation_when_type_is_apparent = true
dotnet_diagnostic.CA1507.severity = warning
dotnet_diagnostic.CA1510.severity = warning
dotnet_diagnostic.CA2208.severity = suggestion
dotnet_diagnostic.NETH002.severity = error
dotnet_diagnostic.NETH006.severity = error
dotnet_diagnostic.IDE0320.severity = warning
dotnet_diagnostic.IDE0018.severity = warning
dotnet_diagnostic.IDE0019.severity = warning
dotnet_diagnostic.IDE0029.severity = warning
dotnet_diagnostic.IDE0034.severity = warning
dotnet_diagnostic.IDE0062.severity = warning
dotnet_diagnostic.IDE0071.severity = warning
dotnet_diagnostic.IDE0074.severity = warning
dotnet_diagnostic.IDE0150.severity = warning
dotnet_diagnostic.IDE0270.severity = warning
dotnet_diagnostic.IDE1005.severity = warning
dotnet_diagnostic.IDE0028.severity = warning
# IDE0130: JSON converters intentionally exposed under Nethermind.Serialization.Json
# despite living in Nethermind.Core to avoid a circular project reference.
[src/Nethermind/Nethermind.Core/{BloomConverter,Crypto/PublicKeyConverter,Crypto/PublicKeyHashedConverter,JsonConverters/*}.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: ABI JSON converters exposed under Nethermind.Blockchain.Contracts.Json.
[src/Nethermind/Nethermind.Abi/Abi{DefinitionConverter,ParameterConverter,Type}.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Rlp-side helpers intentionally exposed under Nethermind.Core* namespaces;
# Eip7702 subfolder follows the project's flat-namespace convention.
[src/Nethermind/Nethermind.Serialization.Rlp/{NettyBufferMemoryOwner,OwnedBlockBodies,Eip7702/AuthorizationTupleDecoder}.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Network.Contract config interfaces are exposed under Nethermind.Network.Config
# so consumers can find them alongside concrete config types.
[src/Nethermind/Nethermind.Network.Contract/Config/*.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Trie helpers intentionally exposed under Nethermind.Core* namespaces.
[src/Nethermind/Nethermind.Trie/Utils/ConcurrentNodeWriteBatcher.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Evm/Instructions is purely organizational; all files use the flat Nethermind.Evm namespace.
[src/Nethermind/Nethermind.Evm/Instructions/*.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: BlockParameter declares a nested JSON converter under Nethermind.JsonRpc.Data.
[src/Nethermind/Nethermind.Blockchain/Find/BlockParameter.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Merge engine capabilities provider intentionally exposed under Nethermind.HealthChecks.
[src/Nethermind/Nethermind.Merge.Plugin/Handlers/EngineRpcCapabilitiesProvider.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Global FluentAssertions setup fixture intentionally placed in the top-level Nethermind namespace.
[src/Nethermind/Nethermind.Core.Test/AssertionsSetup.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Test helper exposed under the Synchronization.Test namespace to live next to its consumers.
[src/Nethermind/Nethermind.Core.Test/MockSnapSyncPeer.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: AuRa-specific finalization manager shares the Merge.Plugin namespace with its base class.
[src/Nethermind/Nethermind.Merge.AuRa/AuRaMergeFinalizationManager.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Cross-project tests living next to their dependencies but namespaced under the unit under test.
[src/Nethermind/Nethermind.Blockchain.Test/{TransactionProcessorEip7702Tests,TransactionProcessorTests,TxPoolSourceTests}.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: InvalidChainTracker folder name matches a type name; keeping the flat test namespace avoids resolution ambiguity.
[src/Nethermind/Nethermind.Merge.Plugin.Test/InvalidChainTracker/*.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0130: Xdc test builders intentionally exposed under Nethermind.Core.Test.Builders for discoverability.
[src/Nethermind/Nethermind.Xdc.Test/{BuildExtensions,Helpers/XdcBlockHeaderBuilder,Helpers/XdcSubnetBlockHeaderBuilder}.cs]
dotnet_diagnostic.IDE0130.severity = none
# IDE0005: These Merge.Plugin source files are also linked into Nethermind.Stateless.Executor
# (which has ImplicitUsings enabled), where their explicit usings are flagged as redundant. The
# usings are required in Merge.Plugin (ImplicitUsings disabled), so suppress the false positive.
[src/Nethermind/Nethermind.Merge.Plugin/{Data/ExecutionPayload,Data/IExecutionPayloadParams,SszRest/SszBlobCell,SszRest/SszBlobCellVectorTypeConverter,SszRest/SszKzgCommitment,SszRest/SszKzgCommitmentVectorTypeConverter}.cs]
dotnet_diagnostic.IDE0005.severity = none