Skip to content

Commit c76df31

Browse files
fix: add [OutputType] to scaffold function (PSUseOutputTypeCorrectly)
The scaffold Get-PSModuleTest function output a string but was missing the [OutputType([string])] attribute. This triggered a PSScriptAnalyzer PSUseOutputTypeCorrectly failure when README.md changes caused HasImportantChanges to be true and the full lint suite ran. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 934176f commit c76df31

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/functions/public/Get-PSModuleTest.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function Get-PSModuleTest {
1111
1212
"Hello, World!"
1313
#>
14+
[OutputType([string])]
1415
[CmdletBinding()]
1516
param (
1617
# Name of the person to greet.

0 commit comments

Comments
 (0)