-
Notifications
You must be signed in to change notification settings - Fork 400
Open
Description
Hi All, Just a feedback! It will be good if Script Analyzer throws an exception for using non existing parameters,
Example:
Function Get-Information {
param(
$serviceName
)
Get-Service -Notavailable $serviceName
}
Get-Information -something BITS
- Get-Service is a native cmdlet - using non existing parameters
- function Get-Information has a parameter $servicename but while calling the function using incorrect param
If we get exceptions for this it will be good for demonstrating PowerShell and script analyzer