Skip to content

Conversation

bergmeister
Copy link
Collaborator

@bergmeister bergmeister commented May 13, 2020

PR Summary

Fixes #1496

Also added another test case that would've caught it.

PR Checklist

…tinue statement was used. TODO: Fix test that starts to fail because of this now
bergmeister and others added 2 commits June 11, 2020 21:47
@bergmeister bergmeister merged commit 8e6182f into PowerShell:master Jun 11, 2020
int searchLine;
do
{
searchLine = tokens[searchIndex].Extent.StartLineNumber;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! My switch suggestion got lost! Ugh, too much context switching... Anyway, not an issue

Copy link
Collaborator Author

@bergmeister bergmeister Jun 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I addressed your comment here by not initializing it: #1497 (comment)
Or did you mean a switch around tokens[searchIndex].Kind? I don't see too much value in it tbh. Switch statements don't look that much cleaner for simple cases like that IMHO because of their ceremony that requires additional indentation layer, break statements, etc..
Otherwise we can always create a follow up PR

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

Successfully merging this pull request may close these issues.

PipelineIndentationStyle: Incorrect formatting when using None
2 participants