microsoft / PSRule

Validate infrastructure as code (IaC) and objects using PowerShell rules.
https://microsoft.github.io/PSRule/v2/
MIT License
395 stars 49 forks source link

Remove -TargetName parameter for Hint keyword #81

Closed BernieWhite closed 5 years ago

BernieWhite commented 5 years ago

Description of the issue

Originally the Hint keyword could be used to name target objects and set TargetName for pipeline objects that did not implement a TargetName or Name property that was useful for identification.

Using this approach:

PSRule v0.2.0 introduced binding options to allow customisation of TargetName up-front, which is not only more efficient but less prone to error.

Since Hint -TargetName is no longer required, we should deprecate and remove support for the -TargetName parameter of the Hint keyword.

BernieWhite commented 5 years ago

The -TargetName parameter was deprecated in v0.3.0 and scheduled for complete removal in v0.4.0.