Skip to content

Commit b0399bc

Browse files
authored
Make IncreaseIndentationForFirstPipeline the true default option (#1218)
1 parent 823144c commit b0399bc

5 files changed

+6
-6
lines changed

Engine/Settings/CodeFormatting.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
PSUseConsistentIndentation = @{
2727
Enable = $true
2828
Kind = 'space'
29-
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
29+
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
3030
IndentationSize = 4
3131
}
3232

Engine/Settings/CodeFormattingAllman.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
PSUseConsistentIndentation = @{
2727
Enable = $true
2828
Kind = 'space'
29-
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
29+
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
3030
IndentationSize = 4
3131
}
3232

Engine/Settings/CodeFormattingOTBS.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
PSUseConsistentIndentation = @{
2727
Enable = $true
2828
Kind = 'space'
29-
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
29+
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
3030
IndentationSize = 4
3131
}
3232

Engine/Settings/CodeFormattingStroustrup.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
PSUseConsistentIndentation = @{
2828
Enable = $true
2929
Kind = 'space'
30-
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
30+
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
3131
IndentationSize = 4
3232
}
3333

Rules/UseConsistentIndentation.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public string PipelineIndentation
7070
if (String.IsNullOrWhiteSpace(value) ||
7171
!Enum.TryParse(value, true, out pipelineIndentationStyle))
7272
{
73-
pipelineIndentationStyle = PipelineIndentationStyle.IncreaseIndentationAfterEveryPipeline;
73+
pipelineIndentationStyle = PipelineIndentationStyle.IncreaseIndentationForFirstPipeline;
7474
}
7575
}
7676
}
@@ -96,7 +96,7 @@ private enum PipelineIndentationStyle
9696
// TODO make this configurable
9797
private IndentationKind indentationKind = IndentationKind.Space;
9898

99-
private PipelineIndentationStyle pipelineIndentationStyle = PipelineIndentationStyle.IncreaseIndentationAfterEveryPipeline;
99+
private PipelineIndentationStyle pipelineIndentationStyle = PipelineIndentationStyle.IncreaseIndentationForFirstPipeline;
100100

101101
/// <summary>
102102
/// Analyzes the given ast to find violations.

0 commit comments

Comments
 (0)