Skip to content

AvoidUsingPositionalParameters is flagging simple "echo"s #1899

Open
@TWiStErRob

Description

@TWiStErRob

Steps to reproduce

Write-Host Done with projects.

Expected behavior

To prevent this rule from being too noisy, this rule gets only triggered when there are 3 or more parameters supplied.

https://github.com/PowerShell/PSScriptAnalyzer/blob/1.21.0/docs/Rules/AvoidUsingPositionalParameters.md#description

Actual behavior

image

Environment data

Can't, I'm using GitHub Actions. They claim 1.21.0:
https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md#powershell-modules

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions