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 22
22
namespace Microsoft . Windows . Powershell . ScriptAnalyzer . BuiltinRules
23
23
{
24
24
/// <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
26
26
/// </summary>
27
27
[ Export ( typeof ( IScriptRule ) ) ]
28
28
public class UseOutputTypeCorrectly : SkipTypeDefinition , IScriptRule
29
29
{
30
30
private IEnumerable < TypeDefinitionAst > _classes ;
31
31
32
32
/// <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
34
34
/// </summary>
35
35
/// <param name="ast">The script's ast</param>
36
36
/// <param name="fileName">The name of the script</param>
@@ -165,7 +165,7 @@ public SourceType GetSourceType()
165
165
/// <returns></returns>
166
166
public RuleSeverity GetSeverity ( )
167
167
{
168
- return RuleSeverity . Information ;
168
+ return RuleSeverity . Warning ;
169
169
}
170
170
171
171
/// <summary>
You can’t perform that action at this time.
0 commit comments