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

[Feature] Customize AvoidUsingPositionalParameters to be able to change default trigger threshold #874

Closed
LaurentDardenne opened this issue Feb 6, 2018 · 3 comments

Comments

@LaurentDardenne
Copy link

We may want to trigger this rule strictly.
A customizable rule with a trigger threshold number set to 3 by default may be a possible solution.
See

Moreover, since the rule is 'Information' level, and the rules of this level are considered verbose,
if we use a configuration like this, it seems to me that this rule is useless.

@exchange12rocks
Copy link

I also would like this rule to trigger at any positional parameter in code which I maintain.

@rdtechie
Copy link

rdtechie commented Feb 9, 2023

Is there any status on this, after 4+ years?

@bergmeister
Copy link
Collaborator

It is customizable now and one can add cmdlet to an allow-list to ignore. But not ability to change threshold, changing this issue to that and marking as up for grabs
https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/rules/avoidusingpositionalparameters?view=ps-modules

@bergmeister bergmeister changed the title [Feature] Make AvoidUsingPositionalParameters rule customizable [Feature] Customize AvoidUsingPositionalParameters to be able to change default trigger threshold Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants