Code Inspections in Resource files
In Resource files, 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 Resource files inspections are listed below, grouped by their categories.
Potential Code Quality Issues (8 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 symbolResxNotResolved resharper_resx_not_resolved_highlighting | Warning |
Duplicate resource nameDuplicateResource resharper_duplicate_resource_highlighting | Warning |
Element is localizableLocalizableElement resharper_localizable_element_highlighting | Warning |
Format string placeholders mismatchFormatStringPlaceholdersMismatch resharper_format_string_placeholders_mismatch_highlighting | Warning |
Resource is not declared in base cultureNotDeclaredInParentCulture resharper_not_declared_in_parent_culture_highlighting | Warning |
Resource is not overridden in specific cultureNotOverriddenInSpecificCulture resharper_not_overridden_in_specific_culture_highlighting | Warning |
Resource overrides base resource with empty valueOverriddenWithEmptyValue resharper_overridden_with_empty_value_highlighting | Warning |
Resource value type is invalidInvalidValueType resharper_invalid_value_type_highlighting | Warning |
Redundancies in Code (2 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 string typeRedundantStringType resharper_redundant_string_type_highlighting | Suggestion |
Resource is overridden with identical valueOverriddenWithSameValue resharper_overridden_with_same_value_highlighting | Suggestion |
Spelling issues (3 inspections)
These inspections detect typos in various contexts. Inspection ID EditorConfig property | Default severity |
---|---|
Typo in commentCommentTypo resharper_comment_typo_highlighting | Suggestion |
Typo in markup attribute valueMarkupAttributeTypo resharper_markup_attribute_typo_highlighting | Suggestion |
Typo in markup textMarkupTextTypo resharper_markup_text_typo_highlighting | Suggestion |
Last modified: 30 November 2020