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 a4292c1 commit ffa9006Copy full SHA for ffa9006
Rules/UseConsistentIndentation.cs
@@ -265,12 +265,14 @@ private int GetIndentationColumnNumber(int indentationLevel)
265
266
private int GetIndentation(int indentationLevel)
267
{
268
- return indentationLevel * this.IndentationSize;
+ // todo if condition can be evaluated during rule configuration
269
+ return indentationLevel * (InsertSpaces ? this.IndentationSize : 1);
270
}
271
272
private char GetIndentationChar()
273
- return indentationKind == IndentationKind.Space ? ' ' : '\t';
274
+ // todo can be evaluated during rule configuration
275
+ return InsertSpaces ? ' ' : '\t';
276
277
278
private string GetIndentationString(int indentationLevel)
0 commit comments