-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy path.editorconfig
More file actions
36 lines (25 loc) · 956 Bytes
/
.editorconfig
File metadata and controls
36 lines (25 loc) · 956 Bytes
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
# EditorConfig helps developers define and
# maintain consistent coding styles between
# different editors and IDEs
# https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 4
[*.{proj,csproj,vcxproj,xproj,json,config,nuspec,xml,yml}]
indent_style = space
indent_size = 2
##########################################################################################
# Analysis settings
[*.cs]
# CSharpIsNull Analyzers
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
# CSIsNull001: Use `is null` for null checks
dotnet_diagnostic.CSIsNull001.severity = warning
# CSIsNull002: Use `is object` for non-null checks
dotnet_diagnostic.CSIsNull002.severity = warning
# Microsoft NetAnalyzer
# This relates to classes that have finalizers, but we should not have any finalizer
# CA1816: Dispose methods should call SuppressFinalize
dotnet_diagnostic.CA1816.severity = none