| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…the correction should begin on the last line of the left extent and end on the first line of the right extent
There was a problem hiding this comment.
Nice fix, thank you.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Changes the suggested correction extent of PSUseConsistentWhitespace's parameter spacing violations.
When enabled, the CheckParameter setting of this rule checks the spacing between parameters of a command.
An erroneous correction extent was being generated when parameter values spanned multiple lines (such as for arrays, scriptblocks, and hashtables.
For instance, using the below settings to isolate only the CheckParameter part of the rule:
Running the formatter against:
foo { bar } -baz foo @{ 1 = 1 } -baz foo @( 1 ) -bazResulted in:
Fixes #2060
PR Checklist