-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPSScriptAnalyzerSettings.psd1
More file actions
23 lines (20 loc) · 991 Bytes
/
Copy pathPSScriptAnalyzerSettings.psd1
File metadata and controls
23 lines (20 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# PSScriptAnalyzerSettings.psd1
# PSScriptAnalyzer rule configuration for the Tools repo.
# Used by both the GitHub Actions lint workflow and VS Code + PowerShell extension
# for local development — ensures local and CI linting use identical rules.
#
# To use in VS Code: install the PowerShell extension — it picks this file up
# automatically when it exists in the workspace root.
@{
ExcludeRules = @(
# BOM is optional for UTF-8 and causes issues on Linux/macOS.
# All toolkit scripts are UTF-8 without BOM by convention.
'PSUseBOMForUnicodeEncodedFile',
# Write-Host is used intentionally throughout for colored console output.
'PSAvoidUsingWriteHost',
# $CommonVersion and $SambaSharePath in common.ps1 are intentionally
# exported via dot-sourcing for consumer scripts to read.
# PSScriptAnalyzer cannot trace cross-script usage and flags them as unused.
'PSUseDeclaredVarsMoreThanAssignments'
)
}