Skip to content

Commit d2b75bb

Browse files
committed
fix: update ScriptAnalysisSettings for improved linting rules
1 parent 99150b5 commit d2b75bb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

psakeFile.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ properties {
44
$PSBPreference.Help.DefaultLocale = 'en-US'
55
$PSBPreference.Help.GenerateMarkdown = $false
66
$PSBPreference.Test.OutputFile = 'out/testResults.xml'
7+
$PSBPreference.Test.ScriptAnalysisSettingsPath = './tests/ScriptAnalyzerSettings.psd1'
78
$PSBPreference.Publish.PSRepositoryApiKey = $env:PSGALLERY_API_KEY
89
}
910

tests/ScriptAnalyzerSettings.psd1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@{
2-
2+
Severity = @('Error', 'Warning')
3+
ExcludeRules = @()
34
}

0 commit comments

Comments
 (0)