You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Specifies the path to the scripts or module to be analyzed. Wildcard characters are supported.'
10
+
required: true
11
+
default: '.\'
12
+
customRulePath:
13
+
description: 'Uses only the custom rules defined in the specified paths to the analysis. To still use the built-in rules, add the -IncludeDefaultRules switch.'
14
+
required: false
15
+
recurseCustomRulePath:
16
+
description: 'Adds rules defined in subdirectories of the CustomRulePath location. By default, Invoke-ScriptAnalyzer uses only the custom rules defined in the specified file or directory. To still use the built-in rules, additionally use the -IncludeDefaultRules switch.'
17
+
required: false
18
+
excludeRule:
19
+
description: 'Omits the specified rules from the Script Analyzer test. Wildcard characters are supported.'
20
+
required: false
21
+
includeDefaultRules:
22
+
description: 'Invoke default rules along with Custom rules.'
23
+
required: false
24
+
includeRule:
25
+
description: 'Runs only the specified rules in the Script Analyzer test. By default, PSScriptAnalyzer runs all rules.'
26
+
required: false
27
+
severity:
28
+
description: 'After running Script Analyzer with all rules, this parameter selects rule violations with the specified severity.'
29
+
required: false
30
+
recurse:
31
+
description: 'Runs Script Analyzer on the files in the Path directory and all subdirectories recursively.'
32
+
required: false
33
+
suppressedOnly:
34
+
description: 'Returns rules that are suppressed, instead of analyzing the files in the path.'
35
+
required: false
36
+
fix:
37
+
description: 'Fixes certain warnings which contain a fix in their DiagnosticRecord.'
38
+
required: false
39
+
enableExit:
40
+
description: 'Exits PowerShell and returns an exit code equal to the number of error records. This can be useful in CI systems.'
41
+
required: false
42
+
reportSummary:
43
+
description: 'Writes a report summary of the found warnings to the host.'
44
+
required: false
45
+
settings:
46
+
description: 'File path that contains user profile or hash table for ScriptAnalyzer.'
0 commit comments