Skip to content

PSAvoidUsingPositionalParameters Not working? #510

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

Closed
RBHM opened this issue Apr 22, 2016 · 1 comment
Closed

PSAvoidUsingPositionalParameters Not working? #510

RBHM opened this issue Apr 22, 2016 · 1 comment

Comments

@RBHM
Copy link

RBHM commented Apr 22, 2016

PSAvoidUsingPositionalParameters rule does not seem to be working? It is easy to see bu creating a simple script with 2 lines 1. Write-Host "Message" 2. Write-Host -Object "Message "and it will not hit on line 1. The same script using the ISE version will show an issue on line 1. The module version I have installed is 1.5.

Version number of this module.

ModuleVersion = '1.5.0'

@kapilmb
Copy link

kapilmb commented Apr 23, 2016

The rule was modified in PR #306 (also see issue #301) to trigger only if there are more than 3 positional parameters.

@kapilmb kapilmb closed this as completed Apr 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants