diff --git a/src/D2L.CodeStyle.Analyzers/Immutability/ImmutabilityAnalyzer.cs b/src/D2L.CodeStyle.Analyzers/Immutability/ImmutabilityAnalyzer.cs index f0cbf3fc..12615932 100644 --- a/src/D2L.CodeStyle.Analyzers/Immutability/ImmutabilityAnalyzer.cs +++ b/src/D2L.CodeStyle.Analyzers/Immutability/ImmutabilityAnalyzer.cs @@ -280,11 +280,11 @@ AnnotationsContext annotationsContext ctx.ReportDiagnostic( Diagnostics.ConflictingImmutability, parameter.Locations[0], - messageArgs: new[] { + messageArgs: [ "Immutable", "ConditionallyImmutable.OnlyIf", "typeparameter" - } + ] ); } } diff --git a/src/D2L.CodeStyle.Analyzers/Immutability/ReadOnlyParameterAnalyzer.cs b/src/D2L.CodeStyle.Analyzers/Immutability/ReadOnlyParameterAnalyzer.cs index 3d5825e8..120467a6 100644 --- a/src/D2L.CodeStyle.Analyzers/Immutability/ReadOnlyParameterAnalyzer.cs +++ b/src/D2L.CodeStyle.Analyzers/Immutability/ReadOnlyParameterAnalyzer.cs @@ -112,7 +112,7 @@ Location getLocation() { ctx.ReportDiagnostic( Diagnostics.ReadOnlyParameterIsnt, getLocation(), - messageArgs: new[] { "is an in/ref/out parameter" } + messageArgs: [ "is an in/ref/out parameter" ] ); } @@ -128,7 +128,7 @@ Location getLocation() { ctx.ReportDiagnostic( Diagnostics.ReadOnlyParameterIsnt, getLocation(), - messageArgs: new[] { "is assigned to and/or passed by reference" } + messageArgs: [ "is assigned to and/or passed by reference" ] ); } }