Skip to content

Commit db95483

Browse files
committed
Reword docs for ASP004 to not be identical with ASP003.
1 parent f108150 commit db95483

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

AspNetCoreAnalyzers/ASP004RouteParameterType.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ internal static class ASP004RouteParameterType
88

99
internal static readonly DiagnosticDescriptor Descriptor = new DiagnosticDescriptor(
1010
id: DiagnosticId,
11-
title: "Parameter type does not match.",
12-
messageFormat: "Parameter type does not match.",
11+
title: "Route parameter type does not match.",
12+
messageFormat: "Route parameter type does not match.",
1313
category: AnalyzerCategory.Routing,
1414
defaultSeverity: DiagnosticSeverity.Warning,
1515
isEnabledByDefault: true,
16-
description: "Parameter type does not match.",
16+
description: "Route parameter type does not match.",
1717
helpLinkUri: HelpLink.ForId(DiagnosticId));
1818
}
19-
}
19+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Roslyn analyzers for ASP.NET.Core.
2525
</tr>
2626
<tr>
2727
<td><a href="https://github.com/DotNetAnalyzers/AspNetCoreAnalyzers/tree/master/documentation/ASP004.md">ASP004</a></td>
28-
<td>Parameter type does not match.</td>
28+
<td>Route parameter type does not match.</td>
2929
</tr>
3030
<tr>
3131
<td><a href="https://github.com/DotNetAnalyzers/AspNetCoreAnalyzers/tree/master/documentation/ASP005.md">ASP005</a></td>

documentation/ASP004.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ASP004
2-
## Parameter type does not match.
2+
## Route parameter type does not match.
33

44
<!-- start generated table -->
55
<table>
@@ -28,7 +28,7 @@
2828

2929
## Description
3030

31-
Parameter type does not match.
31+
Route parameter type does not match.
3232

3333
## Motivation
3434

@@ -47,21 +47,21 @@ Configure the severity per project, for more info see [MSDN](https://msdn.micros
4747

4848
### Via #pragma directive.
4949
```C#
50-
#pragma warning disable ASP004 // Parameter type does not match.
50+
#pragma warning disable ASP004 // Route parameter type does not match.
5151
Code violating the rule here
52-
#pragma warning restore ASP004 // Parameter type does not match.
52+
#pragma warning restore ASP004 // Route parameter type does not match.
5353
```
5454

5555
Or put this at the top of the file to disable all instances.
5656
```C#
57-
#pragma warning disable ASP004 // Parameter type does not match.
57+
#pragma warning disable ASP004 // Route parameter type does not match.
5858
```
5959

6060
### Via attribute `[SuppressMessage]`.
6161

6262
```C#
6363
[System.Diagnostics.CodeAnalysis.SuppressMessage("AspNetCoreAnalyzers.Routing",
64-
"ASP004:Parameter type does not match.",
64+
"ASP004:Route parameter type does not match.",
6565
Justification = "Reason...")]
6666
```
6767
<!-- end generated config severity -->

0 commit comments

Comments
 (0)