-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
108 lines (80 loc) · 3.09 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
# Don't use tabs for indentation.
[*]
indent_style = space
# (Please don't specify an indent_size here; that has too many unintended consequences.)
# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
# Xml project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
# Xml config files
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
indent_size = 2
# WiX files
[*.{wxs,wxi,wxl}]
indent_size = 2
# JSON files
[*.json]
indent_size = 2
# C#/VB files
[*.{cs,vb}]
#### Core EditorConfig Options ####
# New line preferences
end_of_line = crlf
insert_final_newline = false
#### .NET Coding Conventions ####
# Sort using and Import directives with System.* appearing first
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true
# Force "this." and "Me."
dotnet_style_qualification_for_field = true:suggestion
dotnet_style_qualification_for_property = true:suggestion
dotnet_style_qualification_for_method = true:suggestion
dotnet_style_qualification_for_event = true:suggestion
# Field preferences
dotnet_style_readonly_field = true:suggestion
#### ROSLYNATOR ####
# Settings
roslynator_accessibility_modifiers = explicit
roslynator_enum_has_flag_style = operator
roslynator_object_creation_type_style = implicit_when_type_is_obvious
#### C# Coding Conventions ####
[*.cs]
# Prefer "var" everywhere
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
# Prefer expression-bodied members
csharp_style_expression_bodied_accessors = true:suggestion
csharp_style_expression_bodied_constructors = true:suggestion
csharp_style_expression_bodied_indexers = true:suggestion
csharp_style_expression_bodied_lambdas = true:suggestion
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_expression_bodied_methods = true:suggestion
csharp_style_expression_bodied_operators = true:suggestion
csharp_style_expression_bodied_properties = true:suggestion
# Prefer pattern matching
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_prefer_pattern_matching = true:silent
csharp_style_prefer_switch_expression = true:suggestion
# Using directive placement
csharp_using_directive_placement = inside_namespace
csharp_style_namespace_declarations=file_scoped:warning
#### MEZIANTOU ####
# MA0048: File name must match type name
dotnet_diagnostic.MA0048.severity = none
# MA0051: Method is too long
dotnet_diagnostic.MA0051.severity = none
# MA0056: Do not call overridable members in constructor
dotnet_diagnostic.MA0056.severity = none
#### SONAR ####
# S6618: "string.Create" should be used instead of "FormattableString"
dotnet_diagnostic.S6618.severity = none
#### STYLECOP ####
# SA1010: Opening square brackets should be spaced correctly
dotnet_diagnostic.SA1010.severity = none