|
| 1 | +[*.cs] |
| 2 | + |
| 3 | +# IDE0010: Add missing cases |
| 4 | +dotnet_diagnostic.ide0010.severity=none |
| 5 | + |
| 6 | +# IDE0022: Use block body for methods |
| 7 | +csharp_style_expression_bodied_methods=true:silent |
| 8 | + |
| 9 | +# IDE0066: Convert switch statement to expression |
| 10 | +csharp_style_prefer_switch_expression=true:silent |
| 11 | + |
| 12 | +# CA1027: Mark enums with FlagsAttribute |
| 13 | +# **Note: Enums should not get this attribute unless they are intended to be combined |
| 14 | +dotnet_diagnostic.CA1027.severity = none |
| 15 | + |
| 16 | +# CA1028: Enum Storage should be Int32 |
| 17 | +# **Note: It should be the numeric type that usage dictates |
| 18 | +dotnet_diagnostic.ca1028.severity=none |
| 19 | + |
| 20 | +# CA1034: Nested types should not be visible |
| 21 | +# **Note: That shouldn't happen often, but there are also few legitimate exceptions |
| 22 | +dotnet_diagnostic.ca1034.severity=none |
| 23 | + |
| 24 | +# CA1054: Uri parameters should not be strings |
| 25 | +# **Note: Optional features that allows the user to skip manually converting to Uri |
| 26 | +dotnet_diagnostic.ca1054.severity=none |
| 27 | + |
| 28 | +# CA2234: Pass system uri objects instead of strings |
| 29 | +# **Note: Manually converting to Uri isn't necessary |
| 30 | +dotnet_diagnostic.CA2234.severity = none |
| 31 | + |
| 32 | +# CA5350: Do Not Use Weak Cryptographic Algorithms |
| 33 | +# **Note: Not intended for security relevant use |
| 34 | +dotnet_diagnostic.ca5350.severity=none |
| 35 | + |
| 36 | +# CA5351: Do Not Use Broken Cryptographic Algorithms |
| 37 | +# **Note: Not intended for security relevant use |
| 38 | +dotnet_diagnostic.ca5351.severity=none |
| 39 | + |
| 40 | +# CA5379: Do Not Use Weak Key Derivation Function Algorithm |
| 41 | +# **Note: Not intended for security relevant use |
| 42 | +dotnet_diagnostic.ca5379.severity=none |
| 43 | + |
| 44 | + |
| 45 | +[*.{asax,ascx,aspx,cs,cshtml,css,htm,html,js,jsx,master,razor,skin,ts,tsx,vb,xaml,xamlx,xoml}] |
| 46 | +indent_style=space |
| 47 | +indent_size=4 |
| 48 | +tab_width=4 |
| 49 | + |
| 50 | + |
| 51 | +[*.{appxmanifest,build,config,csproj,dbml,discomap,dtd,json,jsproj,lsproj,njsproj,nuspec,proj,props,resjson,resw,resx,StyleCop,targets,tasks,vbproj,xml,xsd}] |
| 52 | +indent_style=space |
| 53 | +indent_size=2 |
| 54 | +tab_width=2 |
| 55 | + |
| 56 | + |
| 57 | +[*] |
| 58 | + |
| 59 | +# Microsoft .NET properties |
| 60 | +csharp_new_line_before_members_in_object_initializers=false |
| 61 | +csharp_preferred_modifier_order=public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion |
| 62 | +csharp_prefer_braces=false:none |
| 63 | +csharp_space_after_cast=false |
| 64 | +csharp_style_var_elsewhere=true:hint |
| 65 | +csharp_style_var_for_built_in_types=true:hint |
| 66 | +csharp_style_var_when_type_is_apparent=true:hint |
| 67 | +dotnet_style_predefined_type_for_locals_parameters_members=true:hint |
| 68 | +dotnet_style_predefined_type_for_member_access=true:hint |
| 69 | +dotnet_style_qualification_for_event=false:warning |
| 70 | +dotnet_style_qualification_for_field=false:warning |
| 71 | +dotnet_style_qualification_for_method=false:warning |
| 72 | +dotnet_style_qualification_for_property=false:warning |
| 73 | +dotnet_style_require_accessibility_modifiers=for_non_interface_members:hint |
| 74 | + |
| 75 | +# ReSharper properties |
| 76 | +resharper_add_imports_to_deepest_scope=true |
| 77 | +resharper_align_linq_query=true |
| 78 | +resharper_align_multiline_argument=true |
| 79 | +resharper_align_multiline_calls_chain=true |
| 80 | +resharper_align_multiline_extends_list=true |
| 81 | +resharper_align_multiline_for_stmt=true |
| 82 | +resharper_align_multline_type_parameter_constrains=true |
| 83 | +resharper_align_multline_type_parameter_list=true |
| 84 | +resharper_blank_lines_after_block_statements=0 |
| 85 | +resharper_blank_lines_around_single_line_auto_property=1 |
| 86 | +resharper_blank_lines_around_single_line_property=1 |
| 87 | +resharper_blank_lines_before_single_line_comment=1 |
| 88 | +resharper_constructor_or_destructor_body=expression_body |
| 89 | +resharper_csharp_align_first_arg_by_paren=true |
| 90 | +resharper_csharp_align_multiline_parameter=true |
| 91 | +resharper_csharp_align_multiple_declaration=true |
| 92 | +resharper_csharp_empty_block_style=together_same_line |
| 93 | +resharper_csharp_insert_final_newline=true |
| 94 | +resharper_csharp_keep_blank_lines_in_code=1 |
| 95 | +resharper_csharp_keep_blank_lines_in_declarations=0 |
| 96 | +resharper_csharp_new_line_before_while=true |
| 97 | +resharper_csharp_stick_comment=false |
| 98 | +resharper_csharp_use_indent_from_vs=false |
| 99 | +resharper_csharp_wrap_lines=false |
| 100 | +resharper_indent_nested_fixed_stmt=true |
| 101 | +resharper_indent_nested_foreach_stmt=true |
| 102 | +resharper_indent_nested_for_stmt=true |
| 103 | +resharper_indent_nested_lock_stmt=true |
| 104 | +resharper_indent_nested_usings_stmt=true |
| 105 | +resharper_indent_nested_while_stmt=true |
| 106 | +resharper_local_function_body=expression_body |
| 107 | +resharper_method_or_operator_body=expression_body |
| 108 | +resharper_place_accessor_attribute_on_same_line=False |
| 109 | +resharper_place_field_attribute_on_same_line=False |
| 110 | +resharper_place_simple_embedded_statement_on_same_line=False |
| 111 | +resharper_space_after_cast=false |
| 112 | +resharper_space_between_attribute_sections=false |
| 113 | +resharper_space_within_single_line_array_initializer_braces=true |
| 114 | +resharper_xmldoc_attribute_indent=align_by_first_attribute |
| 115 | +resharper_xmldoc_attribute_style=on_single_line |
| 116 | +resharper_xmldoc_keep_user_linebreaks=false |
| 117 | +resharper_xmldoc_linebreaks_inside_tags_for_elements_longer_than=0 |
| 118 | +resharper_xmldoc_max_line_length=80 |
| 119 | +resharper_xmldoc_pi_attribute_style=on_single_line |
| 120 | +resharper_xmldoc_space_before_self_closing=false |
| 121 | +resharper_xmldoc_wrap_tags_and_pi=false |
| 122 | + |
| 123 | +# ReSharper inspection severities |
| 124 | +resharper_arrange_attributes_highlighting=suggestion |
| 125 | +resharper_arrange_constructor_or_destructor_body_highlighting=suggestion |
| 126 | +resharper_arrange_local_function_body_highlighting=suggestion |
| 127 | +resharper_arrange_method_or_operator_body_highlighting=suggestion |
| 128 | +resharper_arrange_redundant_parentheses_highlighting=suggestion |
| 129 | +resharper_check_namespace_highlighting=none |
| 130 | +resharper_convert_to_compound_assignment_highlighting=suggestion |
| 131 | +resharper_empty_constructor_highlighting=suggestion |
| 132 | +resharper_empty_general_catch_clause_highlighting=suggestion |
| 133 | +resharper_for_can_be_converted_to_foreach_highlighting=hint |
| 134 | +resharper_identifier_typo_highlighting=none |
| 135 | +resharper_loop_can_be_partly_converted_to_query_highlighting=hint |
| 136 | +resharper_string_compare_is_culture_specific_1_highlighting=suggestion |
| 137 | +resharper_string_compare_is_culture_specific_2_highlighting=suggestion |
| 138 | +resharper_string_compare_is_culture_specific_3_highlighting=suggestion |
| 139 | +resharper_string_compare_is_culture_specific_4_highlighting=suggestion |
| 140 | +resharper_string_compare_is_culture_specific_5_highlighting=suggestion |
| 141 | +resharper_string_compare_is_culture_specific_6_highlighting=suggestion |
| 142 | +resharper_string_compare_to_is_culture_specific_highlighting=suggestion |
| 143 | +resharper_string_index_of_is_culture_specific_1_highlighting=suggestion |
| 144 | +resharper_string_index_of_is_culture_specific_2_highlighting=suggestion |
| 145 | +resharper_string_index_of_is_culture_specific_3_highlighting=suggestion |
| 146 | +resharper_string_last_index_of_is_culture_specific_1_highlighting=suggestion |
| 147 | +resharper_string_last_index_of_is_culture_specific_2_highlighting=suggestion |
| 148 | +resharper_string_last_index_of_is_culture_specific_3_highlighting=suggestion |
| 149 | +resharper_string_literal_typo_highlighting=none |
| 150 | +resharper_suspicious_type_conversion_global_highlighting=suggestion |
| 151 | +resharper_switch_statement_missing_some_cases_highlighting=none |
| 152 | +resharper_unused_member_global_highlighting=none |
| 153 | +resharper_unused_method_return_value_global_highlighting=none |
| 154 | +resharper_use_null_propagation_highlighting=warning |
| 155 | +resharper_use_null_propagation_when_possible_highlighting=suggestion |
| 156 | +resharper_vb_string_compare_is_culture_specific_1_highlighting=suggestion |
| 157 | +resharper_vb_string_compare_is_culture_specific_2_highlighting=suggestion |
| 158 | +resharper_vb_string_compare_is_culture_specific_3_highlighting=suggestion |
| 159 | +resharper_vb_string_compare_is_culture_specific_4_highlighting=suggestion |
| 160 | +resharper_vb_string_compare_is_culture_specific_5_highlighting=suggestion |
| 161 | +resharper_vb_string_compare_is_culture_specific_6_highlighting=suggestion |
| 162 | +resharper_vb_string_compare_to_is_culture_specific_highlighting=suggestion |
| 163 | +resharper_vb_string_index_of_is_culture_specific_1_highlighting=suggestion |
| 164 | +resharper_vb_string_index_of_is_culture_specific_2_highlighting=suggestion |
| 165 | +resharper_vb_string_index_of_is_culture_specific_3_highlighting=suggestion |
| 166 | +resharper_vb_string_last_index_of_is_culture_specific_1_highlighting=suggestion |
| 167 | +resharper_vb_string_last_index_of_is_culture_specific_2_highlighting=suggestion |
| 168 | +resharper_vb_string_last_index_of_is_culture_specific_3_highlighting=suggestion |
| 169 | + |
0 commit comments