PowerShell-Beautifier icon indicating copy to clipboard operation
PowerShell-Beautifier copied to clipboard

Style compliancy

Open iRon7 opened this issue 5 years ago • 0 comments

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)

iRon7 avatar Aug 20 '20 11:08 iRon7