Code Inspections in Web.config
In Web.config, ReSharper 2020.2 provides 13 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 Web.config inspections are listed below, grouped by their categories.
Code Notification (2 inspections)
This category groups code inspections with minor severity levels. Inspection ID EditorConfig property | Default severity |
---|---|
Ignored pathWeb.IgnoredPath resharper_web_ignored_path_highlighting | Disabled |
Mapped pathWeb.MappedPath resharper_web_mapped_path_highlighting | Hint |
Potential Code Quality Issues (5 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. Inspection ID EditorConfig property | Default severity |
---|---|
Cannot resolve moduleWebConfig.ModuleNotResolved resharper_web_config_module_not_resolved_highlighting | Error |
Cannot resolve symbolWebConfig.TypeNotResolved resharper_web_config_type_not_resolved_highlighting | Error |
Module qualification requiredWebConfig.ModuleQualificationResolve resharper_web_config_module_qualification_resolve_highlighting | Warning |
Referenced path cannot be found in the websiteWebConfig.WebConfigPathWarning resharper_web_config_web_config_path_warning_highlighting | Warning |
Wrong moduleWebConfig.WrongModule resharper_web_config_wrong_module_highlighting | Error |
Redundancies in Code (6 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. Inspection ID EditorConfig property | Default severity |
---|---|
Redundant add elementWebConfig.UnusedAddTag resharper_web_config_unused_add_tag_highlighting | Warning |
Redundant add namespace elementWebConfig.RedundantAddNamespaceTag resharper_web_config_redundant_add_namespace_tag_highlighting | Warning |
Redundant element or attribute because of 'configSource' attributeWebConfig.UnusedElementDueToConfigSourceAttribute resharper_web_config_unused_element_due_to_config_source_attribute_highlighting | Warning |
Redundant location elementWebConfig.RedundantLocationTag resharper_web_config_redundant_location_tag_highlighting | Warning |
Redundant remove or clear elementWebConfig.UnusedRemoveOrClearTag resharper_web_config_unused_remove_or_clear_tag_highlighting | Warning |
Redundant tagPrefix declarationWebConfig.TagPrefixRedundand resharper_web_config_tag_prefix_redundand_highlighting | Warning |
Last modified: 30 November 2020