forked from UnityTech/UIWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
91 lines (68 loc) · 2.14 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
##########################################
#### ####
#### EditorConfig for JetBrains Rider ####
#### ####
#### by Project UIWidget ####
#### ####
##########################################
################# How to #################
#
# (1) Code Cleanup
#
# Prepare: Preferences -> Manage Layers ->
# add a layer from UIWidgetCleanupPlugin.
# DotSettings to your personal layer
#
# Whenever want to clean-up, use
# Menu -> Code -> Code Cleanup -> UIWidget
# -> OK
#
#
# (2) Code Inspect
# Preferences -> Editor -> Inspection
# Settings -> select "Read settings from
# editorconfig..."
#
############################################
#### !!!! EditorConfig Starts Here !!!! #####
root = true
# For CSharp Only
[*.cs]
################
# Code Cleanup #
################
# indents (4 spaces)
indent_style=space
indent_size=4
# no requirement for converting type declaration to var
csharp_for_built_in_types=can_use_either
csharp_for_other_types=can_use_either
csharp_for_simple_types=can_use_either
# use this.{} for all instance members
csharp_instance_members_qualify_members=all
# all braces start at the end of a line
csharp_brace_style=end_of_line
# don't use 'private' whenever possible
csharp_default_private_modifier=implicit
csharp_default_internal_modifier=implicit
# not requirement for converting named arguments into positioned arguments whenever possible
csharp_arguments_named=named
# add braces whenever necessary
csharp_braces_for_ifelse=required
csharp_braces_for_for=required
csharp_braces_for_foreach=required
csharp_braces_for_while=required
csharp_braces_for_dowhile=required
csharp_braces_for_using=required
csharp_braces_for_fixed=required
csharp_braces_redundant=true
# prefer block_body to expression_body
csharp_method_or_operator_body=block_body
csharp_local_function_body=block_body
csharp_constructor_or_destructor_body=block_body
csharp_accessor_owner_body=accessors_with_block_body
###################
# CODE INSPECTION #
###################
# use this.{} for all instance members
resharper_arrange_this_qualifier_highlighting=error