Skip to content

Exception for using non existing parameters #295

@ChendrayanV

Description

@ChendrayanV

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

  1. Get-Service is a native cmdlet - using non existing parameters
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions