File tree Expand file tree Collapse file tree
AspNetCoreAnalyzers.Tests/ASP003ParameterTypeTests Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ) ]
Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff line change 99 </tr >
1010 <tr >
1111 <td>Severity</td>
12- <td>Hidden </td>
12+ <td>Warning </td>
1313 </tr >
1414 <tr >
1515 <td>Enabled</td>
Original file line number Diff line number Diff line change 99 </tr >
1010 <tr >
1111 <td>Severity</td>
12- <td>Hidden </td>
12+ <td>Warning </td>
1313 </tr >
1414 <tr >
1515 <td>Enabled</td>
Original file line number Diff line number Diff line change 99 </tr >
1010 <tr >
1111 <td>Severity</td>
12- <td>Hidden </td>
12+ <td>Warning </td>
1313 </tr >
1414 <tr >
1515 <td>Enabled</td>
You can’t perform that action at this time.
0 commit comments