-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPSScriptAnalyzerSettings.psd1
More file actions
37 lines (30 loc) · 1.56 KB
/
PSScriptAnalyzerSettings.psd1
File metadata and controls
37 lines (30 loc) · 1.56 KB
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
@{
# PSScriptAnalyzer-Konfiguration fuer den BoundaryManager.
# Wird automatisch von tools/Invoke-PSSA.ps1 geladen, wenn am Repo-Root
# vorhanden. Die hier ausgeschlossenen Regeln sind bewusst gesetzte
# Projektkonventionen oder fuer den UI-Kontext (WPF) ungeeignet.
Severity = @('Error','Warning','Information')
ExcludeRules = @(
# Tools, run.ps1 und Setup-Skripte verwenden Write-Host bewusst fuer
# farbige, benutzergerichtete Konsolenausgabe. Kein Pipeline-Konsumer.
'PSAvoidUsingWriteHost',
# Projekt-Konvention: Funktionsnamen wie Load-Boundaries, Save-Boundaries,
# Refresh-LogList, Validate-BoundaryValue sind tief im Codebase und in
# Tests verankert. Umbenennung waere ein 50+-Datei-Refactor und wuerde
# die Lesbarkeit nicht messbar verbessern.
'PSUseApprovedVerbs',
# Save-Boundaries / Get-MECMBoundaries operieren bewusst auf Mehrfach-
# Items (Domain-Semantik). Singular waere semantisch falsch.
'PSUseSingularNouns',
# WPF-UI-Code hat keine ShouldProcess-Semantik (kein -WhatIf-Use-Case
# bei Set-Theme, Save-Boundaries usw. -- die Wirkung ist immer
# interaktiv vom User ausgeloest).
'PSUseShouldProcessForStateChangingFunctions',
# Information-Level, idiomatischer PowerShell-Stil; vor allem in
# Tests und Tools.
'PSAvoidUsingPositionalParameters',
# Information-Level; interne Helper (z.B. _Get-MECMMockBoundaries)
# brauchen kein Comment-Help.
'PSProvideCommentHelp'
)
}