-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
126 lines (87 loc) · 3.6 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[*.cs]
csharp_style_var_for_built_in_types=true:silent
csharp_style_var_when_type_is_apparent=true:silent
csharp_style_var_elsewhere=true:silent
##
## IDE
##
# Unnecessary imports/usings are error-worthy.
dotnet_diagnostic.IDE0005.severity = Error
# Collection initialization simplification needs not be suggested.
dotnet_diagnostic.IDE0028.severity = None
# Ternary operator suggestions are not needed, I'll use it when I want to
dotnet_diagnostic.IDE0045.severity = None
# Ternary operator suggestions are not needed, I'll use it when I want to
dotnet_diagnostic.IDE0046.severity = None
# Range operator is not clear coding in my opinion.
dotnet_diagnostic.IDE0057.severity = None
# Switch expression suggestions are fine.
dotnet_diagnostic.IDE0066.severity = None
# Disagree about clarity of primary constructor
dotnet_diagnostic.IDE0290.severity = None
# Collection initialization simplification needs not be suggested.
dotnet_diagnostic.IDE0305.severity = None
# Disallow multiple empty lines in a row
dotnet_style_allow_multiple_blank_lines_experimental = false:warning
# File scoped namespaces reduce indentation are just a good practice
csharp_style_namespace_declarations = file_scoped:warning
# Tuple names are a good practice for clarity
dotnet_style_explicit_tuple_names = true:warning
# Conditionals for clarity, not enforced
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
##
## StyleCop.Analyzers
##
# XML comment analysis is disabled due to project configuration
dotnet_diagnostic.SA0001.severity = None
# Closing parenthesis should not be preceded by a space
dotnet_diagnostic.SA1009.severity = Warning
# Square brackets preceded by space is fine.
dotnet_diagnostic.SA1010.severity = None
# Prefix local calls with this
dotnet_diagnostic.SA1101.severity = None
# Put constructor initializers on their own line
dotnet_diagnostic.SA1128.severity = None
# Using directive should appear within a namespace declaration
dotnet_diagnostic.SA1200.severity = None
# Static members should come before non-static members
dotnet_diagnostic.SA1204.severity = Warning
# Fields should begin with a lowercase letter
dotnet_diagnostic.SA1306.severity = None
# Field '_blah' should not begin with an underscore
dotnet_diagnostic.SA1309.severity = None
# Fields can be protected
dotnet_diagnostic.SA1401.severity = None
# Arithmetic operation precedence is self-explanatory
dotnet_diagnostic.SA1407.severity = None
# Use trailing comma in multi-line initializers
dotnet_diagnostic.SA1413.severity = None
# Usings do not need blank lines in-between
dotnet_diagnostic.SA1516.severity = None
# Enumeration items do not need to be documented
dotnet_diagnostic.SA1602.severity = None
# Allow properties to contain any kind of documentation line.
dotnet_diagnostic.SA1623.severity = None
# No need to always set header
dotnet_diagnostic.SA1633.severity = None
##
## SonarAnalyzers.CSharp
##
# Remove this commented out code
dotnet_diagnostic.S125.severity = Suggestion
# There should be no need to always merge nested ifs
dotnet_diagnostic.S1066.severity = Suggestion
# LINQ suggester is quite aggressive, but for a reason
dotnet_diagnostic.S3267.severity = Warning
# LINQ suggester is too aggressive, but for a reason
dotnet_diagnostic.S3358.severity = Warning
# Please provide assembly versions
dotnet_diagnostic.S3904.severity = Warning
##
## Orleans
##
# I do not want to use Orleans binary serialization. Clarity over speed here.
dotnet_diagnostic.ORLEANS0005.severity = None
# No alias nagging please
dotnet_diagnostic.ORLEANS0010.severity = None