-
Notifications
You must be signed in to change notification settings - Fork 0
/
.globalconfig
70 lines (53 loc) · 2.88 KB
/
.globalconfig
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
65
66
67
68
69
70
# Copyright (c) Team CharLS.
# SPDX-License-Identifier: BSD-3-Clause
# The following configuration settings are used to control the build-in .NET analyzer in the C# compiler (Roslyn).
# All warnings are by default enabled in the projects.
# Some warnings type are however to noisy and not effective and globally disabled.
is_global = true
# Default severity for analyzer diagnostics
dotnet_analyzer_diagnostic.severity = error
# SA1009 (StyleCop): Closing parenthesis should not be preceded by a space
# Rational: conflicts with auto format.
dotnet_diagnostic.SA1009.severity = none
# SA1101 (StyleCop): Prefix local calls with this
# Rational: follow the style of the .NET core libraries.
dotnet_diagnostic.SA1101.severity = none
# SA1204 (StyleCop): Static members should appear before non-static members
# Rational: static methods are often helpers that are more logical to put at the end.
dotnet_diagnostic.SA1204.severity = none
# SA1309 (StyleCop): Field '' should not begin with an underscore
# Rational: follow the style of the .NET core libraries.
dotnet_diagnostic.SA1309.severity = none
# SA1405 (StyleCop): Debug.Assert should provide message text
# Rational: text doesn't provide additional usefull info. Debug build are only for internal usage.
dotnet_diagnostic.SA1405.severity = none
# SA1413: Use trailing comma in multi-line initializers
# Rational: by style guide don't use trailing comma when not needed.
dotnet_diagnostic.SA1413.severity = none
# SA1503: Braces should not be omitted
# Rational: no braces are allowed for if + throw (no aut checking possible)
dotnet_diagnostic.SA1503.severity = none
# SA1623 (StyleCop): The property's documentation summary text should begin with: 'Gets'
# Rational: fails with properties that use init
dotnet_diagnostic.SA1623.severity = none
# SA1615 (StyleCop): Element return value should be documented
# Rational: Return values are documented in summary, if not already clear.
dotnet_diagnostic.SA1615.severity = none
# CA1062: In externally visible method '', validate parameter '' is non-null before usage
# Rational: non-null is already covered by Nullable
dotnet_diagnostic.CA1062.severity = none
# CA1303: literal string used instead of string from resource
# Rational: Only English is used, no support for other languages by design.
dotnet_diagnostic.CA1303.severity = none
# IDE0055: Fix formatting
# Rational: Formatting rule is incompatible with StyleCop
dotnet_diagnostic.IDE0055.severity = none
# IDE0130: Namespace "CharLS.Managed" does not match folder structure, expected "CharLS.Managed."
# Rational: False warning
dotnet_diagnostic.IDE0130.severity = none
# IDE0046: Convert to conditional expression
# Rational: In many cases the code is more readable without the conditional expression.
dotnet_diagnostic.IDE0046.severity = none
# IDE0010: Add missing swtich cases
# Rational: Conflicts with code coverage.
dotnet_diagnostic.IDE0010.severity = none