Code Inspections in Route templates
In Route templates, ReSharper 2021.2 provides 18 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 (18 inspections)
This category groups code inspections with minor severity levels.
Inspection | |
---|---|
Action's route prefix can be extracted to controller's route | |
Controller's route parameter can be passed to methods | |
Matching parameter constraint's constructor not found | |
More than one parameter constraint's constructor matched | |
Not all route parameters are passed to method | |
Optional parameter can be preceded only by single period ('.') in the segment | |
Optional parameter must be at the end of the segment | |
Parameter declared in route more than once | |
Parameter's type can be made stricter due to applied constraints | |
Route matches multiple endpoints | |
Route parameter can be passed to method | |
Route parameter constraint argument cannot be converted to target type | |
Route parameter constraint can be added due to type of method argument | |
Route parameter constraint not resolved | |
Route token not resolved | |
Symbol not resolved | |
Syntax error | |
Type of parameter doesn't satisfy constraints declared in route template |