Skip to content

Commit 0119c5f

Browse files
committed
Reword warning.
1 parent 32f667a commit 0119c5f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

AspNetCoreAnalyzers/ASP003ParameterType.cs

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

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Roslyn analyzers for ASP.NET.Core.
2020
</tr>
2121
<tr>
2222
<td><a href="https://github.com/DotNetAnalyzers/AspNetCoreAnalyzers/tree/master/documentation/ASP003.md">ASP003</a></td>
23-
<td>Parameter type does not match template.</td>
23+
<td>Parameter type does not match.</td>
2424
</tr>
2525
<tr>
2626
<td><a href="https://github.com/DotNetAnalyzers/AspNetCoreAnalyzers/tree/master/documentation/ASP004.md">ASP004</a></td>

documentation/ASP003.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ASP003
2-
## Parameter type does not match template.
2+
## 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 template.
31+
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 ASP003 // Parameter type does not match template.
50+
#pragma warning disable ASP003 // Parameter type does not match.
5151
Code violating the rule here
52-
#pragma warning restore ASP003 // Parameter type does not match template.
52+
#pragma warning restore ASP003 // 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 ASP003 // Parameter type does not match template.
57+
#pragma warning disable ASP003 // Parameter type does not match.
5858
```
5959

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

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

0 commit comments

Comments
 (0)