Invoke-Formatter: Accept input from pipeline by bergmeister · Pull Request #1763 · PowerShell/PSScriptAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 409
Conversation
PR Summary
Implements #1761
PR Checklist
- PR has a meaningful title
- Use the present tense and imperative mood when describing your changes
- Summarized changes
- Change is not breaking
- Make sure all
.cs,.ps1and.psm1files have the correct copyright header - Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
- This PR is ready to merge and is not Work in Progress.
- If the PR is work in progress, please add the prefix
WIP:to the beginning of the title and remove the prefix when the PR is ready.
- If the PR is work in progress, please add the prefix
bergmeister
changed the title
Invoke-Formatter: Accept input from pipeline for main -ScriptDefinition parameter
Invoke-Formatter: Accept input from pipeline
Close and re-open so that Github removes the pending MacOs check which has been fixed/removed upstream in master
| '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' |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters