mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-29 13:14:49 +02:00
Updated README.md
This commit is contained in:
parent
d3b578d12f
commit
6ccb4eeea8
@ -147,7 +147,7 @@ Each PowerShell script should follow the 9 golden rules:
|
|||||||
* **Rule #5:** prefer command-line options, else ask the user
|
* **Rule #5:** prefer command-line options, else ask the user
|
||||||
* **Rule #6:** the encoding of the script is in UTF-8 with BOM to support Unicode characters
|
* **Rule #6:** the encoding of the script is in UTF-8 with BOM to support Unicode characters
|
||||||
* **Rule #7:** use `Set-StrictMode -Version Latest` to enable additional error checking
|
* **Rule #7:** use `Set-StrictMode -Version Latest` to enable additional error checking
|
||||||
* **Rule #8:** for readibility use lowercase or lowerCamelCase
|
* **Rule #8:** for readibility use UpperCamelCase for variables and functions, lowerCamelCase for everything else
|
||||||
* **Rule #9:** exits 0 for success, else print an error message and exit with the error code (mostly 1)
|
* **Rule #9:** exits 0 for success, else print an error message and exit with the error code (mostly 1)
|
||||||
|
|
||||||
Feedback
|
Feedback
|
||||||
|
Loading…
Reference in New Issue
Block a user