-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
27 lines (23 loc) · 978 Bytes
/
.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
root = true
[*]
end_of_line = crlf
insert_final_newline = true
charset = utf-8
# Code files
[*.{cs,cshtml,ts}]
indent_style = space
indent_size = 4
# Project files
[*.{csproj,props}]
indent_style = space
indent_size = 2
# Analyzers
[*]
csharp_style_inlined_variable_declaration = true:warning # IDE0018: Inline variable declaration
csharp_prefer_simple_default_expression = true:warning # IDE0034: Simplify 'default' expression
dotnet_style_prefer_compound_assignment = true:warning # IDE0054: Use compound assignment
csharp_style_unused_value_assignment_preference = discard_variable:warning # IDE0059: Unnecessary assignment of a value
dotnet_diagnostic.IDE1006.severity = none # Naming Styles
dotnet_diagnostic.IDE0005.severity = warning # Using directive unnecessary
dotnet_diagnostic.IDE0079.severity = warning # Unnecessary suppression
dotnet_diagnostic.IDE0090.severity = warning # Simplify new expression