Skip to content

Commit 93f1a54

Browse files
author
Quoc Truong
committed
Change RuleSuppressionID of UninitializedVariable
1 parent 99956f2 commit 93f1a54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rules/AvoidUnitializedVariable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
4242
if (Helper.Instance.IsUninitialized(varAst, ast))
4343
{
4444
yield return new DiagnosticRecord(string.Format(CultureInfo.CurrentCulture, Strings.AvoidUninitializedVariableError, varAst.VariablePath.UserPath),
45-
varAst.Extent, GetName(), DiagnosticSeverity.Warning, fileName, string.Format(CultureInfo.CurrentCulture, "{0}{1}", GetName(), varAst.VariablePath.UserPath));
45+
varAst.Extent, GetName(), DiagnosticSeverity.Warning, fileName, varAst.VariablePath.UserPath);
4646
}
4747
}
4848

@@ -59,7 +59,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
5959
if (Helper.Instance.IsUninitialized(varAst, funcAst))
6060
{
6161
yield return new DiagnosticRecord(string.Format(CultureInfo.CurrentCulture, Strings.AvoidUninitializedVariableError, varAst.VariablePath.UserPath),
62-
varAst.Extent, GetName(), DiagnosticSeverity.Warning, fileName, string.Format(CultureInfo.CurrentCulture, "{0}{1}", GetName(), varAst.VariablePath.UserPath));
62+
varAst.Extent, GetName(), DiagnosticSeverity.Warning, fileName, varAst.VariablePath.UserPath);
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)