This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DiagnosticAnalyzer(LanguageNames.CSharp)] | |
public class RefitRouteAnalyzer : DiagnosticAnalyzer | |
{ | |
private const string Category = "Routing"; | |
public const string DiagnosticId = "RefitRouteAnalyzer"; | |
private static readonly DiagnosticDescriptor AttributeRule = new DiagnosticDescriptor( | |
DiagnosticId, | |
title: "Route string should match method signature", | |
messageFormat: "Attribute name '{0}' contains incorrect route", |