-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.editorconfig
64 lines (58 loc) · 2.44 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
; This .editorconfig file is used to enforce code style and formatting standards
; across the project. Please adhere to these settings to ensure consistency.
; - Juan Delgado (@JuDelCo)
; Basic text editor config
; Reference: http://editorconfig.org
[*]
charset = utf-8
end_of_line = lf
; .NET CSharp files
[*.cs]
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
; Code analysis - Ignore rules (.NET native)
[**bin/**.cs]
generated_code = true
[**obj/**.cs]
generated_code = true
; Code analysis - Ignore rules (Unity3D)
; Extra:
; 1- Create a new file in: %UnityEditor_Folder%/Editor/Data/Resources/PackageManager/.editorconfig
; 2- Add this to the file to prevent Unity built-in packages to be analyzed:
; [**.cs]
; generated_code = true
; 3- You need to repeat it for each Unity installation
[**PackageCache/**.cs]
generated_code = true
[Assets/Plugins/**.cs]
generated_code = true
; Code analysis - Config rules
; Reference: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions
; Reference: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions
[*.cs]
csharp_prefer_simple_default_expression = false:none
csharp_prefer_simple_using_statement = false:none
csharp_style_prefer_switch_expression = false:none
csharp_style_conditional_delegate_call = false:none
csharp_style_implicit_object_creation_when_type_is_apparent = false:none
csharp_space_after_cast = true
csharp_space_between_parentheses = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
dotnet_sort_system_directives_first = true
dotnet_code_quality_unused_parameters = non_public:none
dotnet_style_object_initializer = false:silent
dotnet_style_collection_initializer = false:silent
dotnet_style_readonly_field = false:silent
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:none
; Supress warnings when <Nullable> is enabled in the project
dotnet_diagnostic.CS8600.severity = none
dotnet_diagnostic.CS8603.severity = none
dotnet_diagnostic.CS8618.severity = none
dotnet_diagnostic.CS8625.severity = none
dotnet_diagnostic.CS8765.severity = none