# Rules in this file were initially inferred by Visual Studio IntelliCode from the B:\dev\uwp\Strix-Music\src\Sdk\StrixMusic.Sdk\ codebase based on best match to current usage at 2/13/2022 # You can modify the rules from these initially generated values to suit your own policies # You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference [*.cs] #Core editorconfig formatting - indentation #use soft tabs (spaces) for indentation indent_style = space #Formatting - new line options #place catch statements on a new line csharp_new_line_before_catch = true #place else statements on a new line csharp_new_line_before_else = true #Formatting - organize using options #sort System.* using directives alphabetically, and place them before other usings dotnet_sort_system_directives_first = true #Formatting - spacing options #require NO space between a cast and the value csharp_space_after_cast = false #require a space before the colon for bases or interfaces in a type declaration csharp_space_after_colon_in_inheritance_clause = true #require a space after a keyword in a control flow statement such as a for loop csharp_space_after_keywords_in_control_flow_statements = true #require a space before the colon for bases or interfaces in a type declaration csharp_space_before_colon_in_inheritance_clause = true #remove space within empty argument list parentheses csharp_space_between_method_call_empty_parameter_list_parentheses = false #remove space between method call name and opening parenthesis csharp_space_between_method_call_name_and_opening_parenthesis = false #do not place space characters after the opening parenthesis and before the closing parenthesis of a method call csharp_space_between_method_call_parameter_list_parentheses = false #remove space within empty parameter list parentheses for a method declaration csharp_space_between_method_declaration_empty_parameter_list_parentheses = false #place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list. csharp_space_between_method_declaration_parameter_list_parentheses = false #Formatting - wrapping options #leave code block on single line csharp_preserve_single_line_blocks = true #Style - Code block preferences #prefer no curly braces if allowed csharp_prefer_braces = false:suggestion #Style - expression bodied member options #prefer expression-bodied members for accessors csharp_style_expression_bodied_accessors = true:suggestion #prefer expression-bodied members for methods csharp_style_expression_bodied_methods = true:suggestion #prefer expression-bodied members for properties csharp_style_expression_bodied_properties = true:suggestion #Style - expression level options #prefer out variables to be declared inline in the argument list of a method call when possible csharp_style_inlined_variable_declaration = true:suggestion #prefer the language keyword for member access expressions, instead of the type name, for types that have a keyword to represent them dotnet_style_predefined_type_for_member_access = true:suggestion #Style - Expression-level preferences #prefer default over default(T) csharp_prefer_simple_default_expression = true:suggestion #prefer objects to be initialized using object initializers when possible dotnet_style_object_initializer = true:suggestion #Style - implicit and explicit types #prefer var over explicit type in all cases, unless overridden by another code style rule csharp_style_var_elsewhere = true:suggestion #prefer var is used to declare variables with built-in system types such as int csharp_style_var_for_built_in_types = true:suggestion #prefer var when the type is already mentioned on the right-hand side of a declaration expression csharp_style_var_when_type_is_apparent = true:suggestion #Style - language keyword and framework type options #prefer the language keyword for local variables, method parameters, and class members, instead of the type name, for types that have a keyword to represent them dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion #Style - Miscellaneous preferences #prefer local functions over anonymous functions csharp_style_pattern_local_over_anonymous_function = true:suggestion #Style - modifier options #prefer accessibility modifiers to be declared except for public interface members. This will currently not differ from always and will act as future proofing for if C# adds default interface methods. dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion #Style - Modifier preferences #when this rule is set to a list of modifiers, prefer the specified ordering. csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion #Style - Pattern matching #prefer pattern matching instead of is expression with type casts csharp_style_pattern_matching_over_as_with_null_check = true:suggestion #Style - qualification options #prefer events not to be prefaced with this. or Me. in Visual Basic dotnet_style_qualification_for_event = false:suggestion #prefer fields not to be prefaced with this. or Me. in Visual Basic dotnet_style_qualification_for_field = false:suggestion #prefer methods not to be prefaced with this. or Me. in Visual Basic dotnet_style_qualification_for_method = false:suggestion #prefer properties not to be prefaced with this. or Me. in Visual Basic dotnet_style_qualification_for_property = false:suggestion dotnet_diagnostic.ide0073.severity = error insert_final_newline = true ; # Default severity for analyzer diagnostics with category 'StyleCop.CSharp.DocumentationRules' dotnet_analyzer_diagnostic.category-stylecop.csharp.documentationrules.severity = none # SA1124: Do not use regions dotnet_diagnostic.sa1124.severity = error # SA1101: Prefix local calls with this dotnet_diagnostic.sa1101.severity = none # SA1503: Braces should not be omitted dotnet_diagnostic.sa1503.severity = none # SA1200: Using directives should be placed correctly dotnet_diagnostic.sa1200.severity = none # SA1309: Field names should not begin with underscore dotnet_diagnostic.sa1309.severity = none # SA1306: Field names should begin with lower-case letter dotnet_diagnostic.sa1306.severity = none # SA1202: Elements should be ordered by access dotnet_diagnostic.sa1202.severity = none # SX1309: Field names should begin with underscore dotnet_diagnostic.sx1309.severity = warning # SA1617: Void return value should not be documented dotnet_diagnostic.sa1617.severity = warning # SA1609: Property documentation should have value dotnet_diagnostic.sa1609.severity = none # SA1122: Use string.Empty for empty strings dotnet_diagnostic.sa1122.severity = warning # SA1622: Generic type parameter documentation should have text dotnet_diagnostic.sa1622.severity = warning # SA1626: Single-line comments should not use documentation style slashes dotnet_diagnostic.sa1626.severity = warning # SA1615: Element return value should be documented dotnet_diagnostic.sa1615.severity = warning # SA1616: Element return value documentation should have text dotnet_diagnostic.sa1616.severity = warning # SA1610: Property documentation should have value text dotnet_diagnostic.sa1610.severity = warning # SA1604: Element documentation should have summary dotnet_diagnostic.sa1604.severity = warning # SA1201: Elements should appear in the correct order dotnet_diagnostic.sa1201.severity = none # SA1310: Field names should not contain underscore dotnet_diagnostic.sa1310.severity = none # SA1600: Elements should be documented dotnet_diagnostic.sa1600.severity = error # SA0001: XML comment analysis disabled dotnet_diagnostic.sa0001.severity = none # SA1402: File may only contain a single type dotnet_diagnostic.sa1402.severity = none # Default severity for analyzer diagnostics with category 'Usage' dotnet_analyzer_diagnostic.category-usage.severity = none # CA2007: Consider calling ConfigureAwait on the awaited task dotnet_diagnostic.ca2007.severity = none # Default severity for analyzer diagnostics with category 'StyleCop.CSharp.SpacingRules' dotnet_analyzer_diagnostic.category-stylecop.csharp.spacingrules.severity = none # SA1208: System using directives should be placed before other using directives dotnet_diagnostic.sa1208.severity = warning ; # CA1062: Validate arguments of public methods dotnet_diagnostic.ca1062.severity = suggestion # SA1118: Parameter should not span multiple lines dotnet_diagnostic.sa1118.severity = none # Default severity for analyzer diagnostics with category 'StyleCop.CSharp.ReadabilityRules' dotnet_analyzer_diagnostic.category-stylecop.csharp.readabilityrules.severity = none # CA2000: Dispose objects before losing scope dotnet_diagnostic.ca2000.severity = none # CA1063: Implement IDisposable Correctly dotnet_diagnostic.ca1063.severity = none # SA1520: Use braces consistently dotnet_diagnostic.sa1520.severity = none # CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. dotnet_diagnostic.cs8632.severity = suggestion # CS0067: The event is never used dotnet_diagnostic.cs0067.severity = suggestion # Not implmented in Uno dotnet_diagnostic.uno0001.severity = suggestion # Classes with disposable members should implement IDisposable dotnet_diagnostic.ca1001.severity = suggestion # Prefix local calls with this dotnet_diagnostic.sa1101.severity = none # SA1633: File should have header dotnet_diagnostic.sa1633.severity = none # SA1649: File name should match first type name dotnet_diagnostic.sa1649.severity = silent [*] # Microsoft .NET properties csharp_new_line_before_members_in_object_initializers = false csharp_new_line_before_open_brace = all csharp_preferred_modifier_order = public, private, internal, readonly, async, static, sealed, override:suggestion csharp_prefer_braces = false:suggestion csharp_preserve_single_line_blocks = true csharp_style_expression_bodied_accessors = true:suggestion csharp_style_expression_bodied_methods = true:suggestion csharp_style_expression_bodied_properties = true:suggestion csharp_style_var_elsewhere = true:suggestion csharp_style_var_for_built_in_types = true:suggestion csharp_style_var_when_type_is_apparent = true:suggestion dotnet_diagnostic.cs0067.severity = suggestion dotnet_diagnostic.cs8632.severity = suggestion dotnet_naming_rule.private_constants_rule.import_to_resharper = as_predefined dotnet_naming_rule.private_constants_rule.severity = warning dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols dotnet_naming_rule.private_static_readonly_rule.import_to_resharper = as_predefined dotnet_naming_rule.private_static_readonly_rule.severity = warning dotnet_naming_rule.private_static_readonly_rule.style = lower_camel_case_style dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols dotnet_naming_style.lower_camel_case_style.capitalization = camel_case dotnet_naming_style.lower_camel_case_style.required_prefix = _ dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field dotnet_naming_symbols.private_constants_symbols.required_modifiers = const dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static,readonly dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion dotnet_style_predefined_type_for_member_access = true:suggestion dotnet_style_qualification_for_event = false:suggestion dotnet_style_qualification_for_field = false:suggestion dotnet_style_qualification_for_method = false:suggestion dotnet_style_qualification_for_property = false:suggestion dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion # ReSharper properties resharper_blank_lines_after_control_transfer_statements = 1 resharper_csharp_blank_lines_around_field = 0 resharper_csharp_case_block_braces = next_line_shifted_2 resharper_csharp_insert_final_newline = true resharper_csharp_keep_blank_lines_in_declarations = 100 resharper_csharp_max_line_length = 395 resharper_keep_existing_embedded_block_arrangement = false resharper_keep_existing_enum_arrangement = false resharper_place_accessorholder_attribute_on_same_line = false resharper_place_expr_accessor_on_single_line = true resharper_place_expr_method_on_single_line = true resharper_place_expr_property_on_single_line = true resharper_place_simple_anonymousmethod_on_single_line = false resharper_place_simple_embedded_statement_on_same_line = false resharper_place_simple_initializer_on_single_line = false resharper_remove_blank_lines_near_braces_in_code = false resharper_remove_blank_lines_near_braces_in_declarations = false resharper_show_autodetect_configure_formatting_tip = false resharper_use_indent_from_vs = false resharper_wrap_array_initializer_style = chop_if_long resharper_wrap_chained_binary_expressions = chop_if_long resharper_wrap_object_and_collection_initializer_style = chop_always # Standard properties insert_final_newline = true # ReSharper inspection severities resharper_arrange_redundant_parentheses_highlighting = hint resharper_web_config_module_not_resolved_highlighting = warning resharper_web_config_type_not_resolved_highlighting = warning resharper_web_config_wrong_module_highlighting = warning [*.{appxmanifest,asax,ascx,aspx,axaml,build,c,c++,cc,cginc,compute,cp,cpp,cs,cshtml,cu,cuh,cxx,dtd,fx,fxh,h,hh,hlsl,hlsli,hlslinc,hpp,hxx,inc,inl,ino,ipp,master,mpp,mq4,mq5,mqh,nuspec,paml,razor,resw,resx,skin,tpp,usf,ush,vb,xaml,xamlx,xoml,xsd}] indent_style = space indent_size = 4 tab_width = 4