-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
50 lines (34 loc) · 1.65 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
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
#### Define style ####
# All files
[*]
indent_style = space
# C# Project, JS and CSS files
[*.{csproj,js,ts,css,scss}]
indent_size = 2
#### Suppress warnings ####
# C# files
[*.cs]
# CA1031: Catch general exception types for process next video in case of some error
dotnet_diagnostic.CA1031.severity = none
# CA1034: Nested types should not be visible
dotnet_diagnostic.CA1034.severity = none # Asp.Net Core Pages uses nested models
# CA1054: Uri parameters should not be strings
dotnet_diagnostic.CA1054.severity = none # Asp.Net Core Pages uses strings natively
# CA1056: Uri properties should not be strings
dotnet_diagnostic.CA1056.severity = none # Asp.Net Core Pages uses strings natively
# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = none # Don't need translated exceptions
# CA1308: Normalize strings to uppercase
dotnet_diagnostic.CA1308.severity = none # Also to lower is required
# CA1707: Identifiers should not contain underscores
dotnet_diagnostic.CA1707.severity = none # I like underscores into constants name
# CA1812: Avoid uninstantiated internal classes
dotnet_diagnostic.CA1812.severity = none # Doing extensive use of Dependency Injection
# CA1822: Mark members as static
dotnet_diagnostic.CA1822.severity = none # Don't like static members
# CA2007: Consider calling ConfigureAwait on the awaited task
dotnet_diagnostic.CA2007.severity = none # .Net core doesn't require it
# CA2234: Pass system uri objects instead of strings
dotnet_diagnostic.CA2234.severity = none