|
1 | 1 | # Use the PowerShell extension setting `powershell.scriptAnalysis.settingsPath` to get the current workspace
|
2 | 2 | # to use this PSScriptAnalyzerSettings.psd1 file to configure code analysis in Visual Studio Code.
|
3 |
| -# This setting is configured in the workspace's `.vscode\settings.json`. |
| 3 | +# This setting is configured in the workspace's `.vscode/settings.json`. |
4 | 4 | #
|
5 | 5 | # For more information on PSScriptAnalyzer settings see:
|
6 | 6 | # https://github.com/PowerShell/PSScriptAnalyzer/blob/master/README.md#settings-support-in-scriptanalyzer
|
|
11 | 11 | # Only diagnostic records of the specified severity will be generated.
|
12 | 12 | # Uncomment the following line if you only want Errors and Warnings but
|
13 | 13 | # not Information diagnostic records.
|
14 |
| - #Severity = @('Error','Warning') |
| 14 | + # |
| 15 | + # Severity = @('Error', 'Warning') |
15 | 16 |
|
16 | 17 | # Analyze **only** the following rules. Use IncludeRules when you want
|
17 | 18 | # to invoke only a small subset of the default rules.
|
|
28 | 29 | # Do not analyze the following rules. Use ExcludeRules when you have
|
29 | 30 | # commented out the IncludeRules settings above and want to include all
|
30 | 31 | # the default rules except for those you exclude below.
|
31 |
| - # Note: if a rule is in both IncludeRules and ExcludeRules, the rule |
| 32 | + # Note that if a rule is in both IncludeRules and ExcludeRules, the rule |
32 | 33 | # will be excluded.
|
33 |
| - #ExcludeRules = @('PSAvoidUsingWriteHost') |
| 34 | + # |
| 35 | + # ExcludeRules = @('PSAvoidUsingWriteHost') |
34 | 36 |
|
35 | 37 | # You can use rule configuration to configure rules that support it:
|
36 |
| - #Rules = @{ |
37 |
| - # PSAvoidUsingCmdletAliases = @{ |
38 |
| - # Whitelist = @("cd") |
39 |
| - # } |
40 |
| - #} |
| 38 | + # |
| 39 | + # Rules = @{ |
| 40 | + # PSAvoidUsingCmdletAliases = @{ |
| 41 | + # AllowList = @("cd") |
| 42 | + # } |
| 43 | + # } |
41 | 44 | }
|
0 commit comments