◐ Shell
clean mode source ↗

Invoke-Formatter: Accept input from pipeline by bergmeister · Pull Request #1763 · PowerShell/PSScriptAnalyzer

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@bergmeister

PR Summary

Implements #1761

PR Checklist

@bergmeister bergmeister changed the title Invoke-Formatter: Accept input from pipeline for main -ScriptDefinition parameter Invoke-Formatter: Accept input from pipeline

Jan 19, 2022

@kilasuit

@bergmeister

Close and re-open so that Github removes the pending MacOs check which has been fixed/removed upstream in master

JamesWTruher

'foo' | Invoke-Formatter | Should -Be 'foo'
}
It 'Value from Pipeline by Property Name with just the mandatory ScriptDefinition parameter' {
[pscustomobject]@{ 'ScriptDefinition' = 'foo' } | Invoke-Formatter | Should -Be 'foo'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pscustomobject]@{ 'ScriptDefinition' = 'foo' } | Invoke-Formatter | Should -Be 'foo'
[pscustomobject]@{ 'ScriptDefinition' = 'command1;command2' } | Invoke-Formatter | Should -Be 'command1; command2'

JamesWTruher

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks fine - just one suggestion below

Labels