PowerShell-Beautifier
PowerShell-Beautifier copied to clipboard
Style compliancy
Hello Dan,
Your project is great! I would like to give you some feedback about some styles which I think should be different but before going into detail, I would like to understand which style guide (if any) you using as a lead. I am aware of two renowned style guides:
I see small discrepancies with your beautifier and the style guides where it concerns spaces around commas and semicolons in collections ($array = @('one', 'two', 'three') is reformatted to: `$array = @('one','two','three')). Which might go a lot deeper with regards to styling and technically (AST relations), e.g.:
- removing the semicolon at the end of each line (including a HashTable items, as in your own ReadMe.me example)
-
{ ,@('test') }where only the left space (between the curly bracket and comma is removed)