File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments