Rule Cross-Reference¶
Baseline: C# 14 / .NET 10 · Levels: DO · DO NOT · CONSIDER · AVOID
This table lists every rule of pages 01 to 16 with its level, page, enforcing tool IDs and .editorconfig keys. Each row repeats the rule's metadata line.
FMT¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| FMT-010 | DO | 01 | IDE0055 |
indent_style, indent_size, tab_width, trim_trailing_whitespace, insert_final_newline, charset |
| FMT-020 | DO | 01 | IDE0055 |
csharp_new_line_before_open_brace, csharp_preserve_single_line_blocks, resharper_csharp_brace_style |
| FMT-021 | DO | 01 | IDE0011, ReSharper: EnforceIfStatementBraces |
csharp_prefer_braces, resharper_csharp_braces_for_ifelse, resharper_csharp_braces_for_for, resharper_csharp_braces_for_foreach, resharper_csharp_braces_for_while, resharper_csharp_braces_for_dowhile, resharper_csharp_braces_for_using, resharper_csharp_braces_for_lock, resharper_csharp_braces_for_fixed, resharper_enforce_if_statement_braces_highlighting, resharper_enforce_for_statement_braces_highlighting, resharper_enforce_foreach_statement_braces_highlighting, resharper_enforce_while_statement_braces_highlighting, resharper_enforce_do_while_statement_braces_highlighting, resharper_enforce_using_statement_braces_highlighting, resharper_enforce_lock_statement_braces_highlighting, resharper_enforce_fixed_statement_braces_highlighting |
| FMT-022 | DO | 01 | IDE0055 |
csharp_new_line_before_else, csharp_new_line_before_catch, csharp_new_line_before_finally |
| FMT-023 | DO | 01 | IDE0055 |
csharp_indent_block_contents, csharp_indent_braces |
| FMT-024 | DO | 01 | IDE0055 |
csharp_indent_switch_labels, csharp_indent_case_contents, csharp_indent_case_contents_when_block |
| FMT-030 | DO | 01 | IDE0055 |
csharp_space_after_keywords_in_control_flow_statements, csharp_space_after_comma, csharp_space_before_comma, csharp_space_after_semicolon_in_for_statement, csharp_space_before_semicolon_in_for_statement, csharp_space_after_colon_in_inheritance_clause, csharp_space_before_colon_in_inheritance_clause |
| FMT-031 | DO NOT | 01 | IDE0055 |
csharp_space_between_parentheses, csharp_space_after_cast, csharp_space_between_method_declaration_name_and_open_parenthesis, csharp_space_between_method_declaration_parameter_list_parentheses, csharp_space_between_method_declaration_empty_parameter_list_parentheses, csharp_space_between_method_call_name_and_opening_parenthesis, csharp_space_between_method_call_parameter_list_parentheses, csharp_space_between_method_call_empty_parameter_list_parentheses, csharp_space_before_open_square_brackets, csharp_space_between_square_brackets, csharp_space_between_empty_square_brackets, csharp_space_after_dot, csharp_space_before_dot |
| FMT-032 | DO NOT | 01 | IDE0055 |
csharp_space_around_declaration_statements |
| FMT-040 | DO | 01 | Manual | max_line_length |
| FMT-041 | DO | 01 | Manual | dotnet_style_operator_placement_when_wrapping, resharper_csharp_wrap_before_binary_opsign, resharper_csharp_wrap_chained_method_calls, resharper_csharp_wrap_parameters_style, resharper_csharp_wrap_arguments_style, resharper_csharp_wrap_chained_binary_expressions, resharper_csharp_wrap_before_arrow_with_expressions, resharper_csharp_keep_user_linebreaks |
| FMT-042 | DO | 01 | IDE0055 |
csharp_preserve_single_line_statements, resharper_csharp_place_simple_embedded_statement_on_same_line, resharper_multiple_statements_on_one_line_highlighting |
| FMT-043 | DO | 01 | IDE2000 |
dotnet_style_allow_multiple_blank_lines_experimental, resharper_csharp_keep_blank_lines_in_code, resharper_csharp_keep_blank_lines_in_declarations |
| FMT-044 | DO NOT | 01 | IDE2002, ReSharper: IncorrectBlankLinesNearBraces |
csharp_style_allow_blank_lines_between_consecutive_braces_experimental, resharper_csharp_remove_blank_lines_near_braces_in_code, resharper_csharp_remove_blank_lines_near_braces_in_declarations, resharper_incorrect_blank_lines_near_braces_highlighting |
| FMT-045 | DO | 01 | IDE0055 |
resharper_csharp_blank_lines_after_using_list, resharper_csharp_blank_lines_after_file_scoped_namespace_directive |
| FMT-046 | DO | 01 | ReSharper: SeparateControlTransferStatement |
resharper_csharp_blank_lines_before_control_transfer_statements, resharper_separate_control_transfer_statement_highlighting |
| FMT-050 | DO | 01 | IDE0055 |
csharp_new_line_before_members_in_object_initializers, csharp_new_line_before_members_in_anonymous_types |
| FMT-051 | CONSIDER | 01 | IDE0047, IDE0048 |
dotnet_style_parentheses_in_arithmetic_binary_operators, dotnet_style_parentheses_in_relational_binary_operators, dotnet_style_parentheses_in_other_binary_operators, dotnet_style_parentheses_in_other_operators, resharper_csharp_parentheses_redundancy_style |
| FMT-052 | DO NOT | 01 | ReSharper: ArrangeTrailingCommaInMultilineLists |
resharper_csharp_trailing_comma_in_multiline_lists, resharper_csharp_trailing_comma_in_singleline_lists, resharper_arrange_trailing_comma_in_multiline_lists_highlighting |
| FMT-060 | DO | 01 | IDE0161, ReSharper: ArrangeNamespaceBody |
csharp_style_namespace_declarations, resharper_csharp_namespace_body, resharper_arrange_namespace_body_highlighting |
| FMT-061 | DO | 01 | IDE0065 |
csharp_using_directive_placement, resharper_csharp_add_imports_to_deepest_scope, resharper_csharp_qualified_using_at_nested_scope |
| FMT-062 | DO | 01 | Manual | dotnet_sort_system_directives_first, dotnet_separate_import_directive_groups, resharper_csharp_sort_usings_with_system_first |
| FMT-063 | DO | 01 | IDE0005, ReSharper: RedundantUsingDirective |
resharper_redundant_using_directive_highlighting |
| FMT-064 | DO | 01 | Manual | - |
| FMT-065 | DO | 01 | Manual | - |
| FMT-066 | DO NOT | 01 | Manual | - |
NAM¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| NAM-010 | DO | 02 | Manual | - |
| NAM-011 | DO | 02 | Manual | - |
| NAM-012 | DO | 02 | Manual | - |
| NAM-013 | DO NOT | 02 | Manual | - |
| NAM-014 | DO | 02 | Manual | - |
| NAM-015 | DO NOT | 02 | Manual | dotnet_diagnostic.CA1716.severity |
| NAM-016 | DO NOT | 02 | CA1707, IDE1006 |
dotnet_naming_style.camel_case.word_separator, dotnet_naming_style.underscore_camel_case.word_separator |
| NAM-017 | DO NOT | 02 | CA1708 |
- |
| NAM-020 | DO | 02 | Manual | - |
| NAM-021 | DO | 02 | Manual | - |
| NAM-022 | DO | 02 | Manual | - |
| NAM-023 | DO NOT | 02 | Manual | - |
| NAM-024 | DO | 02 | CA1711 |
- |
| NAM-025 | DO | 02 | Manual | - |
| NAM-026 | DO | 02 | Manual | - |
| NAM-030 | DO | 02 | Manual | - |
| NAM-031 | DO | 02 | IDE1006 |
dotnet_naming_rule.nam_031_namespaces.* |
| NAM-032 | DO | 02 | IDE0130, ReSharper: CheckNamespace |
dotnet_style_namespace_match_folder, resharper_check_namespace_highlighting |
| NAM-033 | DO | 02 | Manual | - |
| NAM-034 | DO | 02 | Manual | - |
| NAM-035 | DO | 02 | Manual | - |
| NAM-036 | DO | 02 | Manual | - |
| NAM-110 | DO | 03 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-111 | DO NOT | 03 | Manual | - |
| NAM-112 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-113 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-114 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-115 | DO | 03 | CA1715, IDE1006 |
dotnet_naming_rule.nam_115_interfaces.*, resharper_csharp_naming_rule.interfaces |
| NAM-116 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-117 | DO | 03 | CA1715, IDE1006 |
dotnet_naming_rule.nam_117_type_parameters.*, resharper_csharp_naming_rule.type_parameters |
| NAM-118 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-119 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-120 | DO | 03 | CA1711, IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-121 | DO | 03 | CA1008, CA1027, CA2217 |
- |
| NAM-122 | DO | 03 | CA1712, ReSharper: InconsistentNaming |
resharper_csharp_naming_rule.enum_member |
| NAM-123 | DO | 03 | CA1711, IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| NAM-124 | DO | 03 | CA1710 |
- |
| NAM-125 | DO | 03 | CA1710 |
- |
| NAM-126 | DO | 03 | CA1710 |
- |
| NAM-127 | DO | 03 | Manual | - |
| NAM-128 | DO NOT | 03 | CA1710, CA1711 |
- |
| NAM-129 | DO NOT | 03 | CA1724 |
- |
| NAM-130 | DO | 03 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_130_methods.*, resharper_csharp_naming_rule.method |
| NAM-131 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_131_async_methods.* |
| NAM-132 | DO | 03 | Manual | - |
| NAM-133 | DO | 03 | Manual | - |
| NAM-134 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_134_local_functions.*, resharper_csharp_naming_rule.local_functions |
| NAM-135 | DO | 03 | CA1725 |
- |
| NAM-136 | DO | 03 | CS8826 |
- |
| NAM-137 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_220_parameters.*, resharper_csharp_naming_rule.parameters |
| NAM-140 | DO | 03 | IDE1006 |
dotnet_naming_rule.nam_140_properties.*, resharper_csharp_naming_rule.property |
| NAM-141 | DO | 03 | Manual | - |
| NAM-142 | DO | 03 | Manual | - |
| NAM-143 | DO | 03 | Manual | - |
| NAM-144 | DO | 03 | CA1713, IDE1006 |
dotnet_naming_rule.nam_144_events.*, resharper_csharp_naming_rule.event |
| NAM-145 | DO | 03 | Manual | - |
| NAM-146 | DO | 03 | Manual | - |
| NAM-200 | DO | 04 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_200_private_fields.*, resharper_csharp_naming_rule.private_instance_fields |
| NAM-201 | DO | 04 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_200_private_fields.*, resharper_csharp_naming_rule.private_instance_fields |
| NAM-202 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_200_private_fields.*, resharper_csharp_naming_rule.private_instance_fields |
| NAM-203 | DO | 04 | IDE1006 (public fields only), CA1051 |
dotnet_naming_rule.nam_203_public_fields.*, resharper_csharp_naming_rule.public_fields |
| NAM-204 | DO | 04 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_200_private_fields.*, resharper_csharp_naming_rule.private_instance_fields |
| NAM-205 | DO NOT | 04 | IDE1006 |
dotnet_naming_rule.nam_200_private_fields.*, resharper_csharp_naming_rule.private_instance_fields |
| NAM-206 | DO NOT | 04 | CA1707 |
- |
| NAM-210 | DO | 04 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_210_static_fields.*, resharper_csharp_naming_rule.private_static_fields |
| NAM-211 | DO | 04 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_211_static_readonly_fields.*, resharper_csharp_naming_rule.private_static_readonly |
| NAM-212 | DO | 04 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_210_static_fields.*, resharper_csharp_naming_rule.private_static_fields |
| NAM-213 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_213_static_readonly_fields.*, resharper_csharp_naming_rule.static_readonly |
| NAM-214 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_214_constants.*, resharper_csharp_naming_rule.constants, resharper_csharp_naming_rule.private_constants |
| NAM-215 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_214_constants.*, resharper_csharp_naming_rule.constants, resharper_csharp_naming_rule.private_constants |
| NAM-216 | CONSIDER | 04 | ReSharper: InconsistentNaming (IDE only) |
dotnet_naming_rule.nam_216_local_constants.*, resharper_csharp_naming_rule.local_constants |
| NAM-220 | DO | 04 | IDE1006, ReSharper: InconsistentNaming |
dotnet_naming_rule.nam_220_parameters.*, resharper_csharp_naming_rule.parameters |
| NAM-221 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_220_parameters.*, dotnet_naming_rule.nam_140_properties.*, resharper_csharp_naming_rule.parameters, resharper_csharp_naming_rule.property |
| NAM-222 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_220_parameters.*, resharper_csharp_naming_rule.parameters |
| NAM-223 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_220_parameters.*, resharper_csharp_naming_rule.parameters |
| NAM-224 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_220_parameters.*, resharper_csharp_naming_rule.parameters |
| NAM-225 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_220_parameters.*, resharper_csharp_naming_rule.parameters |
| NAM-226 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_220_parameters.*, resharper_csharp_naming_rule.parameters |
| NAM-227 | DO | 04 | CS1739 |
- |
| NAM-230 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_230_locals.*, resharper_csharp_naming_rule.locals |
| NAM-231 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_230_locals.*, resharper_csharp_naming_rule.locals |
| NAM-232 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_220_parameters.*, resharper_csharp_naming_rule.parameters |
| NAM-233 | DO | 04 | IDE0059 |
csharp_style_unused_value_assignment_preference |
| NAM-234 | DO | 04 | Manual | - |
| NAM-235 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_230_locals.*, resharper_csharp_naming_rule.locals |
| NAM-236 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_230_locals.*, resharper_csharp_naming_rule.locals |
| NAM-237 | DO | 04 | Manual | - |
| NAM-238 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_230_locals.*, resharper_csharp_naming_rule.locals |
| NAM-239 | DO | 04 | IDE1006 |
dotnet_naming_rule.nam_230_locals.*, resharper_csharp_naming_rule.locals |
| NAM-240 | DO | 04 | Manual | - |
| NAM-241 | DO | 04 | Manual | - |
VAR¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| VAR-010 | CONSIDER | 05 | IDE0007 (suggestion), ReSharper: SuggestVarOrType_BuiltInTypes, SuggestVarOrType_SimpleTypes, SuggestVarOrType_Elsewhere |
csharp_style_var_for_built_in_types, csharp_style_var_when_type_is_apparent, csharp_style_var_elsewhere, resharper_csharp_for_built_in_types, resharper_csharp_for_simple_types, resharper_csharp_for_other_types, resharper_csharp_use_roslyn_logic_for_evident_types, resharper_suggest_var_or_type_built_in_types_highlighting, resharper_suggest_var_or_type_simple_types_highlighting, resharper_suggest_var_or_type_elsewhere_highlighting |
| VAR-014 | DO | 05 | IDE0090, ReSharper: ArrangeObjectCreationWhenTypeEvident |
csharp_style_implicit_object_creation_when_type_is_apparent, resharper_csharp_object_creation_when_type_evident, resharper_csharp_object_creation_when_type_not_evident, resharper_arrange_object_creation_when_type_evident_highlighting |
| VAR-015 | DO | 05 | IDE0034, ReSharper: ArrangeDefaultValueWhenTypeEvident |
csharp_prefer_simple_default_expression, resharper_csharp_default_value_when_type_evident, resharper_csharp_default_value_when_type_not_evident, resharper_arrange_default_value_when_type_evident_highlighting |
| VAR-016 | DO | 05 | Manual | - |
| VAR-017 | DO | 05 | IDE0059, ReSharper: JoinDeclarationAndInitializer |
csharp_style_unused_value_assignment_preference, resharper_join_declaration_and_initializer_highlighting |
| VAR-020 | DO | 05 | ReSharper: BuiltInTypeReferenceStyle |
dotnet_style_predefined_type_for_locals_parameters_members, dotnet_style_predefined_type_for_member_access, resharper_csharp_builtin_type_reference_style, resharper_csharp_builtin_type_reference_for_member_access_style, resharper_csharp_builtin_type_apply_to_native_integer, resharper_built_in_type_reference_style_highlighting, resharper_built_in_type_reference_style_for_member_access_highlighting |
| VAR-021 | DO | 05 | Manual | - |
| VAR-022 | DO | 05 | CS0078 |
- |
| VAR-023 | DO | 05 | Manual | - |
| VAR-024 | DO | 05 | Manual | - |
| VAR-025 | DO NOT | 05 | IDE0075, IDE0100 |
dotnet_style_prefer_simplified_boolean_expressions |
| VAR-026 | DO | 05 | CA1834, CA1847, CA1865, CA1866, CA1867 |
- |
| VAR-027 | DO | 05 | Manual | - |
| VAR-030 | DO | 05 | ReSharper: UseRawString |
resharper_use_raw_string_highlighting |
| VAR-031 | AVOID | 05 | Manual | - |
| VAR-032 | DO | 05 | Manual | - |
| VAR-033 | DO | 05 | IDE0071, ReSharper: UseStringInterpolation |
dotnet_style_prefer_simplified_interpolation, resharper_use_string_interpolation_highlighting |
| VAR-034 | DO | 05 | Manual | - |
| VAR-035 | DO | 05 | IDE0230, ReSharper: UseUtf8StringLiteral |
csharp_style_prefer_utf8_string_literals, resharper_use_utf8_string_literal_highlighting |
| VAR-040 | DO | 05 | Manual | - |
| VAR-041 | DO | 05 | Manual | - |
| VAR-042 | DO | 05 | Manual | - |
| VAR-043 | DO | 05 | Manual | - |
| VAR-044 | DO | 05 | Manual | - |
| VAR-050 | DO | 05 | CS8600, CS8602, CS8604, CS8625 |
- |
| VAR-051 | DO | 05 | CS8603, CS8618 |
- |
| VAR-052 | DO | 05 | Manual | - |
| VAR-053 | AVOID | 05 | IDE0370 |
- |
| VAR-054 | DO | 05 | CS8602 |
- |
| VAR-510 | DO | 06 | CA1802 |
- |
| VAR-511 | DO | 06 | ReSharper: ConvertToConstant.Local |
resharper_convert_to_constant_local_highlighting |
| VAR-512 | DO | 06 | CA1051 |
dotnet_code_quality.CA1051.exclude_structs |
| VAR-513 | DO | 06 | CA2211 |
- |
| VAR-514 | DO | 06 | CA2019 |
- |
| VAR-515 | DO | 06 | CA1805, ReSharper: RedundantDefaultMemberInitializer |
resharper_redundant_default_member_initializer_highlighting |
| VAR-520 | DO | 06 | IDE0032, ReSharper: ConvertToAutoProperty |
dotnet_style_prefer_auto_properties, resharper_convert_to_auto_property_highlighting |
| VAR-521 | DO | 06 | CA1044, ReSharper: AutoPropertyCanBeMadeGetOnly.Global |
resharper_auto_property_can_be_made_get_only_global_highlighting, resharper_auto_property_can_be_made_get_only_local_highlighting |
| VAR-522 | DO | 06 | CS8618 |
- |
| VAR-523 | DO | 06 | IDE0360, ReSharper: ReplaceWithFieldKeyword |
csharp_style_prefer_simple_property_accessors, resharper_replace_with_field_keyword_highlighting |
| VAR-524 | DO | 06 | IDE0025, IDE0026, IDE0027, ReSharper: ArrangeAccessorOwnerBody |
csharp_style_expression_bodied_properties, csharp_style_expression_bodied_indexers, csharp_style_expression_bodied_accessors, resharper_csharp_accessor_owner_body, resharper_arrange_accessor_owner_body_highlighting |
| VAR-525 | DO | 06 | CS8618 |
- |
| VAR-526 | DO | 06 | CA1819 |
- |
| VAR-527 | DO | 06 | Manual | - |
| VAR-528 | DO | 06 | Manual | - |
| VAR-530 | DO | 06 | CA1814, IDE0300 |
dotnet_style_prefer_collection_expression |
| VAR-531 | DO | 06 | IDE0028, IDE0303, IDE0304, IDE0306, ReSharper: UseCollectionExpression |
dotnet_style_prefer_collection_expression, dotnet_style_collection_initializer, resharper_use_collection_expression_highlighting |
| VAR-532 | DO | 06 | CA1825, IDE0301 |
- |
| VAR-533 | DO | 06 | Manual | - |
| VAR-534 | DO | 06 | IDE0303, IDE0304 |
- |
| VAR-535 | DO | 06 | CA1002, CA2227 |
- |
| VAR-536 | CONSIDER | 06 | IDE0056, IDE0057 |
csharp_style_prefer_index_operator, csharp_style_prefer_range_operator |
| VAR-540 | DO | 06 | IDE0033 |
dotnet_style_explicit_tuple_names |
| VAR-541 | DO | 06 | IDE0042, ReSharper: ArrangeVarKeywordsInDeconstructingDeclaration |
csharp_style_deconstructed_variable_declaration, resharper_csharp_prefer_separate_deconstructed_variables_declaration, resharper_arrange_var_keywords_in_deconstructing_declaration_highlighting |
| VAR-542 | DO | 06 | Manual | - |
| VAR-543 | DO | 06 | IDE0250, IDE0251 |
csharp_style_prefer_readonly_struct, csharp_style_prefer_readonly_struct_member |
| VAR-544 | DO | 06 | Manual | - |
| VAR-545 | DO NOT | 06 | Manual | - |
| VAR-546 | DO | 06 | CA1008, CA1028 |
- |
| VAR-547 | CONSIDER | 06 | IDE0320 |
csharp_prefer_static_anonymous_function |
| VAR-548 | DO | 06 | Manual | - |
| VAR-550 | DO | 06 | IDE0018, ReSharper: InlineOutVariableDeclaration |
csharp_style_inlined_variable_declaration, resharper_inline_out_variable_declaration_highlighting |
| VAR-551 | DO | 06 | IDE0063, ReSharper: ConvertToUsingDeclaration |
csharp_prefer_simple_using_statement, resharper_convert_to_using_declaration_highlighting |
| VAR-552 | DO | 06 | ReSharper: UseAwaitUsing |
resharper_use_await_using_highlighting |
| VAR-553 | DO | 06 | IDE0078, IDE0083, IDE0170 |
csharp_style_prefer_pattern_matching, csharp_style_prefer_not_pattern, csharp_style_prefer_extended_property_pattern |
| VAR-554 | DO | 06 | Manual | - |
| VAR-555 | DO | 06 | CA2014 |
- |
| VAR-556 | DO NOT | 06 | Manual | - |
| VAR-557 | DO NOT | 06 | Manual | - |
LANG¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| LANG-010 | CONSIDER | 07 | IDE0022, IDE0023, IDE0024, IDE0053, IDE0061, IDE0021, ReSharper: ArrangeMethodOrOperatorBody, ArrangeConstructorOrDestructorBody |
csharp_style_expression_bodied_methods, csharp_style_expression_bodied_operators, csharp_style_expression_bodied_local_functions, csharp_style_expression_bodied_lambdas, csharp_style_expression_bodied_constructors, resharper_csharp_method_or_operator_body, resharper_csharp_local_function_body, resharper_csharp_constructor_or_destructor_body, resharper_csharp_use_heuristics_for_body_style, resharper_arrange_method_or_operator_body_highlighting, resharper_arrange_local_function_body_highlighting, resharper_arrange_constructor_or_destructor_body_highlighting |
| LANG-012 | DO | 07 | IDE0290, ReSharper: ConvertToPrimaryConstructor |
csharp_style_prefer_primary_constructors, resharper_convert_to_primary_constructor_highlighting |
| LANG-013 | DO | 07 | IDE0039 |
csharp_style_prefer_local_over_anonymous_function |
| LANG-014 | DO | 07 | IDE0062 |
csharp_prefer_static_local_function |
| LANG-020 | DO | 07 | IDE0019, IDE0020, IDE0260, ReSharper: MergeIntoPattern |
csharp_style_pattern_matching_over_as_with_null_check, csharp_style_pattern_matching_over_is_with_cast_check, resharper_merge_into_pattern_highlighting |
| LANG-021 | DO | 07 | IDE0066, IDE0072, ReSharper: ConvertSwitchStatementToSwitchExpression |
csharp_style_prefer_switch_expression, resharper_convert_switch_statement_to_switch_expression_highlighting |
| LANG-022 | DO | 07 | IDE0029, IDE0030, IDE0031, IDE0041, IDE0074, IDE0150, IDE0270, IDE1005 |
dotnet_style_coalesce_expression, dotnet_style_null_propagation, dotnet_style_prefer_is_null_check_over_reference_equality_method, dotnet_style_prefer_compound_assignment, csharp_style_prefer_null_check_over_type_check, csharp_style_conditional_delegate_call, resharper_csharp_null_checking_pattern_style |
| LANG-023 | CONSIDER | 07 | IDE0045, IDE0046 |
dotnet_style_prefer_conditional_expression_over_assignment, dotnet_style_prefer_conditional_expression_over_return |
| LANG-030 | DO | 07 | IDE0017, ReSharper: UseObjectOrCollectionInitializer |
dotnet_style_object_initializer, resharper_use_object_or_collection_initializer_highlighting |
| LANG-031 | DO | 07 | CA1507, IDE0082, ReSharper: UseNameofExpression |
resharper_use_nameof_expression_highlighting |
| LANG-032 | CONSIDER | 07 | IDE0016 |
csharp_style_throw_expression |
| LANG-033 | DO | 07 | IDE0054 |
dotnet_style_prefer_compound_assignment |
| LANG-034 | DO | 07 | IDE0340 |
csharp_style_prefer_unbound_generic_type_in_nameof |
| LANG-035 | DO | 07 | IDE0037 |
dotnet_style_prefer_inferred_anonymous_type_member_names, dotnet_style_prefer_inferred_tuple_names |
| LANG-040 | DO | 07 | Manual | - |
| LANG-041 | DO | 07 | CA1309, CA1310, CA1307, CA1862, CA2251 |
- |
| LANG-042 | DO | 07 | CA1820, ReSharper: ReplaceWithStringIsNullOrEmpty |
resharper_replace_with_string_is_null_or_empty_highlighting |
| LANG-043 | DO | 07 | CA1305 |
- |
| LANG-044 | DO | 07 | CA1304, CA1311 |
- |
| LANG-050 | DO | 07 | Manual | - |
| LANG-051 | DO | 07 | IDE0055 |
csharp_new_line_between_query_expression_clauses, resharper_csharp_wrap_chained_method_calls |
| LANG-052 | DO | 07 | CA1827, CA1829, CA1851, CA1860, ReSharper: PossibleMultipleEnumeration |
resharper_possible_multiple_enumeration_highlighting |
| LANG-060 | DO | 07 | Manual | - |
| LANG-061 | AVOID | 07 | Manual | - |
| LANG-062 | DO | 07 | IDE0210 |
csharp_style_prefer_top_level_statements |
| LANG-063 | DO | 07 | Manual | - |
| LANG-064 | DO | 07 | Manual | - |
TYPE¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| TYPE-010 | DO | 08 | Manual | - |
| TYPE-011 | DO | 08 | IDE0036, ReSharper: ArrangeModifiersOrder |
csharp_preferred_modifier_order, resharper_arrange_modifiers_order_highlighting |
| TYPE-012 | DO | 08 | IDE0040, ReSharper: ArrangeTypeMemberModifiers |
dotnet_style_require_accessibility_modifiers, resharper_csharp_default_private_modifier, resharper_csharp_default_internal_modifier, resharper_arrange_type_member_modifiers_highlighting, resharper_arrange_type_modifiers_highlighting |
| TYPE-013 | DO | 08 | CA1852, ReSharper: ClassCanBeSealed.Local |
resharper_class_can_be_sealed_local_highlighting, resharper_class_can_be_sealed_global_highlighting |
| TYPE-014 | DO NOT | 08 | ReSharper: ArrangeThisQualifier |
dotnet_style_qualification_for_field, dotnet_style_qualification_for_property, dotnet_style_qualification_for_method, dotnet_style_qualification_for_event, resharper_csharp_instance_members_qualify_members, resharper_csharp_static_members_qualify_members, resharper_arrange_this_qualifier_highlighting |
| TYPE-020 | DO | 08 | Manual | - |
| TYPE-021 | AVOID | 08 | Manual | - |
| TYPE-022 | CONSIDER | 08 | CA1502 |
- |
| TYPE-023 | DO | 08 | Manual | - |
| TYPE-024 | DO NOT | 08 | CS8603 |
- |
| TYPE-025 | DO | 08 | IDE0044, ReSharper: FieldCanBeMadeReadOnly.Local |
dotnet_style_readonly_field, resharper_field_can_be_made_read_only_local_highlighting |
| TYPE-026 | DO | 08 | CA1052, CA1822, ReSharper: ConvertToStaticClass |
resharper_convert_to_static_class_highlighting |
| TYPE-030 | DO | 08 | CA1003 |
- |
| TYPE-031 | DO | 08 | CA2225 |
- |
| TYPE-032 | DO | 08 | Manual | - |
| TYPE-033 | DO NOT | 08 | CA1034 |
- |
DOC¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| DOC-010 | DO | 09 | Manual | - |
| DOC-011 | DO | 09 | Manual | - |
| DOC-012 | DO NOT | 09 | Manual | - |
| DOC-013 | DO NOT | 09 | Manual | - |
| DOC-014 | DO NOT | 09 | Manual | - |
| DOC-020 | DO | 09 | Manual | - |
| DOC-021 | DO | 09 | Manual | - |
| DOC-022 | DO | 09 | CS1572, CS1573, CS1574 |
- |
| DOC-023 | DO | 09 | CS1591 |
- |
ERR¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| ERR-010 | DO | 10 | CA2201 |
- |
| ERR-011 | DO | 10 | CA2200 |
- |
| ERR-012 | DO | 10 | CA1031, ReSharper: EmptyGeneralCatchClause |
resharper_empty_general_catch_clause_highlighting |
| ERR-013 | DO NOT | 10 | CA1065 |
- |
| ERR-014 | DO | 10 | CA1510, CA1511, CA1512, CA1513, CA2264, ReSharper: UseThrowIfNullMethod |
resharper_use_throw_if_null_method_highlighting |
| ERR-015 | DO | 10 | CA1032, CA1064 |
- |
| ERR-016 | DO | 10 | Manual | - |
| ERR-017 | DO | 10 | Manual | - |
| ERR-018 | DO NOT | 10 | Manual | - |
| ERR-020 | DO | 10 | CA2000, CA2213 |
- |
| ERR-021 | DO | 10 | CA1063, CA1816 |
- |
| ERR-022 | DO | 10 | Manual | - |
| ERR-030 | DO | 10 | Manual | - |
ASYNC¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| ASYNC-010 | DO | 11 | CA1849 |
- |
| ASYNC-011 | DO NOT | 11 | ReSharper: AsyncVoidMethod |
resharper_async_void_method_highlighting, resharper_async_void_lambda_highlighting |
| ASYNC-012 | DO | 11 | CA1068, CA2016 |
- |
| ASYNC-013 | DO | 11 | CA2007 |
dotnet_code_quality.CA2007.output_kind |
| ASYNC-014 | DO | 11 | CA2012 |
- |
| ASYNC-015 | DO | 11 | Manual | - |
| ASYNC-016 | DO | 11 | CS8425, ReSharper: UseCancellationTokenForIAsyncEnumerable |
resharper_use_cancellation_token_for_i_async_enumerable_highlighting |
| ASYNC-017 | DO | 11 | CA2250 |
- |
| ASYNC-020 | DO | 11 | CA2002, IDE0330 |
csharp_prefer_system_threading_lock |
| ASYNC-021 | DO | 11 | Manual | - |
TEST¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| TEST-010 | DO | 12 | Manual | - |
| TEST-011 | DO | 12 | Manual | resharper_csharp_naming_rule.method |
| TEST-012 | DO | 12 | Manual | - |
| TEST-013 | DO | 12 | Manual | - |
| TEST-014 | DO | 12 | Manual | - |
| TEST-020 | DO | 12 | Manual | - |
| TEST-021 | DO | 12 | Manual | - |
| TEST-022 | DO | 12 | Manual | - |
| TEST-023 | DO NOT | 12 | Manual | - |
SEC¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| SEC-012 | DO | 13 | Manual | - |
| SEC-020 | DO NOT | 13 | CA5390, CA5403 |
- |
| SEC-030 | DO | 13 | CA2100 |
- |
| SEC-031 | DO | 13 | Manual | - |
| SEC-033 | DO | 13 | SYSLIB1045 |
- |
| SEC-040 | DO | 13 | Manual | - |
| SEC-041 | DO | 13 | CA5389 |
- |
| SEC-050 | DO | 13 | CA5394 |
- |
| SEC-051 | DO NOT | 13 | CA5350, CA5351 |
- |
| SEC-053 | DO | 13 | CA5373, CA5379, CA5387, CA5388 |
- |
| SEC-060 | DO NOT | 13 | CA2300, CA2301, CA2302, CA2305, CA2310, CA2311, CA2312, CA2315 |
- |
| SEC-061 | DO | 13 | CA2326, CA2327, CA2328, CA2329, CA2330 |
- |
| SEC-062 | DO | 13 | CA3075, CA3076, CA3077, CA5366, CA5369, CA5370, CA5371, CA5372, CA5374 |
- |
| SEC-072 | DO NOT | 13 | Manual | - |
| SEC-073 | DO | 13 | CA2017, CA2253, CA2254 |
- |
| SEC-074 | DO NOT | 13 | Manual | - |
DATA¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| DATA-001 | DO | 14 | Manual | - |
| DATA-002 | DO | 14 | IDE1006 |
dotnet_naming_rule.nam_110_types.*, resharper_csharp_naming_rule.types_and_namespaces |
| DATA-003 | DO | 14 | Manual | - |
| DATA-004 | DO | 14 | CA1707 |
- |
| DATA-006 | DO | 14 | Manual | generated_code |
| DATA-007 | DO | 14 | CA1849, CA2016 |
- |
| DATA-010 | DO | 14 | EF1002, EF1003 |
- |
| DATA-012 | DO | 14 | Manual | - |
| DATA-020 | DO | 14 | Manual | - |
| DATA-021 | DO NOT | 14 | Manual | - |
| DATA-022 | DO NOT | 14 | Manual | - |
| DATA-023 | DO | 14 | Manual | - |
| DATA-024 | CONSIDER | 14 | Manual | - |
TOOL¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| TOOL-010 | DO | 15 | Manual | - |
| TOOL-011 | DO | 15 | Manual | - |
| TOOL-012 | DO | 15 | Manual | dotnet_diagnostic.IDE1006.severity |
| TOOL-013 | DO | 15 | Manual | - |
| TOOL-014 | DO | 15 | Manual | - |
| TOOL-015 | DO | 15 | Manual | - |
| TOOL-016 | DO | 15 | Manual | dotnet_diagnostic.SA*.severity |
| TOOL-017 | DO | 15 | Manual | - |
| TOOL-018 | DO | 15 | Manual | - |
| TOOL-019 | DO | 15 | Manual | dotnet_diagnostic.<ID>.severity |
| TOOL-020 | DO | 15 | Manual | - |
| TOOL-021 | DO | 15 | Manual | - |
| TOOL-022 | DO | 15 | Manual | - |
DI¶
| Rule | Level | Page | Enforced | Config keys |
|---|---|---|---|---|
| DI-010 | DO | 16 | Manual | - |
| DI-011 | DO | 16 | Manual | - |
| DI-012 | DO NOT | 16 | Manual | - |
| DI-013 | CONSIDER | 16 | Manual | - |
| DI-020 | DO | 16 | Manual | - |
Previous: Dependency Injection and Layering · Home · Next: Sources