-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
78 lines (73 loc) · 3.18 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
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
[*.cs]
# インデント数: 4
indent_size = 4
# コードブロック
# usingの配置: namespaceの外
csharp_using_directive_placement = outside_namespace:suggestion
# 中かっこの使用条件: 複数行の場合
csharp_prefer_braces = when_multiline:suggestion
# 単純なusingステートメントの使用
csharp_prefer_simple_using_statement = true:suggestion
# namespaceの宣言をファイルスコープに統一
csharp_style_namespace_declarations = file_scoped:suggestion
# プライマリコンストラクタの使用を優先
csharp_style_prefer_primary_constructors = true:suggestion
# オブジェクト初期化を使用
dotnet_style_object_initializer = true:suggestion
# コレクション初期化子を使用
dotnet_style_collection_initializer = true:suggestion
# コレクション式を使用
dotnet_style_prefer_collection_expression = true:suggestion
# nullチェック簡略化
dotnet_style_coalesce_expression = true:warning
# 明示的に提供されたタプル名を使用
dotnet_style_explicit_tuple_names = true:suggestion
# 推定メンバーの名前を使用
dotnet_style_prefer_inferred_tuple_names = true:warning
# is nullの使用
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
# 代入に条件式を使用
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
# 戻り値に条件式を使用
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
# 複合代入の使用
dotnet_style_prefer_compound_assignment = true:suggestion
# 補間を簡略化
dotnet_style_prefer_simplified_interpolation = false:warning
# 条件式を簡略化
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
# new式を簡略化
csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
# 流暢なコレクション式を使用
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
# this.とMe.
dotnet_style_qualification_for_event = false:silent
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_property = false:silent
# 型参照のためのフレームワーク型名の代わりに言語キーワードを使用
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_predefined_type_for_member_access = true:silent
# 改行時の演算子の位置
dotnet_style_operator_placement_when_wrapping = end_of_line:silent
# readonlyの追加
dotnet_style_readonly_field = true:suggestion
# 空行の連続を許可
dotnet_style_allow_multiple_blank_lines_experimental = false:suggestion
# 中かっこ間の空行の連続を許可
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false:suggestion
# 明示的な型宣言を行うか
csharp_style_var_elsewhere = false:silent
csharp_style_var_for_built_in_types = false:silent
csharp_style_var_when_type_is_apparent = false:silent
[*.{csproj,xml,json,resx,yml,vue,ts}]
indent_size = 2