Skip to content

Commit 459a572

Browse files
committed
chore: add .editorconfig
1 parent 06067cd commit 459a572

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.editorconfig

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_style = space
8+
indent_size = 2
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
# Visual Studio Spell checker configs (https://learn.microsoft.com/en-us/visualstudio/ide/text-spell-checker?view=vs-2022#how-to-customize-the-spell-checker)
13+
spelling_exclusion_path = ./exclusion.dic
14+
15+
[*.cs]
16+
indent_size = 4
17+
charset = utf-8-bom
18+
end_of_line = unset
19+
20+
# Solution files
21+
[*.{sln,slnx}]
22+
end_of_line = unset
23+
24+
# MSBuild project files
25+
[*.{csproj,props,targets}]
26+
end_of_line = unset
27+
28+
# Xml config files
29+
[*.{ruleset,config,nuspec,resx,runsettings,DotSettings}]
30+
end_of_line = unset
31+
32+
[*{_AssemblyInfo.cs,.notsupported.cs}]
33+
generated_code = true
34+
35+
# C# code style settings
36+
[*.{cs}]
37+
dotnet_diagnostic.IDE0044.severity = none # IDE0044: Make field readonly
38+
39+
# https://stackoverflow.com/questions/79195382/how-to-disable-fading-unused-methods-in-visual-studio-2022-17-12-0
40+
dotnet_diagnostic.IDE0051.severity = none # IDE0051: Remove unused private member
41+
dotnet_diagnostic.IDE0130.severity = none # IDE0130: Namespace does not match folder structure

0 commit comments

Comments
 (0)