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

Exception for using non existing parameters #295

Open
ChendrayanV opened this issue Aug 18, 2015 · 0 comments
Open

Exception for using non existing parameters #295

ChendrayanV opened this issue Aug 18, 2015 · 0 comments

Comments

@ChendrayanV
Copy link

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

@raghushantha raghushantha added this to the Ongoing milestone Aug 20, 2015
@raghushantha raghushantha self-assigned this Aug 20, 2015
@kapilmb kapilmb modified the milestones: 1505, Ongoing Sep 30, 2015
@raghushantha raghushantha removed this from the Ongoing milestone Jan 11, 2016
@raghushantha raghushantha removed their assignment Jan 21, 2016
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

3 participants