-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPSScriptAnalyzerSettings.psd1
executable file
·39 lines (35 loc) · 1.67 KB
/
PSScriptAnalyzerSettings.psd1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@{
# 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',
# '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', 'PSAvoidGlobalVars')
# 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 = @('cd')}
# 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",
"core-6.0.0-alpha-osx",
"core-6.0.0-alpha-windows"
#"desktop-5.1.14393.206-windows"
)
}
}
}