Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Apr 21, 2021

Conversation

bergmeister
Copy link
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

Rules/Strings.resx Outdated Show resolved Hide resolved
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