Skip to content

PipelineIndentation: when not set to NoIndentation: does not cater for case where line continuation token is used instead of pipeline (->missing indentation) #1317

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

Open
bergmeister opened this issue Aug 21, 2019 · 0 comments

Comments

@bergmeister
Copy link
Collaborator

foo `
-bar |
baz
foo `
# comment
-bar |
baz

Expected behavior

Calling Invoke-Formatter on it (PipelineIndentation is not NoIndentation, which is not the default), then baz should be indented twice (once because of the previous backtick and once because of the rule itself. It only gets indented once

foo `
    # comment
    -bar |
        baz

Actual behavior

foo `
    # comment
    -bar |
    baz

If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *

Environment data

PSSA 1.18,1 or latest version of master

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

No branches or pull requests

2 participants