Skip to content

Commit 8e532df

Browse files
committed
Default warning.
1 parent 68c6824 commit 8e532df

7 files changed

Lines changed: 8 additions & 7 deletions

File tree

AspNetCoreAnalyzers.Tests/ASP003ParameterTypeTests/CodeFix.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class CodeFix
1111
private static readonly ExpectedDiagnostic ExpectedDiagnostic = ExpectedDiagnostic.Create(ASP003ParameterType.Descriptor);
1212
private static readonly CodeFixProvider Fix = new ParameterTypeFix();
1313

14+
[TestCase("{id:int}", "int id")]
1415
[TestCase("api/orders/{id:int}", "int id")]
1516
[TestCase("api/orders/{id:int:min(1)}", "int id")]
1617
[TestCase("api/orders/{id:bool}", "bool id")]

AspNetCoreAnalyzers/ASP001ParameterName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal static class ASP001ParameterName
1111
title: "The parameter name does not match the url parameter.",
1212
messageFormat: "The parameter name does not match the url parameter.",
1313
category: AnalyzerCategory.Routing,
14-
defaultSeverity: DiagnosticSeverity.Hidden,
14+
defaultSeverity: DiagnosticSeverity.Warning,
1515
isEnabledByDefault: true,
1616
description: "The parameter name does not match the url parameter.",
1717
helpLinkUri: HelpLink.ForId(DiagnosticId));

AspNetCoreAnalyzers/ASP002MissingParameter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal static class ASP002MissingParameter
1111
title: "The method has no corresponding parameter.",
1212
messageFormat: "The method has no corresponding parameter.",
1313
category: AnalyzerCategory.Routing,
14-
defaultSeverity: DiagnosticSeverity.Hidden,
14+
defaultSeverity: DiagnosticSeverity.Warning,
1515
isEnabledByDefault: true,
1616
description: "The method has no corresponding parameter.",
1717
helpLinkUri: HelpLink.ForId(DiagnosticId));

AspNetCoreAnalyzers/ASP003ParameterType.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ internal static class ASP003ParameterType
1111
title: "Parameter type does not match template.",
1212
messageFormat: "Parameter type does not match template.",
1313
category: AnalyzerCategory.Routing,
14-
defaultSeverity: DiagnosticSeverity.Hidden,
14+
defaultSeverity: DiagnosticSeverity.Warning,
1515
isEnabledByDefault: true,
1616
description: "Parameter type does not match template.",
1717
helpLinkUri: HelpLink.ForId(DiagnosticId));
1818
}
19-
}
19+
}

documentation/ASP001.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</tr>
1010
<tr>
1111
<td>Severity</td>
12-
<td>Hidden</td>
12+
<td>Warning</td>
1313
</tr>
1414
<tr>
1515
<td>Enabled</td>

documentation/ASP002.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</tr>
1010
<tr>
1111
<td>Severity</td>
12-
<td>Hidden</td>
12+
<td>Warning</td>
1313
</tr>
1414
<tr>
1515
<td>Enabled</td>

documentation/ASP003.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</tr>
1010
<tr>
1111
<td>Severity</td>
12-
<td>Hidden</td>
12+
<td>Warning</td>
1313
</tr>
1414
<tr>
1515
<td>Enabled</td>

0 commit comments

Comments
 (0)