-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPSScriptAnalyzerSettings.psd1
More file actions
21 lines (20 loc) · 1003 Bytes
/
Copy pathPSScriptAnalyzerSettings.psd1
File metadata and controls
21 lines (20 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@{
# PSScriptAnalyzer settings for RoboSy.
# RoboSy is an interactive, single-file console application, so a few default
# rules are intentionally excluded to match the established project style.
Severity = @('Error', 'Warning')
ExcludeRules = @(
# RoboSy is a console UI; Write-Host is used deliberately for colored output.
'PSAvoidUsingWriteHost',
# The custom Write-Log helper intentionally shadows nothing harmful at runtime.
'PSAvoidOverwritingBuiltInCmdlets',
# In-memory and interactive helpers do not need ShouldProcess support.
'PSUseShouldProcessForStateChangingFunctions',
# Established naming in this script (Normalize-*) predates this gate.
'PSUseApprovedVerbs',
# Several helpers return collections and read clearly with plural nouns.
'PSUseSingularNouns',
# Some catch blocks intentionally swallow errors to never break the UI flow.
'PSAvoidUsingEmptyCatchBlock'
)
}