-
Notifications
You must be signed in to change notification settings - Fork 10.7k
[Analyzer] Route syntax analyzer #44315
Copy link
Copy link
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedapi-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementation
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedapi-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementation
Type
Fields
Give feedbackNo fields configured for issues without a type.
Background and Motivation
A route is a string that has a standard syntax. An invalid route string errors at runtime when parsed. This typically happens at app startup. We want to tighten the dev loop and tell people their route is invalid in the IDE.
Proposed API
An analyzer that inspects route strings for invalid content.
A route string is indicated by
[StringSyntax("Route")]on the property, method argument, or constructor argument.Usage Examples
Alternative Designs
Risks