Skip to content

Commit ad30a1c

Browse files
committed
ci: Add comment for how to suppress PSScriptAnalyzer rules when needed
1 parent e1dabc0 commit ad30a1c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/build-and-test-powershell-module.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
"majorMinorPatch=$newVersionNumber" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
103103
"prereleaseLabel=$newVersionNumberPrereleaseLabel" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
104104
105+
# Suppress rules if needed: https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer
105106
- name: Run PowerShell linter with PSScriptAnalyzer
106107
shell: pwsh
107108
run: Invoke-ScriptAnalyzer -Path . -Recurse -EnableExit

src/ScriptModuleRepositoryTemplate/TemplateRepoFiles/.github/workflows/build-and-test-powershell-module.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
"majorMinorPatch=$newVersionNumber" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
104104
"prereleaseLabel=$newVersionNumberPrereleaseLabel" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
105105
106+
# Suppress rules if needed: https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer
106107
- name: Run PowerShell linter with PSScriptAnalyzer
107108
shell: pwsh
108109
run: Invoke-ScriptAnalyzer -Path . -Recurse -EnableExit

0 commit comments

Comments
 (0)