Skip to content

Commit f38096b

Browse files
fixing tests
1 parent ac1aa72 commit f38096b

8 files changed

+7
-2
lines changed

PSModuleDevelopment/PSModuleDevelopment.psd1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
'Read-PSMDScript'
8787
'Register-PSMDBuildAction'
8888
'Remove-PSMDBuildArtifact'
89-
'Remove-PSMDBuildProject'
9089
'Remove-PSMDModuleDebug'
9190
'Remove-PSMDTemplate'
9291
'Rename-PSMDParameter'

PSModuleDevelopment/functions/build/Get-PSMDBuildArtifact.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
3232
Returns all artifacts with the tag "pssession"
3333
#>
34+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
3435
[CmdletBinding()]
3536
param (
3637
[string]

PSModuleDevelopment/functions/build/Get-PSMDBuildProject.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
2626
Will load the build project stored in the file "C:\code\project\project.build.json"
2727
#>
28+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
2829
[CmdletBinding(DefaultParameterSetName = 'Path')]
2930
param (
3031
[Parameter(Mandatory = $true, ParameterSetName = 'Path')]

PSModuleDevelopment/functions/build/Invoke-PSMDBuildProject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
Failed { Write-PSFMessage @paramWritePSFMessage -StringValues $StepObject.Name, $StepObject.Action -ErrorRecord $Data }
9191
ConditionNotMet { Write-PSFMessage @paramWritePSFMessage -StringValues $StepObject.Name, $StepObject.Action, $StepObject.Condition }
9292
DependencyNotMet { Write-PSFMessage @paramWritePSFMessage -StringValues $StepObject.Name, $StepObject.Action, $Data }
93-
BadAction { Write-PSFMessage @paramWritePSFMessage -StringValues $StepObject.Name, $StepObject.Action }
93+
BadAction { Write-PSFMessage @paramWritePSFMessage -StringValues $StepObject.Name, $StepObject.Action }
9494
}
9595

9696
[PSCustomObject]@{

PSModuleDevelopment/functions/build/New-PSMDBuildProject.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
5151
Create a new build project named 'VMDeployment' in the folder 'C:\Code\VMDeployment'
5252
#>
53+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
5354
[CmdletBinding(DefaultParameterSetName = 'default')]
5455
param (
5556
[Parameter(Mandatory = $true)]

PSModuleDevelopment/functions/build/Remove-PSMDBuildArtifact.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
2222
Removes all artifacts with the 'pssession' tag from the build pipeline.
2323
#>
24+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
2425
[CmdletBinding()]
2526
param (
2627
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]

PSModuleDevelopment/functions/build/Resolve-PSMDBuildStepParameter.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
3131
Adds parameters provided through configuration.
3232
#>
33+
[OutputType([hashtable])]
3334
[CmdletBinding()]
3435
param (
3536
[Parameter(Mandatory = $true)]

PSModuleDevelopment/functions/build/Set-PSMDBuildStep.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
5252
Defines a new step named 'Create Session' using the 'new-pssession'-action.
5353
#>
54+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
5455
[CmdletBinding()]
5556
param (
5657
[Parameter(Mandatory = $true)]

0 commit comments

Comments
 (0)