Skip to content

Track cmdlet parameter attributes in UseCompatibleCommands, check ValidateSet and enum parameters #1152

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

Open
rjmholt opened this issue Feb 27, 2019 · 0 comments

Comments

@rjmholt
Copy link
Contributor

rjmholt commented Feb 27, 2019

Profiles in the compatibility rules currently do not track the attributes on parameters.

If they did this, it could statically check for things like

  • ValidateSet parameters
  • Enum-typed parameters (this is already possible to some extent)
  • Mandatory parameters
  • NotNull parameters

To do this, profiles should record attributes on each parameter. In the case of something like ValidateSet, it should track all the listed possible values for static checking later.

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

2 participants