File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2222namespace 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>
You can’t perform that action at this time.
0 commit comments