-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
28 lines (24 loc) · 1.04 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
# Reference: https://github.com/RehanSaeed/EditorConfig/blob/main/.editorconfig
# https://learn.microsoft.com/en-gb/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options
# https://github.com/JosefPihrt/Roslynator/blob/main/docs/Configuration.md
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
[*.sln]
indent_style = tab
[*.cs]
trim_trailing_whitespace = true
csharp_new_line_before_open_brace = none
csharp_space_between_method_declaration_name_and_open_parenthesis = false
# Don't flag MonoBehavior events as unused. [rcs1213]
roslynator_suppress_unity_script_methods = true
# Stop suggesting making fields read-only. Useless in Unity most of the time.
dotnet_diagnostic.rcs1169.severity = none
# Unity cannot override '?.' like '== null' check for its Objects,
# so stop suggesting replacing the latter with the former.
dotnet_diagnostic.rcs1146.severity = none
# I like using (extra * parentesis) for expressiveness in some cases.
dotnet_diagnostic.rcs1032.severity = none