mirror of
https://github.com/PowerShell/PSDscResources
synced 2026-06-21 13:45:29 +00:00
54 lines
1.9 KiB
PowerShell
54 lines
1.9 KiB
PowerShell
@{
|
|
<#
|
|
For the custom rules to work, the DscResource.Tests repo must be
|
|
cloned. It is automatically clone as soon as any unit or
|
|
integration tests are run.
|
|
#>
|
|
CustomRulePath = '.\DSCResource.Tests\DscResource.AnalyzerRules'
|
|
|
|
IncludeRules = @(
|
|
# DSC Resource Kit style guideline rules.
|
|
'PSAvoidDefaultValueForMandatoryParameter',
|
|
'PSAvoidDefaultValueSwitchParameter',
|
|
'PSAvoidInvokingEmptyMembers',
|
|
'PSAvoidNullOrEmptyHelpMessageAttribute',
|
|
'PSAvoidUsingCmdletAliases',
|
|
'PSAvoidUsingComputerNameHardcoded',
|
|
'PSAvoidUsingDeprecatedManifestFields',
|
|
'PSAvoidUsingEmptyCatchBlock',
|
|
'PSAvoidUsingInvokeExpression',
|
|
'PSAvoidUsingPositionalParameters',
|
|
'PSAvoidShouldContinueWithoutForce',
|
|
'PSAvoidUsingWMICmdlet',
|
|
'PSAvoidUsingWriteHost',
|
|
'PSDSCReturnCorrectTypesForDSCFunctions',
|
|
'PSDSCStandardDSCFunctionsInResource',
|
|
'PSDSCUseIdenticalMandatoryParametersForDSC',
|
|
'PSDSCUseIdenticalParametersForDSC',
|
|
'PSMisleadingBacktick',
|
|
'PSMissingModuleManifestField',
|
|
'PSPossibleIncorrectComparisonWithNull',
|
|
'PSProvideCommentHelp',
|
|
'PSReservedCmdletChar',
|
|
'PSReservedParams',
|
|
'PSUseApprovedVerbs',
|
|
'PSUseCmdletCorrectly',
|
|
'PSUseOutputTypeCorrectly',
|
|
'PSAvoidGlobalVars',
|
|
'PSAvoidUsingConvertToSecureStringWithPlainText',
|
|
'PSAvoidUsingPlainTextForPassword',
|
|
'PSAvoidUsingUsernameAndPasswordParams',
|
|
'PSDSCUseVerboseMessageInDSCResource',
|
|
'PSShouldProcess',
|
|
'PSUseDeclaredVarsMoreThanAssignments',
|
|
'PSUsePSCredentialType',
|
|
|
|
<#
|
|
This is to test all the DSC Resource Kit custom rules.
|
|
The name of the function-blocks of each custom rule start
|
|
with 'Measure*'.
|
|
#>
|
|
'Measure-*'
|
|
)
|
|
}
|