diff --git a/.editorconfig b/.editorconfig index 8f31f8c519..64c41fe73f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,6 +3,7 @@ indent_style = space indent_size = 4 tab_width = 4 +max_line_length = 200 [*.{asax,ascx,aspx,axaml,cs,cshtml,css,htm,html,master,paml,razor,skin,vb,xaml,xamlx,xoml}] indent_style = space @@ -45,10 +46,10 @@ csharp_space_between_parentheses = false csharp_space_between_square_brackets = false csharp_style_namespace_declarations = file_scoped:suggestion csharp_style_prefer_utf8_string_literals = true:warning -csharp_style_var_elsewhere = true:error -csharp_style_var_for_built_in_types = true:error -csharp_style_var_when_type_is_apparent = true:error -csharp_using_directive_placement = outside_namespace:silent +csharp_style_var_elsewhere = true:warning +csharp_style_var_for_built_in_types = true:warning +csharp_style_var_when_type_is_apparent = true:warning +csharp_using_directive_placement = outside_namespace:warning dotnet_naming_rule.constants_rule.import_to_resharper = as_predefined dotnet_naming_rule.constants_rule.severity = warning dotnet_naming_rule.constants_rule.style = all_upper_style @@ -87,7 +88,7 @@ dotnet_naming_rule.locals_rule.style = lower_camel_case_style_1 dotnet_naming_rule.locals_rule.symbols = locals_symbols dotnet_naming_rule.local_constants_rule.import_to_resharper = as_predefined dotnet_naming_rule.local_constants_rule.severity = warning -dotnet_naming_rule.local_constants_rule.style = all_upper_style +dotnet_naming_rule.local_constants_rule.style = all_upper_stylelower_camel_case_style_1 dotnet_naming_rule.local_constants_rule.symbols = local_constants_symbols dotnet_naming_rule.local_functions_rule.import_to_resharper = as_predefined dotnet_naming_rule.local_functions_rule.severity = warning @@ -127,7 +128,7 @@ dotnet_naming_rule.public_fields_rule.style = upper_camel_case_style dotnet_naming_rule.public_fields_rule.symbols = public_fields_symbols dotnet_naming_rule.static_readonly_rule.import_to_resharper = as_predefined dotnet_naming_rule.static_readonly_rule.severity = warning -dotnet_naming_rule.static_readonly_rule.style = upper_camel_case_style +dotnet_naming_rule.static_readonly_rule.style = all_upper_style dotnet_naming_rule.static_readonly_rule.symbols = static_readonly_symbols dotnet_naming_rule.types_and_namespaces_rule.import_to_resharper = as_predefined dotnet_naming_rule.types_and_namespaces_rule.resharper_style = AaBb, I + AaBb @@ -415,8 +416,8 @@ dotnet_diagnostic.wme006.severity = warning # Standard properties end_of_line = lf dotnet_style_coalesce_expression = true:warning -dotnet_style_null_propagation = true:suggestion -dotnet_style_prefer_is_null_check_over_reference_equality_method = false:suggestion +dotnet_style_null_propagation = true:warning +dotnet_style_prefer_is_null_check_over_reference_equality_method = false:warning dotnet_style_prefer_auto_properties = true:warning dotnet_style_object_initializer = true:warning dotnet_style_collection_initializer = true:warning @@ -424,8 +425,8 @@ dotnet_style_prefer_simplified_boolean_expressions = true:warning dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion dotnet_style_prefer_conditional_expression_over_return = true:suggestion dotnet_style_explicit_tuple_names = true:suggestion -dotnet_style_prefer_inferred_tuple_names = true:suggestion -dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_inferred_tuple_names = true:warning +dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning dotnet_style_prefer_compound_assignment = true:suggestion dotnet_style_prefer_simplified_interpolation = true:suggestion dotnet_style_namespace_match_folder = true:warning @@ -443,16 +444,16 @@ csharp_style_expression_bodied_lambdas = when_on_single_line:silent csharp_style_expression_bodied_local_functions = false:silent dotnet_style_operator_placement_when_wrapping = beginning_of_line csharp_indent_labels = one_less_than_current -csharp_prefer_simple_default_expression = true:suggestion -csharp_style_prefer_null_check_over_type_check = true:suggestion +csharp_prefer_simple_default_expression = true:warning +csharp_style_prefer_null_check_over_type_check = true:warning csharp_style_throw_expression = true:warning dotnet_style_readonly_field = true:warning dotnet_style_allow_statement_immediately_after_block_experimental = true:silent dotnet_style_allow_multiple_blank_lines_experimental = true:silent dotnet_code_quality_unused_parameters = all:suggestion -csharp_style_prefer_local_over_anonymous_function = true:suggestion +csharp_style_prefer_local_over_anonymous_function = false:silent csharp_style_implicit_object_creation_when_type_is_apparent = true:warning -csharp_style_prefer_range_operator = true:suggestion +csharp_style_prefer_range_operator = true:warning csharp_style_prefer_index_operator = true:warning csharp_style_deconstructed_variable_declaration = true:warning csharp_style_inlined_variable_declaration = true:warning @@ -460,7 +461,7 @@ csharp_style_prefer_tuple_swap = true:suggestion csharp_style_unused_value_expression_statement_preference = discard_variable:silent csharp_style_unused_value_assignment_preference = discard_variable:warning csharp_style_prefer_readonly_struct = true:suggestion -csharp_prefer_static_local_function = true:suggestion +csharp_prefer_static_local_function = true:warning csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent csharp_style_conditional_delegate_call = true:suggestion @@ -472,6 +473,53 @@ csharp_style_prefer_not_pattern = true:suggestion csharp_style_pattern_matching_over_as_with_null_check = true:suggestion csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion csharp_style_prefer_extended_property_pattern = true:suggestion +insert_final_newline = false +csharp_style_prefer_readonly_struct_member = true:suggestion +csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent +csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent +dotnet_diagnostic.CA2016.severity = warning +dotnet_diagnostic.CA2011.severity = warning +dotnet_diagnostic.CA2012.severity = warning + +# ReSharper properties +resharper_braces_for_for = not_required +resharper_braces_for_foreach = not_required +resharper_braces_for_ifelse = not_required_for_both +resharper_braces_for_while = not_required +resharper_braces_redundant = true +resharper_csharp_insert_final_newline = true +resharper_csharp_max_line_length = 200 +resharper_csharp_naming_rule.constants = AA_BB +resharper_csharp_naming_rule.local_constants = aaBb +resharper_csharp_naming_rule.private_constants = AA_BB +resharper_csharp_naming_rule.private_static_fields = _ + aaBb +resharper_csharp_naming_rule.private_static_readonly = AaBb +resharper_csharp_naming_rule.public_fields = AaBb +resharper_csharp_naming_rule.static_readonly = AA_BB +resharper_html_insert_final_newline = false +resharper_keep_existing_declaration_block_arrangement = false +resharper_keep_existing_embedded_block_arrangement = false +resharper_keep_existing_enum_arrangement = false +resharper_resx_insert_final_newline = false +resharper_use_heuristics_for_body_style = true +resharper_vb_insert_final_newline = false +resharper_xmldoc_insert_final_newline = false +resharper_xml_insert_final_newline = false + +# ReSharper inspection severities +resharper_arrange_accessor_owner_body_highlighting = suggestion +resharper_arrange_namespace_body_highlighting = hint +resharper_arrange_redundant_parentheses_highlighting = hint +resharper_arrange_this_qualifier_highlighting = hint +resharper_arrange_type_member_modifiers_highlighting = hint +resharper_arrange_type_modifiers_highlighting = hint +resharper_built_in_type_reference_style_for_member_access_highlighting = hint +resharper_built_in_type_reference_style_highlighting = hint +resharper_convert_to_constant_local_highlighting = error +resharper_redundant_base_qualifier_highlighting = warning +resharper_suggest_var_or_type_built_in_types_highlighting = hint +resharper_suggest_var_or_type_elsewhere_highlighting = hint +resharper_suggest_var_or_type_simple_types_highlighting = hint [*.ts] quote_type = single diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000000..7fbd235f03 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,4 @@ +[core] + ignorecase = false + autocrlf = false + eol = lf \ No newline at end of file diff --git a/Backbone.sln.DotSettings b/Backbone.sln.DotSettings new file mode 100644 index 0000000000..4fa8c6a0f0 --- /dev/null +++ b/Backbone.sln.DotSettings @@ -0,0 +1,28 @@ + + True + ERROR + True + NEVER + False + 200 + True + True + True + False + False + True + True + True + True + False + True + DTO + True + True + True \ No newline at end of file