mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update coding-guidelines to encourage adding code comments (#2489)
This commit is contained in:
committed by
Andrew Schwartzmeyer
parent
5e1661df59
commit
d26b1d7155
@@ -82,3 +82,11 @@ over runtime checks.
|
||||
|
||||
We produce a single binary for all UNIX variants,
|
||||
so runtime checks are currently necessary for some platform differences, e.g. macOS and Linux.
|
||||
|
||||
## Code comments
|
||||
|
||||
It's strongly encouraged to add comments when you are making changes to the code and tests,
|
||||
especially when the changes are not trivial or may raise confusion.
|
||||
Make sure the added comments are accurate and easy to understand.
|
||||
Good code comments would greatly improve readability of the code, and make it much more maintainable.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user