-
Notifications
You must be signed in to change notification settings - Fork 395
Invoke-Formatter PSAlignAssignmentStatement Rule errors when a Property Name is specified as an Object Property #1003
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@X-Guardian Thanks for the detailed report. I just tried it and can confirm that this happens with |
Thanks for the quick response @bergmeister. Glad to hear it is already fixed in the next release. It is actually affecting me within the VSCode PowerShell extension. Will I need to wait until the |
The newer versions of the extension do not ship with PSSA itself any more (already a few months ago) and just use the locally installed version, therefore you will only need to update your module and vscode will start using it internally as well. |
@X-Guardian PSSA 1.17.0 has been released today on the PSGallery (and attached as a zip to the release notes on GitHub). When using |
Thanks @bergmeister. Yes, I can confirm that this issue is fixed in the 1.17.0 release and VSCode is successfully using it too. |
If
Invoke-Formatter
with thePSAlignAssignmentStatementRule
enabled is run against a hashtable that contains a key name specified as an object.property, aNullReferenceException
error occurs.Steps to reproduce
Expected behavior
Return the hashtable with the assignment statements aligned:
Actual behavior
Error Object
Environment data
The text was updated successfully, but these errors were encountered: