Skip to content

Commit 9382e38

Browse files
author
Kapil Borle
committed
Change field name in UseConsistentIndentation rule
1 parent 7161cf1 commit 9382e38

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Rules/UseConsistentIndentation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
2828
#endif
2929
class UseConsistentIndentation : IScriptRule
3030
{
31-
private readonly int unitsPerIndentationLevel;
31+
private readonly int indentationSize;
3232
private enum IndentationKind { Space, Tab };
3333
private IndentationKind indentationKind;
3434

3535
UseConsistentIndentation()
3636
{
3737
// TODO make this configurable
3838
indentationKind = IndentationKind.Space;
39-
unitsPerIndentationLevel = indentationKind == IndentationKind.Space ? 4 : 1;
39+
indentationSize = indentationKind == IndentationKind.Space ? 4 : 1;
4040
}
4141

4242
/// <summary>
@@ -156,7 +156,7 @@ private int GetIndentationColumnNumber(int indentationLevel)
156156

157157
private int GetIndentation(int indentationLevel)
158158
{
159-
return indentationLevel * this.unitsPerIndentationLevel;
159+
return indentationLevel * this.indentationSize;
160160
}
161161

162162
private char GetIndentationChar()

0 commit comments

Comments
 (0)