-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
54 lines (37 loc) · 1.97 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
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
# 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]
# CA1002: Do not expose generic lists
dotnet_diagnostic.CA1002.severity = none # Assemblies that raises this warning is not meant to be a reusable library
# 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
# CA1307: Specify StringComparison for clarity
dotnet_diagnostic.CA1307.severity = none # Not required, and MongoDB queries don't support it
# CA1308: Normalize strings to uppercase
dotnet_diagnostic.CA1308.severity = none # I choose if use upper or lower case
# 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 # Not needed with .Net Core. More info https://devblogs.microsoft.com/dotnet/configureawait-faq/
# CS1591: Missing XML comment for publicly visible type or member
dotnet_diagnostic.CS1591.severity = none