Skip to content

Commit 3c84251

Browse files
author
Quoc Truong
committed
Merge branch 'returntyperule' of https://github.com/PowerShell/PSScriptAnalyzer into returntyperule
2 parents 44130ce + 70a48d0 commit 3c84251

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rules/UseOutputTypeCorrectly.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
namespace Microsoft.Windows.Powershell.ScriptAnalyzer.BuiltinRules
2323
{
2424
/// <summary>
25-
/// ProvideCommentHelp: Analyzes ast to check that cmdlets have help.
25+
/// ProvideCommentHelp: Checks that objects return in a cmdlet have their types declared in OutputType Attribute
2626
/// </summary>
2727
[Export(typeof(IScriptRule))]
2828
public class UseOutputTypeCorrectly : SkipTypeDefinition, IScriptRule
2929
{
3030
private IEnumerable<TypeDefinitionAst> _classes;
3131

3232
/// <summary>
33-
/// AnalyzeScript: Analyzes the ast to check that cmdlets have help.
33+
/// AnalyzeScript: Checks that objects return in a cmdlet have their types declared in OutputType Attribute
3434
/// </summary>
3535
/// <param name="ast">The script's ast</param>
3636
/// <param name="fileName">The name of the script</param>
@@ -165,7 +165,7 @@ public SourceType GetSourceType()
165165
/// <returns></returns>
166166
public RuleSeverity GetSeverity()
167167
{
168-
return RuleSeverity.Information;
168+
return RuleSeverity.Warning;
169169
}
170170

171171
/// <summary>

0 commit comments

Comments
 (0)