mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
279 lines
12 KiB
INI
279 lines
12 KiB
INI
root = true
|
|
# editorconfig.org
|
|
|
|
# top-most EditorConfig file
|
|
|
|
# Default settings:
|
|
# A newline ending every file
|
|
# Use 4 spaces as indentation
|
|
[*]
|
|
insert_final_newline = true
|
|
indent_style = space
|
|
indent_size = 4
|
|
charset = utf-8
|
|
space_before_self_closing = true
|
|
ij_html_space_inside_empty_tag = true
|
|
max_line_length = 160
|
|
end_of_line = crlf
|
|
trim_trailing_whitespace = true
|
|
|
|
# Microsoft .NET properties
|
|
csharp_new_line_before_members_in_object_initializers = false
|
|
csharp_preferred_modifier_order = public, private, protected, internal, file, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async, required:suggestion
|
|
csharp_style_prefer_utf8_string_literals = 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_naming_rule.unity_serialized_field_rule.import_to_resharper = True
|
|
dotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized field
|
|
dotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef
|
|
dotnet_naming_rule.unity_serialized_field_rule.severity = none
|
|
dotnet_naming_rule.unity_serialized_field_rule.style = lower_camel_case_style
|
|
dotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbols
|
|
dotnet_naming_rule.unity_serialized_field_rule_1.import_to_resharper = True
|
|
dotnet_naming_rule.unity_serialized_field_rule_1.resharper_description = Unity serialized field
|
|
dotnet_naming_rule.unity_serialized_field_rule_1.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef
|
|
dotnet_naming_rule.unity_serialized_field_rule_1.severity = none
|
|
dotnet_naming_rule.unity_serialized_field_rule_1.style = lower_camel_case_style
|
|
dotnet_naming_rule.unity_serialized_field_rule_1.symbols = unity_serialized_field_symbols_1
|
|
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
|
|
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = *
|
|
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds =
|
|
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_field
|
|
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instance
|
|
dotnet_naming_symbols.unity_serialized_field_symbols_1.applicable_accessibilities = *
|
|
dotnet_naming_symbols.unity_serialized_field_symbols_1.applicable_kinds =
|
|
dotnet_naming_symbols.unity_serialized_field_symbols_1.resharper_applicable_kinds = unity_serialised_field
|
|
dotnet_naming_symbols.unity_serialized_field_symbols_1.resharper_required_modifiers = instance
|
|
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_apply_auto_detected_rules = false
|
|
resharper_entity_framework_model_validation_unlimited_string_length_highlighting = none
|
|
resharper_autodetect_indent_settings = true
|
|
resharper_cpp_insert_final_newline = true
|
|
resharper_csharp_insert_final_newline = true
|
|
resharper_formatter_off_tag = @formatter:off
|
|
resharper_formatter_on_tag = @formatter:on
|
|
resharper_formatter_tags_enabled = true
|
|
resharper_fsharp_insert_final_newline = false
|
|
resharper_html_insert_final_newline = false
|
|
resharper_resx_insert_final_newline = false
|
|
resharper_shaderlab_insert_final_newline = false
|
|
resharper_t4_insert_final_newline = false
|
|
resharper_use_indent_from_vs = false
|
|
resharper_vb_insert_final_newline = false
|
|
resharper_xmldoc_insert_final_newline = false
|
|
resharper_xml_insert_final_newline = false
|
|
|
|
# ReSharper inspection severities
|
|
resharper_access_to_disposed_closure_highlighting = none
|
|
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_type_check_pattern_to_null_check_highlighting = none
|
|
resharper_empty_general_catch_clause_highlighting = none
|
|
resharper_inconsistent_naming_highlighting = none
|
|
resharper_mvc_action_not_resolved_highlighting = warning
|
|
resharper_mvc_area_not_resolved_highlighting = warning
|
|
resharper_mvc_controller_not_resolved_highlighting = warning
|
|
resharper_mvc_masterpage_not_resolved_highlighting = warning
|
|
resharper_mvc_partial_view_not_resolved_highlighting = warning
|
|
resharper_mvc_template_not_resolved_highlighting = warning
|
|
resharper_mvc_view_component_not_resolved_highlighting = warning
|
|
resharper_mvc_view_component_view_not_resolved_highlighting = warning
|
|
resharper_mvc_view_not_resolved_highlighting = warning
|
|
resharper_razor_assembly_not_resolved_highlighting = warning
|
|
resharper_redundant_base_qualifier_highlighting = warning
|
|
resharper_redundant_explicit_tuple_component_name_highlighting = none
|
|
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
|
|
resharper_use_collection_expression_highlighting = none
|
|
resharper_use_object_or_collection_initializer_highlighting = none
|
|
resharper_web_config_module_not_resolved_highlighting = warning
|
|
resharper_web_config_type_not_resolved_highlighting = warning
|
|
resharper_web_config_wrong_module_highlighting = warning
|
|
|
|
[*.json]
|
|
indent_size = 2
|
|
|
|
[swagger*.json]
|
|
indent_size = 4
|
|
|
|
# C# files
|
|
[*.cs]
|
|
# New line preferences
|
|
csharp_new_line_before_open_brace = all
|
|
csharp_new_line_before_else = true
|
|
csharp_new_line_before_catch = true
|
|
csharp_new_line_before_finally = true
|
|
csharp_new_line_before_members_in_object_initializers = true
|
|
csharp_new_line_before_members_in_anonymous_types = true
|
|
csharp_new_line_within_query_expression_clauses = true
|
|
|
|
# Indentation preferences
|
|
csharp_indent_block_contents = true
|
|
csharp_indent_braces = false
|
|
csharp_indent_case_contents = true
|
|
csharp_indent_switch_labels = true
|
|
csharp_indent_labels = flush_left
|
|
|
|
# avoid this. unless absolutely necessary
|
|
dotnet_style_qualification_for_field = false:suggestion
|
|
dotnet_style_qualification_for_property = false:suggestion
|
|
dotnet_style_qualification_for_method = false:suggestion
|
|
dotnet_style_qualification_for_event = false:suggestion
|
|
|
|
# always use var when possible
|
|
csharp_style_var_for_built_in_types = true:suggestion
|
|
csharp_style_var_when_type_is_apparent = true:suggestion
|
|
csharp_style_var_elsewhere = true:suggestion
|
|
|
|
# use language keywords instead of BCL types
|
|
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
|
|
dotnet_style_predefined_type_for_member_access = true:suggestion
|
|
|
|
# name all constant fields using PascalCase
|
|
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
|
|
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
|
|
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
|
|
|
|
dotnet_naming_symbols.constant_fields.applicable_kinds = field
|
|
dotnet_naming_symbols.constant_fields.required_modifiers = const
|
|
|
|
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
|
|
|
|
# internal and private fields should be _camelCase
|
|
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
|
|
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
|
|
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
|
|
|
|
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
|
|
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
|
|
|
|
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
|
|
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
|
|
|
|
# Code style defaults
|
|
dotnet_sort_system_directives_first = true
|
|
csharp_preserve_single_line_blocks = true
|
|
csharp_preserve_single_line_statements = false
|
|
|
|
# Expression-level preferences
|
|
dotnet_style_object_initializer = true:suggestion
|
|
dotnet_style_collection_initializer = true:suggestion
|
|
dotnet_style_explicit_tuple_names = true:suggestion
|
|
dotnet_style_coalesce_expression = true:suggestion
|
|
dotnet_style_null_propagation = true:suggestion
|
|
|
|
# Expression-bodied members
|
|
csharp_style_expression_bodied_methods = false:none
|
|
csharp_style_expression_bodied_constructors = false:none
|
|
csharp_style_expression_bodied_operators = false:none
|
|
csharp_style_expression_bodied_properties = true:none
|
|
csharp_style_expression_bodied_indexers = true:none
|
|
csharp_style_expression_bodied_accessors = true:none
|
|
|
|
# Property and accessor preferences
|
|
csharp_style_auto_properties = true:suggestion
|
|
csharp_style_inlined_variable_declaration = true:suggestion
|
|
csharp_keep_existing_attribute_arrangement = true
|
|
csharp_keep_existing_initializer_arrangement = true
|
|
csharp_prefer_simple_auto_property = true:suggestion
|
|
|
|
# Pattern matching
|
|
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
|
|
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
|
|
csharp_style_inlined_variable_declaration = true:suggestion
|
|
|
|
# Null checking preferences
|
|
csharp_style_throw_expression = true:suggestion
|
|
csharp_style_conditional_delegate_call = true:suggestion
|
|
|
|
# Space preferences
|
|
csharp_space_after_cast = false
|
|
csharp_space_after_colon_in_inheritance_clause = true
|
|
csharp_space_after_comma = true
|
|
csharp_space_after_dot = false
|
|
csharp_space_after_keywords_in_control_flow_statements = true
|
|
csharp_space_after_semicolon_in_for_statement = true
|
|
csharp_space_around_binary_operators = before_and_after
|
|
csharp_space_around_declaration_statements = do_not_ignore
|
|
csharp_space_before_colon_in_inheritance_clause = true
|
|
csharp_space_before_comma = false
|
|
csharp_space_before_dot = false
|
|
csharp_space_before_open_square_brackets = false
|
|
csharp_space_before_semicolon_in_for_statement = false
|
|
csharp_space_between_empty_square_brackets = false
|
|
csharp_space_between_method_call_empty_parameter_list_parentheses = false
|
|
csharp_space_between_method_call_name_and_opening_parenthesis = false
|
|
csharp_space_between_method_call_parameter_list_parentheses = false
|
|
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
|
|
csharp_space_between_method_declaration_name_and_open_parenthesis = false
|
|
csharp_space_between_method_declaration_parameter_list_parentheses = false
|
|
csharp_space_between_parentheses = false
|
|
csharp_space_between_square_brackets = false
|
|
csharp_style_prefer_null_check_over_type_check = true:warning
|
|
csharp_prefer_simple_using_statement = true:warning
|
|
|
|
# C++ Files
|
|
|
|
[*.{cpp,h,in}]
|
|
curly_bracket_next_line = true
|
|
indent_brace_style = Allman
|
|
|
|
# Xml project files
|
|
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
|
|
indent_size = 2
|
|
|
|
# Xml build files
|
|
[*.builds]
|
|
indent_size = 2
|
|
|
|
# Xml files
|
|
[*.{xml,stylecop,resx,ruleset}]
|
|
indent_size = 2
|
|
|
|
# Xml config files
|
|
[*.{props,targets,config,nuspec}]
|
|
indent_size = 2
|
|
|
|
# Shell scripts
|
|
[*.{cmd, bat}]
|
|
end_of_line = crlf
|
|
|
|
[{*.bash,*.sh,*.zsh}]
|
|
indent_style = space
|
|
indent_size = 2
|
|
end_of_line = lf
|
|
|
|
[{*.har,*.jsb2,*.jsb3,*.jsonc,*.postman_collection,*.postman_collection.json,*.postman_environment,*.postman_environment.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,.ws-context,jest.config}]
|
|
indent_style = space
|
|
indent_size = 2
|
|
|
|
[{*.yaml,*.yml}]
|
|
indent_style = space
|
|
indent_size = 2
|
|
|
|
[*.map]
|
|
indent_style = space
|
|
indent_size = 2
|
|
|
|
[*.{appxmanifest,asax,ascx,aspx,axaml,blockshader,build,c,c++,c++m,cc,ccm,cginc,compute,cp,cpp,cppm,cs,cshtml,cu,cuh,cxx,cxxm,dtd,fs,fsi,fsscript,fsx,fx,fxh,h,h++,hh,hlsl,hlsli,hlslinc,hp,hpp,hxx,icc,inc,inl,ino,ipp,ixx,master,ml,mli,mpp,mq4,mq5,mqh,mxx,nuspec,paml,razor,resw,resx,shader,shaderFoundry,skin,tcc,tpp,urtshader,usf,ush,uxml,vb,xaml,xamlx,xoml,xsd}]
|
|
indent_style = space
|
|
indent_size = 4
|
|
tab_width = 4
|