-
Notifications
You must be signed in to change notification settings - Fork 395
Implement UseOutputTypeCorrectly #69
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
Conversation
namespace Microsoft.Windows.Powershell.ScriptAnalyzer.BuiltinRules | ||
{ | ||
/// <summary> | ||
/// ProvideCommentHelp: Analyzes ast to check that cmdlets have help. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong comment?
Fixed. I will update the rule documentation after too. |
namespace Microsoft.Windows.Powershell.ScriptAnalyzer.BuiltinRules | ||
{ | ||
/// <summary> | ||
/// ProvideCommentHelp: Checks that objects return in a cmdlet have their types declared in OutputType Attribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ProvideCommentHelp: " Should be UseOutputTypeCorrectly?
Updated with documentation |
Change severity to information |
Looks good to me. |
sign-off. thanks. |
Implement UseOutputTypeCorrectly
Thanks! |
If we can identify the type of an object that is outputted to the pipeline by a cmdlet, then that type must be listed in the OutputType attribute.