ReSharper 2022.3 Help

Code Inspections in Route templates

In Route templates, ReSharper 2022.3 provides 17 proprietary code inspections, any of which you can disable or change its severity level.
These code inspections help you detect code issues in design time in all open files, and additionally they allow you to find code issues in specific scope.

Configurable Route templates inspections are listed below, grouped by their categories.

Code Notification (17 inspections)

This category groups code inspections with minor severity levels.

Inspection


ID


EditorConfig property

Default severity

Action's route prefix can be extracted to controller's route


RouteTemplates.ActionRoutePrefixCanBeExtractedToControllerRoute


resharper_route_templates_action_route_prefix_can_be_extracted_to_controller_route_highlighting

Hint

Controller's route parameter can be passed to methods


RouteTemplates.ControllerRouteParameterIsNotPassedToMethods


resharper_route_templates_controller_route_parameter_is_not_passed_to_methods_highlighting

Hint

Matching parameter constraint's constructor not found


RouteTemplates.MatchingConstraintConstructorNotResolved


resharper_route_templates_matching_constraint_constructor_not_resolved_highlighting

Warning

More than one parameter constraint's constructor matched


RouteTemplates.AmbiguousMatchingConstraintConstructor


resharper_route_templates_ambiguous_matching_constraint_constructor_highlighting

Warning

Not all route parameters are passed to method


RouteTemplates.MethodMissingRouteParameters


resharper_route_templates_method_missing_route_parameters_highlighting

Hint

Optional parameter can be preceded only by single period ('.') in the segment


RouteTemplates.OptionalParameterCanBePrecededOnlyBySinglePeriod


resharper_route_templates_optional_parameter_can_be_preceded_only_by_single_period_highlighting

Warning

Optional parameter must be at the end of the segment


RouteTemplates.OptionalParameterMustBeAtTheEndOfSegment


resharper_route_templates_optional_parameter_must_be_at_the_end_of_segment_highlighting

Warning

Parameter declared in route more than once


RouteTemplates.DuplicatedParameter


resharper_route_templates_duplicated_parameter_highlighting

Warning

Parameter's type can be made stricter due to applied constraints


RouteTemplates.ParameterTypeCanBeMadeStricter


resharper_route_templates_parameter_type_can_be_made_stricter_highlighting

Suggestion

Route parameter can be passed to method


RouteTemplates.RouteParameterIsNotPassedToMethod


resharper_route_templates_route_parameter_is_not_passed_to_method_highlighting

Hint

Route parameter constraint argument cannot be converted to target type


RouteTemplates.ConstraintArgumentCannotBeConverted


resharper_route_templates_constraint_argument_cannot_be_converted_highlighting

Warning

Route parameter constraint can be added due to type of method argument


RouteTemplates.ParameterConstraintCanBeSpecified


resharper_route_templates_parameter_constraint_can_be_specified_highlighting

Hint

Route parameter constraint not resolved


RouteTemplates.RouteParameterConstraintNotResolved


resharper_route_templates_route_parameter_constraint_not_resolved_highlighting

Warning

Route token not resolved


RouteTemplates.RouteTokenNotResolved


resharper_route_templates_route_token_not_resolved_highlighting

Warning

Symbol not resolved


RouteTemplates.SymbolNotResolved


resharper_route_templates_symbol_not_resolved_highlighting

Warning

Syntax error


RouteTemplates.SyntaxError


resharper_route_templates_syntax_error_highlighting

Warning

Type of parameter doesn't satisfy constraints declared in route template


RouteTemplates.ParameterTypeAndConstraintsMismatch


resharper_route_templates_parameter_type_and_constraints_mismatch_highlighting

Warning

Last modified: 28 December 2022