powershell/PSUseOutputTypeCorrectly is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.
tally disables this rule by default for Dockerfile
RUN snippets because a RUN executes
statements inline rather than defining cmdlets, parameters, or modules with external callers. Re-enable it with
include = ["powershell/PSUseOutputTypeCorrectly"] or by setting
rules.powershell.PSUseOutputTypeCorrectly.severity = "warning" in .tally.toml.Description
A command should return the same type as declared inOutputType.
You can get more details by running Get-Help about_Functions_OutputTypeAttribute command in
PowerShell.