- Notifications
You must be signed in to change notification settings - Fork407
PSAlignAssignmentStatement: Ignore hashtables with a single key-value pair#1986
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
PSAlignAssignmentStatement: Ignore hashtables with a single key-value pair#1986
Uh oh!
There was an error while loading.Please reload this page.
Conversation
liamjpeters commentedMar 27, 2024
My git-foo is not strong so this is a re-raise of#1983 where the full test checks were completed and passed |
bergmeister left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Nice to fix this undesired side effect in this case. the formatting rules have so many special oddities 😅
andyleejordan left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
…g on a single line, and not checked for violations.
57cb24b tod831fbaCompare20135fb intoPowerShell:mainUh oh!
There was an error while loading.Please reload this page.
PR Summary
Hashtables with a single key-value pair should be ignored by
PSAlignAssignmentStatementas there is nothing to align.There are other rules that handle whitespace around operators etc which can handle formatting according to the users preference.
Currently:
Results in:
Note the space added after the hashtable key
Resolves#1979
PR Checklist
.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.