@@ -58,7 +58,7 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
58
58
if ( ! commandName . Equals ( correctlyCasedCommandName , StringComparison . Ordinal ) )
59
59
{
60
60
yield return new DiagnosticRecord (
61
- string . Format ( CultureInfo . CurrentCulture , Strings . UseCorrectCasingError , commandName , shortName ) ,
61
+ string . Format ( CultureInfo . CurrentCulture , Strings . UseCorrectCasingError , commandName , correctlyCasedCommandName ) ,
62
62
GetCommandExtent ( commandAst ) ,
63
63
GetName ( ) ,
64
64
DiagnosticSeverity . Warning ,
@@ -91,7 +91,7 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
91
91
if ( ! parameterName . Equals ( correctlyCasedParameterName , StringComparison . Ordinal ) )
92
92
{
93
93
yield return new DiagnosticRecord (
94
- string . Format ( CultureInfo . CurrentCulture , Strings . UseCorrectCasingError , commandName , parameterName ) ,
94
+ string . Format ( CultureInfo . CurrentCulture , Strings . UseCorrectCasingParameterError , parameterName , commandName , correctlyCasedParameterName ) ,
95
95
GetCommandExtent ( commandAst ) ,
96
96
GetName ( ) ,
97
97
DiagnosticSeverity . Warning ,
0 commit comments