-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.globalconfig
144 lines (96 loc) · 4.1 KB
/
common.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Common config for all projects
# Assume analysis level latest-all and adjust from there.
is_global = true
#global_level = 0
dotnet_code_quality.api_surface = all
# CA1002: Do not expose generic lists
dotnet_code_quality.CA1002.api_surface = public
# CA1051: Do not declare visible instance fields
dotnet_code_quality.CA1051.api_surface = public
# CA1062: Validate arguments of public methods
dotnet_code_quality.CA1062.api_surface = public
# CA1707: Identifiers should not contain underscores
dotnet_code_quality.CA1707.api_surface = public
# CA1802: Use literals where appropriate
dotnet_code_quality.CA1802.api_surface = private, internal
# CA1812: Avoid uninstantiated internal classes
dotnet_code_quality.CA1812.ignore_internalsvisibleto = true
# CA1852: Seal internal types
dotnet_code_quality.CA1852.ignore_internalsvisibleto = true
# IDE0001: Simplify Name
dotnet_diagnostic.IDE0001.severity = warning
# IDE0002: Simplify member access
dotnet_diagnostic.IDE0002.severity = warning
# IDE0003/9: Remove/Add 'this' or 'Me' qualification
dotnet_diagnostic.IDE0003.severity = warning
dotnet_diagnostic.IDE0009.severity = warning
# IDE0007/8: Use implicit/explicit type (var)
dotnet_diagnostic.IDE0007.severity = silent
dotnet_diagnostic.IDE0008.severity = silent
# IDE0010: Add missing cases
dotnet_diagnostic.IDE0010.severity = silent
# IDE0011: Add braces
dotnet_diagnostic.IDE0011.severity = silent
# IDE0017: Simplify object initialization
dotnet_diagnostic.IDE0017.severity = suggestion
# IDE0018: Inline variable declaration
dotnet_diagnostic.IDE0018.severity = suggestion
# IDE0019+260+78: Use pattern matching
dotnet_diagnostic.IDE0019.severity = suggestion
dotnet_diagnostic.IDE0260.severity = suggestion
dotnet_diagnostic.IDE0078.severity = suggestion
# IDE0020+38: Use pattern matching
dotnet_diagnostic.IDE0020.severity = suggestion
dotnet_diagnostic.IDE0038.severity = suggestion
# IDE0021: Use expression body for constructor
dotnet_diagnostic.IDE0021.severity = silent
# IDE0022: Use expression body for method
dotnet_diagnostic.IDE0022.severity = silent
# IDE0023: Use expression body for conversion operator
dotnet_diagnostic.IDE0023.severity = silent
# IDE0024: Use expression body for operator
dotnet_diagnostic.IDE0024.severity = silent
# IDE0025: Use expression body for property
dotnet_diagnostic.IDE0025.severity = silent
# IDE0026: Use expression body for indexer
dotnet_diagnostic.IDE0026.severity = silent
# IDE0027: Use expression body for accessor
dotnet_diagnostic.IDE0027.severity = silent
# IDE0028: Simplify collection initialization
dotnet_diagnostic.IDE0028.severity = suggestion
# IDE0032: Use auto property
dotnet_diagnostic.IDE0032.severity = silent
# IDE0038 ==> IDE0020
# IDE0042: Deconstruct variable declaration
dotnet_diagnostic.IDE0042.severity = suggestion
# IDE0045: Convert to conditional expression (assignment)
dotnet_diagnostic.IDE0045.severity = silent
# IDE0046: Convert to conditional expression (return)
dotnet_diagnostic.IDE0046.severity = silent
# IDE0047: Remove unnecessary parentheses
dotnet_diagnostic.IDE0047.severity = silent
# IDE0048: Add parentheses for clarity
dotnet_diagnostic.IDE0048.severity = silent
# IDE0049 Language keywords vs BCL types
dotnet_diagnostic.IDE0049.severity = warning
# IDE0053: Use expression body for lambda expression
dotnet_diagnostic.IDE0053.severity = silent
# IDE0056: Use index operator
dotnet_diagnostic.IDE0056.severity = suggestion
# IDE0057: Use range operator
dotnet_diagnostic.IDE0057.severity = suggestion
# IDE0058: Expression value is never used
dotnet_diagnostic.IDE0058.severity = silent
# IDE0061: Use expression body for local function
dotnet_diagnostic.IDE0061.severity = silent
# IDE0063: Use simple 'using' statement
dotnet_diagnostic.IDE0063.severity = suggestion
# IDE0066: Convert switch statement to expression
dotnet_diagnostic.IDE0066.severity = suggestion
# IDE0078 ==> IDE0019
# IDE0083: Use pattern matching
dotnet_diagnostic.IDE0083.severity = suggestion
# IDE0210/211: Convert to top-level/Program.Main statements
dotnet_diagnostic.IDE0210.severity = silent
dotnet_diagnostic.IDE0211.severity = silent
# IDE0260 ==> IDE0019