| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
this looks fine
Sorry, something went wrong.
| DiagnosticRecord = $violations[0] | ||
| CorrectionsCount = 1 | ||
| ViolationText = "baz" | ||
| CorrectionText = (New-Object -TypeName String -ArgumentList $indentationUnit, ($indentationSize * 1)) + 'baz' |
There was a problem hiding this comment.
this could also be written without using New-Object:
CorrectionText = ($indentationUnit * $indentationSize) + 'baz'it's sort of a toss up as to which one is more readable
Sorry, something went wrong.
There was a problem hiding this comment.
Good idea, thanks, I applied it, I could even remove the parenthesis because multiplication takes precedence over addition
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Fixes #1406
The code assumed that the first pipe in a pipeline Ast is the last one on that line, which made the code not work in the following scenario (where it did not add the indentation in the 2nd line)
Therefore add code to be able to determine the last pipe on the line were the first pipe occurs
cc Felix Becker (@felixfbecker)
PR Checklist