File tree 3 files changed +4
-6
lines changed
3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Fixed
11
11
12
12
- [ CLI] Fix loading of ` slnf ` files ([ PR] ( https://github.com/dotnet/roslynator/pull/1447 ) )
13
+ - [ CLI] Fix ` --severity-level ` ([ PR] ( https://github.com/dotnet/roslynator/pull/1449 ) )
13
14
14
15
## [ 4.12.1] - 2024-04-15
15
16
Original file line number Diff line number Diff line change @@ -203,8 +203,7 @@ private IEnumerable<Diagnostic> FilterDiagnostics(IEnumerable<Diagnostic> diagno
203
203
{
204
204
foreach ( Diagnostic diagnostic in diagnostics )
205
205
{
206
- if ( diagnostic . IsEffective ( Options , project . CompilationOptions , cancellationToken )
207
- && ( Options . ReportNotConfigurable || ! diagnostic . Descriptor . CustomTags . Contains ( WellKnownDiagnosticTags . NotConfigurable ) ) )
206
+ if ( diagnostic . IsEffective ( Options , project . CompilationOptions , cancellationToken ) )
208
207
{
209
208
if ( diagnostic . Descriptor . CustomTags . Contains ( WellKnownDiagnosticTags . Compiler ) )
210
209
{
@@ -222,7 +221,8 @@ private IEnumerable<Diagnostic> FilterDiagnostics(IEnumerable<Diagnostic> diagno
222
221
}
223
222
}
224
223
}
225
- else
224
+ else if ( Options . ReportNotConfigurable
225
+ || ! diagnostic . Descriptor . CustomTags . Contains ( WellKnownDiagnosticTags . NotConfigurable ) )
226
226
{
227
227
yield return diagnostic ;
228
228
}
Original file line number Diff line number Diff line change @@ -448,9 +448,6 @@ public static bool IsEffective(
448
448
if ( ! codeAnalysisOptions . IsSupportedDiagnosticId ( diagnostic . Id ) )
449
449
return false ;
450
450
451
- if ( diagnostic . Descriptor . CustomTags . Contains ( WellKnownDiagnosticTags . Compiler ) )
452
- return true ;
453
-
454
451
SyntaxTree ? tree = diagnostic . Location . SourceTree ;
455
452
456
453
ReportDiagnostic reportDiagnostic = diagnostic . Descriptor . GetEffectiveSeverity ( tree , compilationOptions , cancellationToken ) ;
You can’t perform that action at this time.
0 commit comments