Skip to content

Commit 4f9972e

Browse files
author
Quoc Truong
committed
Change severity of useoutputtypecorrectly to information
1 parent 3c84251 commit 4f9972e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

RuleDocumentation/UseOutputTypeCorrectly.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#UseOutputTypeCorrectly
2-
**Severity Level: Warning**
2+
**Severity Level: Information**
33

44

55
##Description
@@ -17,7 +17,7 @@ Wrong:
1717

1818
function Get-Foo
1919
{
20-
[CmdletBinding()]
20+
[CmdletBinding()]
2121
[OutputType([String])]
2222
Param(
2323
)
@@ -28,7 +28,7 @@ Correct:
2828

2929
function Get-Foo
3030
{
31-
[CmdletBinding()]
31+
[CmdletBinding()]
3232
[OutputType([String])]
3333
Param(
3434
)

Rules/UseOutputTypeCorrectly.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public override AstVisitAction VisitFunctionDefinition(FunctionDefinitionAst fun
117117
else
118118
{
119119
DiagnosticRecords.Add(new DiagnosticRecord(string.Format(CultureInfo.CurrentCulture, Strings.UseOutputTypeCorrectlyError,
120-
funcAst.Name, typeName), returnType.Item2.Extent, GetName(), DiagnosticSeverity.Warning, fileName));
120+
funcAst.Name, typeName), returnType.Item2.Extent, GetName(), DiagnosticSeverity.Information, fileName));
121121
}
122122
}
123123

@@ -165,7 +165,7 @@ public SourceType GetSourceType()
165165
/// <returns></returns>
166166
public RuleSeverity GetSeverity()
167167
{
168-
return RuleSeverity.Warning;
168+
return RuleSeverity.Information;
169169
}
170170

171171
/// <summary>

0 commit comments

Comments
 (0)