class
Analyzer::CSharp::FastEndpoints
- Analyzer::CSharp::FastEndpoints
- Analyzer
- Reference
- Object
Included Modules
Defined in:
analyzer/analyzers/csharp/fastendpoints.crConstant Summary
-
BASE_TYPE_REGEX =
/:\s*(?:[A-Za-z_][A-Za-z0-9_]*\s*,\s*)*(Endpoint(?:WithoutRequest)?(?:<[^>]*>)?|Ep<[^>]*>)/ -
Endpoint<TRequest>,Endpoint<TRequest, TResponse>,EndpointWithoutRequest,EndpointWithoutRequest<TResponse>, and theEpshort alias all subclass the FastEndpoints endpoint primitive. Any class matching one of these as a base is a candidate. -
HTTP_VERB_TOKEN_REGEX =
/(?:Http\.)?(GET|POST|PUT|PATCH|DELETE|OPTIONS|HEAD)/ -
ROUTES_CALL_REGEX =
/\bRoutes\s*\(\s*([^)]*)\)/m -
VERB_CALL_REGEX =
/\b(Get|Post|Put|Patch|Delete|Options|Head)\s*\(\s*"([^"]+)"/m -
VERBS_CALL_REGEX =
/\bVerbs\s*\(\s*([^)]*)\)/m