diff --git a/Private/Invoke-Scans.ps1 b/Private/Invoke-Scans.ps1 index 4f9f20d..75ed69e 100644 --- a/Private/Invoke-Scans.ps1 +++ b/Private/Invoke-Scans.ps1 @@ -28,7 +28,7 @@ function Invoke-Scans { .EXAMPLE # Perform all scans - Invoke-Scans + Invoke-Scans .EXAMPLE # Perform only the 'Auditing' and 'ESC1' scans @@ -40,6 +40,8 @@ function Invoke-Scans { #> [CmdletBinding()] + [OutputType([hashtable])] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', 'Invoke-Scans', Justification='Performing multiple scans.')] param ( # Could split Scans and PromptMe into separate parameter sets. [Parameter()] diff --git a/Private/Set-Severity.ps1 b/Private/Set-Severity.ps1 index 620dac3..76e1362 100644 --- a/Private/Set-Severity.ps1 +++ b/Private/Set-Severity.ps1 @@ -1,4 +1,5 @@ function Set-Severity { + [OutputType([string])] [CmdletBinding()] param( [Parameter(Mandatory = $true)] diff --git a/Private/Test-IsMemberOfProtectedUsers.ps1 b/Private/Test-IsMemberOfProtectedUsers.ps1 index f23f1b5..4d3935b 100644 --- a/Private/Test-IsMemberOfProtectedUsers.ps1 +++ b/Private/Test-IsMemberOfProtectedUsers.ps1 @@ -24,9 +24,11 @@ function Test-IsMemberOfProtectedUsers { Active Directory user object, user SID, SamAccountName, etc .OUTPUTS - True, False + Boolean #> + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', 'Test-IsMemberOfProtectedUsers', Justification='The name of the group we are checking is plural.')] + [OutputType([Boolean])] [CmdletBinding()] param ( # User parameter accepts any input that is valid for Get-ADUser diff --git a/Private/Test-IsRecentVersion.ps1 b/Private/Test-IsRecentVersion.ps1 index 0400918..9d1b7f4 100644 --- a/Private/Test-IsRecentVersion.ps1 +++ b/Private/Test-IsRecentVersion.ps1 @@ -30,12 +30,9 @@ function Test-IsRecentVersion { Published at: 01/28/2024 12:47:18 Install Module: Install-Module -Name Locksmith Standalone Script: https://github.com/trimarcjake/locksmith/releases/download/v2.6/Invoke-Locksmith.zip - - .NOTES - Author: Sam Erde - Date: 02/10/2024 #> [CmdletBinding()] + [OutputType([boolean])] param ( # Check a specific version number from the script [Parameter(Mandatory)]