Add all other common module files
This commit is contained in:
34
ScriptAnalyzerSettings.psd1
Normal file
34
ScriptAnalyzerSettings.psd1
Normal file
@@ -0,0 +1,34 @@
|
||||
@{
|
||||
# Use Severity when you want to limit the generated diagnostic records to a
|
||||
# subset of: Error, Warning and Information.
|
||||
# Uncomment the following line if you only want Errors and Warnings but
|
||||
# not Information diagnostic records.
|
||||
Severity = @('Error','Warning')
|
||||
|
||||
# Use IncludeRules when you want to run only a subset of the default rule set.
|
||||
#IncludeRules = @('PSAvoidDefaultValueSwitchParameter',
|
||||
# 'PSMisleadingBacktick',
|
||||
# 'PSMissingModuleManifestField',
|
||||
# 'PSReservedCmdletChar',
|
||||
# 'PSReservedParams',
|
||||
# 'PSShouldProcess',
|
||||
# 'PSUseApprovedVerbs',
|
||||
# 'PSUseDeclaredVarsMoreThanAssigments')
|
||||
|
||||
# Use ExcludeRules when you want to run most of the default set of rules except
|
||||
# for a few rules you wish to "exclude". Note: if a rule is in both IncludeRules
|
||||
# and ExcludeRules, the rule will be excluded.
|
||||
#ExcludeRules = @('PSAvoidUsingWriteHost')
|
||||
|
||||
# You can use the following entry to supply parameters to rules that take parameters.
|
||||
# For instance, the PSAvoidUsingCmdletAliases rule takes a whitelist for aliases you
|
||||
# want to allow.
|
||||
Rules = @{
|
||||
# Do not flag 'cd' alias.
|
||||
PSAvoidUsingCmdletAliases = @{Whitelist = @('Where','Select')}
|
||||
|
||||
# Check if your script uses cmdlets that are compatible on PowerShell Core,
|
||||
# version 6.0.0-alpha, on Linux.
|
||||
# PSUseCompatibleCmdlets = @{Compatibility = @("core-6.0.0-alpha-linux")}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user