|
| 1 | +@{ |
| 2 | + CustomRulePath = '.\output\RequiredModules\DscResource.AnalyzerRules' |
| 3 | + includeDefaultRules = $true |
| 4 | + IncludeRules = @( |
| 5 | + # DSC Resource Kit style guideline rules. |
| 6 | + 'PSAvoidDefaultValueForMandatoryParameter', |
| 7 | + 'PSAvoidDefaultValueSwitchParameter', |
| 8 | + 'PSAvoidInvokingEmptyMembers', |
| 9 | + 'PSAvoidNullOrEmptyHelpMessageAttribute', |
| 10 | + 'PSAvoidUsingCmdletAliases', |
| 11 | + 'PSAvoidUsingComputerNameHardcoded', |
| 12 | + 'PSAvoidUsingDeprecatedManifestFields', |
| 13 | + 'PSAvoidUsingEmptyCatchBlock', |
| 14 | + 'PSAvoidUsingInvokeExpression', |
| 15 | + 'PSAvoidUsingPositionalParameters', |
| 16 | + 'PSAvoidShouldContinueWithoutForce', |
| 17 | + 'PSAvoidUsingWMICmdlet', |
| 18 | + 'PSAvoidUsingWriteHost', |
| 19 | + 'PSDSCReturnCorrectTypesForDSCFunctions', |
| 20 | + 'PSDSCStandardDSCFunctionsInResource', |
| 21 | + 'PSDSCUseIdenticalMandatoryParametersForDSC', |
| 22 | + 'PSDSCUseIdenticalParametersForDSC', |
| 23 | + 'PSMisleadingBacktick', |
| 24 | + 'PSMissingModuleManifestField', |
| 25 | + 'PSPossibleIncorrectComparisonWithNull', |
| 26 | + 'PSProvideCommentHelp', |
| 27 | + 'PSReservedCmdletChar', |
| 28 | + 'PSReservedParams', |
| 29 | + 'PSUseApprovedVerbs', |
| 30 | + 'PSUseCmdletCorrectly', |
| 31 | + 'PSUseOutputTypeCorrectly', |
| 32 | + 'PSAvoidGlobalVars', |
| 33 | + 'PSAvoidUsingConvertToSecureStringWithPlainText', |
| 34 | + 'PSAvoidUsingPlainTextForPassword', |
| 35 | + 'PSAvoidUsingUsernameAndPasswordParams', |
| 36 | + 'PSDSCUseVerboseMessageInDSCResource', |
| 37 | + 'PSShouldProcess', |
| 38 | + 'PSUseDeclaredVarsMoreThanAssignments', |
| 39 | + 'PSUsePSCredentialType', |
| 40 | + |
| 41 | + 'Measure-*' |
| 42 | + ) |
| 43 | + |
| 44 | +} |
0 commit comments