Skip to content

Commit 5bdf33b

Browse files
tablackburnclaude
andcommitted
chore(analyzer): structured PSScriptAnalyzer settings, bump to 1.25.0
- PSScriptAnalyzerSettings.psd1: replace the single-line @{ IncludeRules = @('*') } with the standard structured form (IncludeDefaultRules + Include/Exclude/Rules blocks). Includes a commented-out PSUseCompatibleSyntax/PSUseCompatibleCmdlets scaffold for projects that want cross-version compatibility checks. - build.depend.psd1: bump PSScriptAnalyzer from 1.24.0 to 1.25.0 to pick up newer rule fixes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 91db22c commit 5bdf33b

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

PSScriptAnalyzerSettings.psd1

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer
12
@{
2-
IncludeRules = @('*')
3+
IncludeDefaultRules = $true
4+
5+
IncludeRules = @(
6+
# Default rules
7+
'PS*'
8+
)
9+
10+
# If IncludeRules and ExcludeRules are empty, all rules will be applied
11+
ExcludeRules = @()
12+
13+
Rules = @{
14+
# PSUseCompatibleSyntax = @{
15+
# # This turns the rule on (setting it to false will turn it off)
16+
# Enable = $true
17+
18+
# # List the targeted versions of PowerShell here
19+
# TargetVersions = @(
20+
# '5.1',
21+
# '7.2'
22+
# )
23+
# }
24+
# PSUseCompatibleCmdlets = @{
25+
# compatibility = @('core-7.2.0-windows')
26+
# }
27+
}
328
}

build.depend.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
Version = '0.7.3'
2424
}
2525
'PSScriptAnalyzer' = @{
26-
Version = '1.24.0'
26+
Version = '1.25.0'
2727
}
2828
}

0 commit comments

Comments
 (0)