-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
executable file
·64 lines (50 loc) · 3.74 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
########################################################################################################################
# Core #
########################################################################################################################
root = true
[*]
end_of_line = lf
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.{csproj,json,plantuml,props,targets,yml}]
indent_size = 2
[*.cs]
indent_size = 4
########################################################################################################################
# StyleCop Analyzers #
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/DOCUMENTATION.md #
########################################################################################################################
# Disabled StyleCop Analyzers
dotnet_diagnostic.SA0001.severity = none # XmlCommentAnalysisDisabled
dotnet_diagnostic.SA1101.severity = none # PrefixLocalCallsWithThis
dotnet_diagnostic.SA1201.severity = none # ElementsMustAppearInTheCorrectOrder
dotnet_diagnostic.SA1309.severity = none # FieldNamesMustNotBeginWithUnderscore
dotnet_diagnostic.SA1402.severity = none # FileMayOnlyContainASingleType
dotnet_diagnostic.SA1413.severity = none # UseTrailingCommasInMultiLineInitializers
dotnet_diagnostic.SA1600.severity = none # ElementsMustBeDocumented
dotnet_diagnostic.SA1601.severity = none # PartialElementsMustBeDocumented
dotnet_diagnostic.SA1602.severity = none # EnumerationItemsMustBeDocumented
dotnet_diagnostic.SA1633.severity = none # FileMustHaveHeader
########################################################################################################################
# Roslyn Analyzers - .NET code style unnecessary code rules #
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/unnecessary-code-rules #
########################################################################################################################
dotnet_diagnostic.IDE0058.severity = warning # Expression value is never used
########################################################################################################################
# Roslyn Analyzers - .NET code style language rules #
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules #
########################################################################################################################
csharp_using_directive_placement = outside_namespace:warning
csharp_style_var_elsewhere = true:warning
csharp_style_var_for_built_in_types = true:warning
csharp_style_var_when_type_is_apparent = true:warning
file_header_template = Copyright (c) Arjen Post. See LICENSE in the project root for license information.
dotnet_diagnostic.IDE0073.severity = warning # Require file header
########################################################################################################################
# Roslyn Analyzers - .NET code style formatting rules #
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/formatting-rules #
########################################################################################################################
csharp_style_namespace_declarations = file_scoped:warning