◐ Shell
clean mode source ↗

UseConsistentIndentation: When non-default options are used, cater for the case of a comment between pipe and newline by bergmeister · Pull Request #1463 · PowerShell/PSScriptAnalyzer

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@bergmeister

Copy link Copy Markdown

Collaborator

PR Summary

Fixed #1459 so that indentation gets increased for setting values of IncreaseIndentationForFirstPipeline or IncreaseIndentationAfterEveryPipeline if there is a comment between pipe and newline (the comment caused it not work because it peeked only at the next token when checking for the newline or line continuation token.

PR Checklist

…r the case of a comment between pipe and newline

@bergmeister bergmeister merged commit 53ece47 into PowerShell:master

Apr 28, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JamesWTruher JamesWTruher Awaiting requested review from JamesWTruher

1 more reviewer

@rjmholt rjmholt rjmholt approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Formatter fails for multi-line pipelines when the first line has two or more pipes

2 participants

@bergmeister @rjmholt