File tree 3 files changed +16
-8
lines changed
3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ csharp_style_expression_bodied_properties = true:silent
113
113
# IDE0025: Use expression body for properties
114
114
dotnet_diagnostic.IDE0025.severity = silent
115
115
116
+ # Member preferences (these analyzers are unreliable)
117
+ # IDE0051: Remove unused private member
118
+ dotnet_diagnostic.IDE0051.severity = silent
119
+ # IDE0052: Remove unread private member
120
+ dotnet_diagnostic.IDE0052.severity = silent
121
+
116
122
# Code-block preferences
117
123
csharp_prefer_braces = true :silent
118
124
# IDE0011: Add braces
@@ -142,11 +148,13 @@ dotnet_diagnostic.IDE0047.severity = silent
142
148
# IDE0048: Add parentheses for clarity
143
149
dotnet_diagnostic.IDE0048.severity = silent
144
150
151
+ # Switch preferences
145
152
# IDE0010: Add missing cases to switch statement
146
153
dotnet_diagnostic.IDE0010.severity = silent
147
154
# IDE0072: Add missing cases to switch expression
148
155
dotnet_diagnostic.IDE0072.severity = silent
149
156
157
+ # Null check preferences
150
158
# IDE0029: Null check can be simplified
151
159
dotnet_diagnostic.IDE0029.severity = silent
152
160
# IDE0030: Null check can be simplified
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ concurrency:
21
21
cancel-in-progress : true
22
22
23
23
env :
24
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
24
+ DOTNET_NOLOGO : true
25
25
DOTNET_CLI_TELEMETRY_OPTOUT : true
26
26
27
27
jobs :
47
47
with :
48
48
# Block buggy release from February 11, 2025
49
49
dotnet-version : |
50
- 8.0.309
51
- 9.0.103
50
+ 8.0.*
51
+ 9.0.*
52
52
- name : Show installed versions
53
53
shell : pwsh
54
54
run : |
@@ -166,8 +166,8 @@ jobs:
166
166
with :
167
167
# Block buggy release from February 11, 2025
168
168
dotnet-version : |
169
- 8.0.309
170
- 9.0.103
169
+ 8.0.*
170
+ 9.0.*
171
171
- name : Git checkout
172
172
uses : actions/checkout@v4
173
173
- name : Restore tools
@@ -222,8 +222,8 @@ jobs:
222
222
with :
223
223
# Block buggy release from February 11, 2025
224
224
dotnet-version : |
225
- 8.0.309
226
- 9.0.103
225
+ 8.0.*
226
+ 9.0.*
227
227
- name : Git checkout
228
228
uses : actions/checkout@v4
229
229
with :
Original file line number Diff line number Diff line change 22
22
Taking the suggestion TODAY produces List<string>, but the spec doesn't require that, so the compiler may change it over time.
23
23
As a result, callers that cast back to List<string> will face a breaking change.
24
24
-->
25
- <UseCollectionExpressionRules >IDE0028;IDE0300;IDE0301;IDE0302;IDE0303;IDE0304;IDE0305</UseCollectionExpressionRules >
25
+ <UseCollectionExpressionRules >IDE0028;IDE0300;IDE0301;IDE0302;IDE0303;IDE0304;IDE0305;IDE0306 </UseCollectionExpressionRules >
26
26
<NoWarn >$(NoWarn);$(UseCollectionExpressionRules)</NoWarn >
27
27
28
28
<!-- Suppress warning that targeting .NET Standard 1.0 is not recommended, because it requires a breaking change. -->
You can’t perform that action at this time.
0 commit comments