We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd7608c commit 986e9cdCopy full SHA for 986e9cd
‎scripts/helpers/Build/Build-PSModuleRootModule.ps1
@@ -140,6 +140,14 @@ $MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = {
140
$headerFilePath | Remove-Item -Force
141
} else {
142
Add-Content -Path $rootModuleFile -Force -Value @'
143
+[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
144
+ 'PSAvoidAssignmentToAutomaticVariable', 'IsWindows',
145
+ Justification = 'IsWindows doesnt exist in PS5.1'
146
+)]
147
148
+ 'PSUseDeclaredVarsMoreThanAssignments', 'IsWindows',
149
150
151
[CmdletBinding()]
152
param()
153
'@
0 commit comments