Skip to content

Make IncreaseIndentationForFirstPipeline the true default option for PipelineIndentationStyle option #1218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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