Skip to content

Commit 192315b

Browse files
committed
Exclude non-priority PSScriptAnalyzer rules
Added three rules to the PSScriptAnalyzerSettings.psd1 file: 'PSAvoidOverwritingBuiltInCmdlets', 'PSAvoidUsingInvokeExpression', and 'PSUseShouldProcessForStateChangingFunctions' are now excluded from analysis as they are not a priority at this time.
1 parent 08620f9 commit 192315b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Hawk/internal/configurations/PSScriptAnalyzerSettings.psd1

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
'PSUseSingularNouns'
2121
# Exclude this to allow test assignments to $PSBoundParameters for mocking
2222
'PSAvoidAssignmentToAutomaticVariable'
23+
# Exclude the following three rules for now as they are not a priority.
24+
'PSAvoidOverwritingBuiltInCmdlets'
25+
'PSAvoidUsingInvokeExpression'
26+
'PSUseShouldProcessForStateChangingFunctions'
2327
)
2428
Rules = @{
2529

0 commit comments

Comments
 (0)