Skip to content

Allow Invoke-Formatter to be pipable #1761

@AnderssonPeter

Description

@AnderssonPeter

Summary of the new feature

A clear and concise description of what the problem is that the new feature would solve.
Hi I have some powershell code in a variable, it would be usefull if I could run $code | Invoke-Formatter, this does not seem to work instead I have to run Invoke-Formatter $code.

What is the latest version of PSScriptAnalyzer at the point of writing
I am using 1.20.0 of PSScriptAnalyzer on Windows 10 using pwsh 7.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions