In this section we describe the current state of the guidelines and best practices to create a High Quality Resource Module.
See the following sections for more details, and if you need more guidance join the conversation and ask away!
Best Practices and Guidelines for High Quality Resource Modules
In this section we describe the current state of the guidelines and best practices to create a High Quality Resource Module.
See the following sections for more details, and if you need more guidance join the conversation and ask away!
Rows longer than 80 characters should be split into …
Make sure all files are encoded using UTF-8 (not UTF-8 with BOM), except mof …
For all indentation, use 4 spaces instead of tabs. There should be no tab characters in …
Function names must use PascalCase. This means that each …
Variable names should use camelCase.
Bad:
function Write-Log
{ …Although adopting the best practices is optional, doing so will help improve the quality of the DSC …
When calling a function use the full command not an alias. You can get the full …
Default values for mandatory parameters will always be …
Bad:
Good:
Bad: …
Bad:
Good:
Bad:
Good: …
In each resource folder there should be at least one localization folder for english language …
Pester assertions should all start with capital letters. This makes …