Skip to content

Commit 6b6bbc4

Browse files
committed
Ignoring false positive on analysis.
1 parent 0802f8c commit 6b6bbc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PSBashCompletions/PSBashCompletions.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ function Register-BashArgumentCompleter {
164164
# If the command is an alias, this expands it to be the full command
165165
# name. If it's not an alias, it exits untouched.
166166
function Expand-Command {
167+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseOutputTypeCorrectly", "", Justification = "False positive - https://github.com/PowerShell/PSScriptAnalyzer/issues/676")]
167168
[CmdletBinding()]
169+
[OuptutType([System.String])]
168170
Param(
169171
[Parameter(Mandatory = $True, Position = 0)]
170172
[ValidateNotNullOrEmpty()]

0 commit comments

Comments
 (0)