We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea441c commit f1f53f6Copy full SHA for f1f53f6
Rules/AvoidTrailingWhitespace.cs
@@ -54,7 +54,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
54
}
55
56
int startColumnOfTrailingWhitespace = 1;
57
- for (int i = line.Length - 2; i > 0; i--)
+ for (int i = line.Length - 2; i >= 0; i--)
58
{
59
if (line[i] != ' ' && line[i] != '\t')
60
0 commit comments