PS: Coding Style

Description:

When it comes to Powershell, there are two main styles that people will follow (actually three, but the third is just like one of them):

To Resolve:

1a. Styles:

OTBS

Stroustup

Same as OTBS but will place “else” in a new line.

Allman

 

 

References

https://github.com/PoshCode/PowerShellPracticeAndStyle/issues/24
https://github.com/PoshCode/PowerShellPracticeAndStyle/blob/master/Style-Guide/Code-Layout-and-Formatting.md