-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlobalAnalyzerConfig.globalconfig
More file actions
97 lines (72 loc) · 4.27 KB
/
GlobalAnalyzerConfig.globalconfig
File metadata and controls
97 lines (72 loc) · 4.27 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
is_global = true
# Microsoft C# Code Analysis Rules
# CA1031: Do not catch general exception types
dotnet_diagnostic.CA1031.severity = warning
# CA2007: Consider calling ConfigureAwait (disabled for libraries as per Microsoft guidance)
dotnet_diagnostic.CA2007.severity = none
# CA1848: Use LoggerMessage delegates for high-performance logging
dotnet_diagnostic.CA1848.severity = suggestion
# CA1716: Identifiers should not match keywords
dotnet_diagnostic.CA1716.severity = warning
# CA1710: Identifiers should have correct suffix
dotnet_diagnostic.CA1710.severity = suggestion
# CA1062: Validate arguments of public methods
dotnet_diagnostic.CA1062.severity = warning
# CA1304: Specify CultureInfo
dotnet_diagnostic.CA1304.severity = warning
# CA1305: Specify IFormatProvider
dotnet_diagnostic.CA1305.severity = warning
# CA2000: Dispose objects before losing scope
dotnet_diagnostic.CA2000.severity = warning
# CA2234: Pass system uri objects instead of strings
dotnet_diagnostic.CA2234.severity = suggestion
# CA1014: Mark assemblies with CLSCompliant
dotnet_diagnostic.CA1014.severity = none
# IDE0058: Expression value is never used
dotnet_diagnostic.IDE0058.severity = none
# IDE0160: Convert to file-scoped namespace
dotnet_diagnostic.IDE0160.severity = warning
# IDE0161: Convert to file-scoped namespace
dotnet_diagnostic.IDE0161.severity = warning
# Style rules
dotnet_diagnostic.IDE0007.severity = suggestion # Use implicit type
dotnet_diagnostic.IDE0008.severity = suggestion # Use explicit type
# Naming rules
dotnet_diagnostic.IDE1006.severity = warning # Naming rule violation
# Async rules
dotnet_diagnostic.VSTHRD200.severity = warning # Use "Async" suffix for async methods
dotnet_diagnostic.VSTHRD103.severity = warning # Call async methods when in an async method
# Security rules
dotnet_diagnostic.CA3075.severity = warning # Insecure DTD processing
dotnet_diagnostic.CA5350.severity = warning # Do not use weak cryptographic algorithms
dotnet_diagnostic.CA5351.severity = warning # Do not use broken cryptographic algorithms
# Performance rules
dotnet_diagnostic.CA1813.severity = suggestion # Avoid unsealed attributes
dotnet_diagnostic.CA1815.severity = suggestion # Override equals and operator equals on value types
dotnet_diagnostic.CA1819.severity = warning # Properties should not return arrays
# Design rules
dotnet_diagnostic.CA1040.severity = none # Avoid empty interfaces (disabled as they can be valid)
dotnet_diagnostic.CA1034.severity = suggestion # Nested types should not be visible
# Reliability rules
dotnet_diagnostic.CA2002.severity = warning # Do not lock on objects with weak identity
dotnet_diagnostic.CA2015.severity = warning # Do not define finalizers for types derived from MemoryManager<T>
# Usage rules
dotnet_diagnostic.CA2227.severity = suggestion # Collection properties should be read only
dotnet_diagnostic.CA2225.severity = suggestion # Operator overloads have named alternates
# Additional Microsoft Best Practice Rules
dotnet_diagnostic.CA1303.severity = suggestion # Do not pass literals as localized parameters
dotnet_diagnostic.CA1308.severity = warning # Normalize strings to uppercase
dotnet_diagnostic.CA1707.severity = warning # Identifiers should not contain underscores
dotnet_diagnostic.CA1711.severity = suggestion # Identifiers should not have incorrect suffix
dotnet_diagnostic.CA1712.severity = suggestion # Do not prefix enum values with type name
dotnet_diagnostic.CA1715.severity = warning # Identifiers should have correct prefix
dotnet_diagnostic.CA1720.severity = suggestion # Identifier contains type name
dotnet_diagnostic.CA1724.severity = suggestion # Type names should not match namespaces
dotnet_diagnostic.CA1806.severity = warning # Do not ignore method results
dotnet_diagnostic.CA1822.severity = suggestion # Mark members as static
dotnet_diagnostic.CA1823.severity = warning # Avoid unused private fields
# Modern C# Style Rules
dotnet_diagnostic.IDE0290.severity = warning # Use primary constructor
dotnet_diagnostic.IDE0300.severity = warning # Use collection expression for array
dotnet_diagnostic.IDE0301.severity = warning # Use collection expression for empty
dotnet_diagnostic.IDE0305.severity = warning # Use collection expression for fluent