You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen several cases like this one where we write a non-terminating error and then provide results. We need to review our error handling. Should this be a terminating error? Or, should it be an error that the end-user sees? How should the user fix this error?
PS C:\ps-test> Invoke-ScriptAnalyzer -ScriptDefinition "function get-Widgets { Hello, World }"
Invoke-ScriptAnalyzer : Parse error in script definition: Missing argument in parameter list at line 1 column 29.
At line:1 char:1
I've seen several cases like this one where we write a non-terminating error and then provide results. We need to review our error handling. Should this be a terminating error? Or, should it be an error that the end-user sees? How should the user fix this error?
PS C:\ps-test> Invoke-ScriptAnalyzer -ScriptDefinition "function get-Widgets { Hello, World }"
Invoke-ScriptAnalyzer : Parse error in script definition: Missing argument in parameter list at line 1 column 29.
At line:1 char:1
RuleName Severity FileName Line Message
PSUseSingularNouns Warning 1 The cmdlet 'get-Widgets' uses a plural noun. A singular
noun should be used instead.
The text was updated successfully, but these errors were encountered: