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
22{
33 using Gu . Roslyn . Asserts ;
44 using Microsoft . CodeAnalysis . CodeFixes ;
@@ -8,7 +8,7 @@ namespace AspNetCoreAnalyzers.Tests.ASP009LowerCaseUrlsTests
88 public class CodeFix
99 {
1010 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 ) ;
1212 private static readonly CodeFixProvider Fix = new TemplateTextFix ( ) ;
1313
1414 [ 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
22{
33 using Gu . Roslyn . Asserts ;
44 using Microsoft . CodeAnalysis . Diagnostics ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ namespace AspNetCoreAnalyzers
22{
33 using Microsoft . CodeAnalysis ;
44
5- internal static class ASP009LowerCaseUrl
5+ internal static class ASP009LowercaseUrl
66 {
77 public const string DiagnosticId = "ASP009" ;
88
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class AttributeAnalyzer : DiagnosticAnalyzer
2323 ASP006ParameterRegex . Descriptor ,
2424 ASP007MissingParameter . Descriptor ,
2525 ASP008ValidRouteParameterName . Descriptor ,
26- ASP009LowerCaseUrl . Descriptor ) ;
26+ ASP009LowercaseUrl . Descriptor ) ;
2727
2828 public override void Initialize ( AnalysisContext context )
2929 {
@@ -142,7 +142,7 @@ context.Node is AttributeSyntax attribute &&
142142 {
143143 context . ReportDiagnostic (
144144 Diagnostic . Create (
145- ASP009LowerCaseUrl . Descriptor ,
145+ ASP009LowercaseUrl . Descriptor ,
146146 segment . Span . GetLocation ( ) ,
147147 lowercase == null
148148 ? ImmutableDictionary < string , string > . Empty
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class TemplateTextFix : CodeFixProvider
2121 ASP005ParameterSyntax . DiagnosticId ,
2222 ASP006ParameterRegex . DiagnosticId ,
2323 ASP008ValidRouteParameterName . DiagnosticId ,
24- ASP009LowerCaseUrl . DiagnosticId ) ;
24+ ASP009LowercaseUrl . DiagnosticId ) ;
2525
2626 public override FixAllProvider GetFixAllProvider ( ) => null ;
2727
@@ -66,7 +66,7 @@ private static string GetTitle(Diagnostic diagnostic)
6666 return "Escape regex." ;
6767 case ASP008ValidRouteParameterName . DiagnosticId :
6868 return "Fix name." ;
69- case ASP009LowerCaseUrl . DiagnosticId :
69+ case ASP009LowercaseUrl . DiagnosticId :
7070 return "To lowercase." ;
7171 default :
7272 throw new InvalidOperationException ( "Should never get here." ) ;
You can’t perform that action at this time.
0 commit comments