ReSharper 2020.1 Help

Code Inspections in ASP.NET

In ASP.NET, ReSharper 2020.1 provides two kinds of code inspections: 6 inspections that detect errors such as broken syntax, unresolved symbols, compiler errors, and so on (you cannot configure or disable any of these inspections), and 35 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 ASP.NET inspections are listed below, grouped by their categories.

Common Practices and Code Improvements (1 inspection)

This category groups inspections that hunt for medium severity issues that mainly affect code readability.
InspectionIDEditorConfig propertyDefault severity
Attribute with optional value problemAsp.TagAttributeWithOptionalValueresharper_asp_tag_attribute_with_optional_value_highlightingWarning

Potential Code Quality Issues (25 inspections)

This category includes inspections that detect critical issues (code smells), mostly with Error or Warning level. This category also includes inspections that ensure localization assistance.
InspectionIDEditorConfig propertyDefault severity
ASP.NET Dead CodeAsp.DeadCoderesharper_asp_dead_code_highlightingWarning
ASP.NET Resolve WarningAsp.ResolveWarningresharper_asp_resolve_warning_highlightingWarning
ASP.NET WarningAsp.Warningresharper_asp_warning_highlightingWarning
Cannot resolve propertyPropertyNotResolvedresharper_property_not_resolved_highlightingError
Cannot resolve resourceResourceNotResolvedresharper_resource_not_resolved_highlightingError
Cannot resolve resource itemResourceItemNotResolvedresharper_resource_item_not_resolved_highlightingError
Invalid control typeAsp.InvalidControlTyperesharper_asp_invalid_control_type_highlightingError
MVC (mismatch Model Type)Mvc.InvalidModelTyperesharper_mvc_invalid_model_type_highlightingError
MVC (unknown action)Mvc.ActionNotResolvedresharper_mvc_action_not_resolved_highlightingError
MVC (unknown area)Mvc.AreaNotResolvedresharper_mvc_area_not_resolved_highlightingError
MVC (unknown controller)Mvc.ControllerNotResolvedresharper_mvc_controller_not_resolved_highlightingError
MVC (unknown masterpage)Mvc.MasterpageNotResolvedresharper_mvc_masterpage_not_resolved_highlightingError
MVC (unknown partial view)Mvc.PartialViewNotResolvedresharper_mvc_partial_view_not_resolved_highlightingError
MVC (unknown template)Mvc.TemplateNotResolvedresharper_mvc_template_not_resolved_highlightingError
MVC (unknown view component view)Mvc.ViewComponentViewNotResolvedresharper_mvc_view_component_view_not_resolved_highlightingError
MVC (unknown view component)Mvc.ViewComponentNotResolvedresharper_mvc_view_component_not_resolved_highlightingError
MVC (unknown view)Mvc.ViewNotResolvedresharper_mvc_view_not_resolved_highlightingError
Non-accessed field (non-private accessibility)NotAccessedField.Globalresharper_not_accessed_field_global_highlightingSuggestion
Object data source method resolve problemAspOdsMethodReferenceResolveErrorresharper_asp_ods_method_reference_resolve_error_highlightingError
Unknown content placeholderAsp.ContentPlaceholderNotResolvedresharper_asp_content_placeholder_not_resolved_highlightingError
Unknown skinAsp.SkinNotResolvedresharper_asp_skin_not_resolved_highlightingError
Unknown symbolAsp.NotResolvedresharper_asp_not_resolved_highlightingError
Unknown themeAsp.ThemeNotResolvedresharper_asp_theme_not_resolved_highlightingError
Unsupported pageParserFilterTypeAsp.CustomPageParserFilterTyperesharper_asp_custom_page_parser_filter_type_highlightingWarning
Wrong image sizeAsp.Imageresharper_asp_image_highlightingWarning

Redundancies in Code (3 inspections)

Code inspections in this category look for redundancies and dead code, which affect code readability and style, and could be safely removed. Some code redundancies cannot be fixed automatically, and quick-fixes for them are performed in the interactive mode, requiring the user input. But the majority of the redundancies can be fixed without user interaction, using either fix in scope or code cleanup.
InspectionIDEditorConfig propertyDefault severity
Redundant using directiveRedundantUsingDirectiveresharper_redundant_using_directive_highlightingWarning
Unused import clauseUnusedImportClauseresharper_unused_import_clause_highlightingWarning
Unused register directiveAspUnusedRegisterDirectiveHighlightingresharper_asp_unused_register_directive_highlighting_highlightingWarning

Redundancies in Symbol Declarations (1 inspection)

This category includes code inspections, mostly with the warning severity level, which detect empty and unused symbol declarations.
InspectionIDEditorConfig propertyDefault severity
Type member is never used (non-private accessibility)UnusedMember.Globalresharper_unused_member_global_highlightingSuggestion

Spelling issues (5 inspections)

These inspections detect typos in various contexts.
InspectionIDEditorConfig propertyDefault severity
Typo in commentCommentTyporesharper_comment_typo_highlightingSuggestion
Typo in identifierIdentifierTyporesharper_identifier_typo_highlightingSuggestion
Typo in markup attribute valueMarkupAttributeTyporesharper_markup_attribute_typo_highlightingSuggestion
Typo in markup textMarkupTextTyporesharper_markup_text_typo_highlightingSuggestion
Typo in string literalStringLiteralTyporesharper_string_literal_typo_highlightingSuggestion
Last modified: 22 July 2020