Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Engine/Settings/CodeFormatting.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
PSUseConsistentIndentation = @{
Enable = $true
Kind = 'space'
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
IndentationSize = 4
}

Expand Down
2 changes: 1 addition & 1 deletion Engine/Settings/CodeFormattingAllman.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
PSUseConsistentIndentation = @{
Enable = $true
Kind = 'space'
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
IndentationSize = 4
}

Expand Down
2 changes: 1 addition & 1 deletion Engine/Settings/CodeFormattingOTBS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
PSUseConsistentIndentation = @{
Enable = $true
Kind = 'space'
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
IndentationSize = 4
}

Expand Down
2 changes: 1 addition & 1 deletion Engine/Settings/CodeFormattingStroustrup.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
PSUseConsistentIndentation = @{
Enable = $true
Kind = 'space'
PipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
IndentationSize = 4
}

Expand Down
4 changes: 2 additions & 2 deletions Rules/UseConsistentIndentation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public string PipelineIndentation
if (String.IsNullOrWhiteSpace(value) ||
!Enum.TryParse(value, true, out pipelineIndentationStyle))
{
pipelineIndentationStyle = PipelineIndentationStyle.IncreaseIndentationAfterEveryPipeline;
pipelineIndentationStyle = PipelineIndentationStyle.IncreaseIndentationForFirstPipeline;
}
}
}
Expand All @@ -96,7 +96,7 @@ private enum PipelineIndentationStyle
// TODO make this configurable
private IndentationKind indentationKind = IndentationKind.Space;

private PipelineIndentationStyle pipelineIndentationStyle = PipelineIndentationStyle.IncreaseIndentationAfterEveryPipeline;
private PipelineIndentationStyle pipelineIndentationStyle = PipelineIndentationStyle.IncreaseIndentationForFirstPipeline;

/// <summary>
/// Analyzes the given ast to find violations.
Expand Down