File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
AspNetCoreAnalyzers.Tests/ASP009LowercaseUrlsTests Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- namespace AspNetCoreAnalyzers . Tests . ASP009LowercaseUrlsTests
1
+ namespace AspNetCoreAnalyzers . Tests . ASP009LowerCaseUrlsTests
2
2
{
3
3
using Gu . Roslyn . Asserts ;
4
4
using Microsoft . CodeAnalysis . CodeFixes ;
@@ -8,7 +8,7 @@ namespace AspNetCoreAnalyzers.Tests.ASP009LowercaseUrlsTests
8
8
public class CodeFix
9
9
{
10
10
private static readonly DiagnosticAnalyzer Analyzer = new AttributeAnalyzer ( ) ;
11
- private static readonly ExpectedDiagnostic ExpectedDiagnostic = ExpectedDiagnostic . Create ( ASP009LowercaseUrl . Descriptor ) ;
11
+ private static readonly ExpectedDiagnostic ExpectedDiagnostic = ExpectedDiagnostic . Create ( ASP009LowerCaseUrl . Descriptor ) ;
12
12
private static readonly CodeFixProvider Fix = new TemplateTextFix ( ) ;
13
13
14
14
[ TestCase ( "\" api/↓Orders/{id}\" " , "\" api/orders/{id}\" " ) ]
Original file line number Diff line number Diff line change 1
- namespace AspNetCoreAnalyzers . Tests . ASP009LowercaseUrlsTests
1
+ namespace AspNetCoreAnalyzers . Tests . ASP009LowerCaseUrlsTests
2
2
{
3
3
using Gu . Roslyn . Asserts ;
4
4
using Microsoft . CodeAnalysis . Diagnostics ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ namespace AspNetCoreAnalyzers
2
2
{
3
3
using Microsoft . CodeAnalysis ;
4
4
5
- internal static class ASP009LowercaseUrl
5
+ internal static class ASP009LowerCaseUrl
6
6
{
7
7
public const string DiagnosticId = "ASP009" ;
8
8
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class AttributeAnalyzer : DiagnosticAnalyzer
23
23
ASP006ParameterRegex . Descriptor ,
24
24
ASP007MissingParameter . Descriptor ,
25
25
ASP008ValidRouteParameterName . Descriptor ,
26
- ASP009LowercaseUrl . Descriptor ) ;
26
+ ASP009LowerCaseUrl . Descriptor ) ;
27
27
28
28
public override void Initialize ( AnalysisContext context )
29
29
{
@@ -142,7 +142,7 @@ context.Node is AttributeSyntax attribute &&
142
142
{
143
143
context . ReportDiagnostic (
144
144
Diagnostic . Create (
145
- ASP009LowercaseUrl . Descriptor ,
145
+ ASP009LowerCaseUrl . Descriptor ,
146
146
segment . Span . GetLocation ( ) ,
147
147
lowercase == null
148
148
? ImmutableDictionary < string , string > . Empty
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class TemplateTextFix : CodeFixProvider
21
21
ASP005ParameterSyntax . DiagnosticId ,
22
22
ASP006ParameterRegex . DiagnosticId ,
23
23
ASP008ValidRouteParameterName . DiagnosticId ,
24
- ASP009LowercaseUrl . DiagnosticId ) ;
24
+ ASP009LowerCaseUrl . DiagnosticId ) ;
25
25
26
26
public override FixAllProvider GetFixAllProvider ( ) => null ;
27
27
@@ -66,7 +66,7 @@ private static string GetTitle(Diagnostic diagnostic)
66
66
return "Escape regex." ;
67
67
case ASP008ValidRouteParameterName . DiagnosticId :
68
68
return "Fix name." ;
69
- case ASP009LowercaseUrl . DiagnosticId :
69
+ case ASP009LowerCaseUrl . DiagnosticId :
70
70
return "To lowercase." ;
71
71
default :
72
72
throw new InvalidOperationException ( "Should never get here." ) ;
You can’t perform that action at this time.
0 commit comments