FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Replace red-herring warning around process aliasing get-process with warning around invalid syntax by bergmeister · Pull Request #1638 · PowerShell/PSScriptAnalyzer · GitHub

Replace red-herring warning around process aliasing get-process with warning around invalid syntax - #1638

Merged
Rob Holt (rjmholt) merged 2 commits into
PowerShell:masterfrom
bergmeister:WarnOnInvalidProcessSyntax
Apr 21, 2021
Merged

Replace red-herring warning around process aliasing get-process with warning around invalid syntax#1638
Rob Holt (rjmholt) merged 2 commits into
PowerShell:masterfrom
bergmeister:WarnOnInvalidProcessSyntax

Conversation

Copy link
Copy Markdown
Collaborator

PR Summary

Fixes #1402 by not warning around process aliasing get-process but rather that there is likely invalid syntax around the proces block since it is technically not possible to execute process as a command.

It would be better to have a rule of it's own for checking the begin/process/end blocks within a scriptblock but issue #1571 tracks this. This PR fixes the red-herring warning, whilst also giving a better warning to the user in the short term.

PR Checklist

Comment thread Rules/Strings.resx Outdated
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'PROCESS' is implicitly aliasing 'Get-PROCESS'

2 participants


Back | FazBrowse Home | New Git URL