GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Fix bug with PipelineIndentationStyle.None where break instead of continue statement was used by bergmeister · Pull Request #1497 · PowerShell/PSScriptAnalyzer Conversation
|
| int searchLine; | ||
| do | ||
| { | ||
| searchLine = tokens[searchIndex].Extent.StartLineNumber; |
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
PipelineIndentationStyle: Incorrect formatting when using None
There was an error while loading. Please reload this page.