1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-21 20:43:29 +01:00

added .editorconfig

This commit is contained in:
Ell 2022-06-17 18:23:47 +02:00
parent 1795acb30e
commit aabb1ed5df
141 changed files with 376 additions and 263 deletions

113
.editorconfig Normal file
View file

@ -0,0 +1,113 @@
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
# Microsoft .NET properties
csharp_new_line_before_catch = false
csharp_new_line_before_else = false
csharp_new_line_before_finally = false
csharp_new_line_before_members_in_object_initializers = false
csharp_new_line_before_open_brace = none
csharp_new_line_between_query_expression_clauses = false
csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion
csharp_space_after_cast = true
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.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_instance_fields_rule.severity = warning
dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols
dotnet_naming_rule.private_static_fields_rule.severity = warning
dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style
dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols
dotnet_naming_rule.private_static_readonly_rule.severity = warning
dotnet_naming_rule.private_static_readonly_rule.style = upper_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.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_instance_fields_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = field
dotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = field
dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static
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 = true:suggestion
dotnet_style_qualification_for_field = true:suggestion
dotnet_style_qualification_for_method = true:suggestion
dotnet_style_qualification_for_property = true:suggestion
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
# ReSharper properties
resharper_blank_lines_after_block_statements = 0
resharper_blank_lines_around_auto_property = 0
resharper_blank_lines_around_local_method = 0
resharper_blank_lines_around_property = 0
resharper_blank_lines_inside_type = 1
resharper_braces_for_dowhile = required_for_multiline
resharper_braces_for_fixed = required_for_multiline
resharper_braces_for_for = required_for_multiline
resharper_braces_for_foreach = required_for_multiline
resharper_braces_for_ifelse = required_for_multiline
resharper_braces_for_lock = required_for_multiline
resharper_braces_for_using = required_for_multiline
resharper_braces_for_while = required_for_multiline
resharper_braces_redundant = false
resharper_csharp_blank_lines_around_field = 0
resharper_csharp_blank_lines_around_single_line_invocable = 1
resharper_csharp_empty_block_style = together
resharper_csharp_keep_blank_lines_in_code = 1
resharper_csharp_keep_blank_lines_in_declarations = 1
resharper_csharp_max_line_length = unset
resharper_csharp_stick_comment = false
resharper_csharp_wrap_before_ternary_opsigns = false
resharper_csharp_wrap_multiple_declaration_style = wrap_if_long
resharper_csharp_wrap_multiple_type_parameter_constraints_style = wrap_if_long
resharper_csharp_wrap_ternary_expr_style = wrap_if_long
resharper_force_attribute_style = join
resharper_indent_nested_fixed_stmt = true
resharper_indent_nested_foreach_stmt = true
resharper_indent_nested_for_stmt = true
resharper_indent_nested_lock_stmt = true
resharper_indent_nested_usings_stmt = true
resharper_indent_nested_while_stmt = true
resharper_indent_preprocessor_if = usual_indent
resharper_indent_preprocessor_other = usual_indent
resharper_keep_existing_declaration_parens_arrangement = false
resharper_keep_existing_embedded_arrangement = false
resharper_keep_existing_expr_member_arrangement = false
resharper_keep_existing_property_patterns_arrangement = false
resharper_keep_existing_switch_expression_arrangement = false
resharper_parentheses_redundancy_style = remove
resharper_place_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_accessor_on_single_line = false
resharper_place_simple_anonymousmethod_on_single_line = false
resharper_place_simple_embedded_statement_on_same_line = false
resharper_space_around_arrow_op = true
resharper_space_within_empty_braces = false
resharper_space_within_single_line_array_initializer_braces = false
resharper_static_members_qualify_members = field, property, event, method
resharper_wrap_for_stmt_header_style = wrap_if_long
resharper_wrap_object_and_collection_initializer_style = wrap_if_long
resharper_xmldoc_attribute_indent = align_by_first_attribute
resharper_xmldoc_attribute_style = on_single_line
resharper_xmldoc_pi_attribute_style = on_single_line

View file

@ -51,4 +51,4 @@ namespace Demos.Android {
}
}
}
}

View file

@ -12,4 +12,4 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: ComVisible(false)]

View file

@ -11,4 +11,4 @@ namespace Demos.DesktopGL {
}
}
}
}

View file

@ -104,4 +104,4 @@ namespace Demos {
}
}
}
}

View file

@ -73,4 +73,4 @@ namespace Demos {
}
}
}
}

View file

@ -32,4 +32,4 @@ namespace Demos {
}
}
}
}

View file

@ -63,4 +63,4 @@ namespace Demos {
}
}
}
}

View file

@ -128,4 +128,4 @@ namespace Demos {
}
}
}
}

View file

@ -102,4 +102,4 @@ namespace Demos {
}
}
}
}

View file

@ -302,4 +302,4 @@ namespace Demos {
}
}
}
}

View file

@ -23,4 +23,4 @@ namespace MLEM.Data.Content {
}
}
}
}

View file

@ -125,4 +125,4 @@ namespace MLEM.Data.Content {
}
}
}
}

View file

@ -58,4 +58,4 @@ namespace MLEM.Data.Content {
protected abstract T Read(RawContentManager manager, string assetPath, Stream stream, T existing);
}
}
}

View file

@ -17,4 +17,4 @@ namespace MLEM.Data.Content {
}
}
}
}

View file

@ -16,4 +16,4 @@ namespace MLEM.Data.Content {
}
}
}
}

View file

@ -36,4 +36,4 @@ namespace MLEM.Data.Content {
}
}
}
}

View file

@ -22,4 +22,4 @@ namespace MLEM.Data.Content {
}
}
}
}

View file

@ -74,4 +74,4 @@ namespace MLEM.Data {
}
}
}
}

View file

@ -116,4 +116,4 @@ namespace MLEM.Data {
/// </summary>
[AttributeUsage(AttributeTargets.Constructor), Obsolete("CopyExtensions has major flaws and insufficient speed compared to other libraries specifically designed for copying objects.")]
public class CopyConstructorAttribute : Attribute {}
}
}

View file

@ -133,4 +133,4 @@ namespace MLEM.Data {
}
}
}
}

View file

@ -349,4 +349,4 @@ namespace MLEM.Data {
}
}
}
}

View file

@ -29,4 +29,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -27,4 +27,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -27,4 +27,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -42,4 +42,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -60,4 +60,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -30,4 +30,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -34,4 +34,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -34,4 +34,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -65,4 +65,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -30,4 +30,4 @@ namespace MLEM.Data.Json {
}
}
}
}

View file

@ -100,4 +100,4 @@ namespace MLEM.Data {
}
}
}
}

View file

@ -117,4 +117,4 @@ namespace MLEM.Data {
}
}
}
}

View file

@ -325,4 +325,4 @@ namespace MLEM.Data {
}
}
}
}

View file

@ -41,4 +41,4 @@ namespace MLEM.Extended.Extensions {
}
}
}
}

View file

@ -40,4 +40,4 @@ namespace MLEM.Extended.Extensions {
}
}
}
}

View file

@ -62,4 +62,4 @@ namespace MLEM.Extended.Extensions {
}
}
}
}

View file

@ -45,4 +45,4 @@ namespace MLEM.Extended.Extensions {
}
}
}
}

View file

@ -43,4 +43,4 @@ namespace MLEM.Extended.Font {
}
}
}
}

View file

@ -43,4 +43,4 @@ namespace MLEM.Extended.Font {
}
}
}
}

View file

@ -257,4 +257,4 @@ namespace MLEM.Extended.Tiled {
}
}
}
}

View file

@ -128,4 +128,4 @@ namespace MLEM.Extended.Tiled {
}
}
}
}

View file

@ -129,4 +129,4 @@ namespace MLEM.Extended.Tiled {
}
}
}
}

View file

@ -360,4 +360,4 @@ namespace MLEM.Extended.Tiled {
}
}
}
}

View file

@ -204,4 +204,4 @@ namespace MLEM.Extended.Tiled {
}
}
}
}

View file

@ -24,4 +24,4 @@ namespace MLEM.Startup {
public static readonly Event Draw = new Event();
}
}
}

View file

@ -177,4 +177,4 @@ namespace MLEM.Startup {
public delegate void TimeCallback(MlemGame game, GameTime time);
}
}
}

View file

@ -71,4 +71,4 @@ namespace MLEM.Ui {
AutoInlineIgnoreOverflow
}
}
}

View file

@ -118,4 +118,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -147,4 +147,4 @@ namespace MLEM.Ui.Elements {
public delegate void CheckStateChange(Checkbox box, bool checced);
}
}
}

View file

@ -105,4 +105,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -1214,4 +1214,4 @@ namespace MLEM.Ui.Elements {
public delegate void BeginDelegate(Element element, GameTime time, SpriteBatch batch, float alpha, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, Effect effect, Matrix matrix);
}
}
}

View file

@ -215,4 +215,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -28,4 +28,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -127,4 +127,4 @@ namespace MLEM.Ui.Elements {
public delegate TextureRegion TextureCallback(Image image);
}
}
}

View file

@ -311,4 +311,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -284,4 +284,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -121,4 +121,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -46,4 +46,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -232,4 +232,4 @@ namespace MLEM.Ui.Elements {
public delegate void ValueChanged(Element element, float value);
}
}
}

View file

@ -39,4 +39,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -42,4 +42,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -74,4 +74,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -570,4 +570,4 @@ namespace MLEM.Ui.Elements {
public delegate bool Rule(TextField field, string textToAdd);
}
}
}

View file

@ -310,4 +310,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -16,4 +16,4 @@ namespace MLEM.Ui.Elements {
}
}
}
}

View file

@ -290,4 +290,4 @@ namespace MLEM.Ui.Parsers {
}
}
}
}

View file

@ -144,4 +144,4 @@ namespace MLEM.Ui.Style {
}
}
}
}

View file

@ -223,4 +223,4 @@ namespace MLEM.Ui.Style {
public Dictionary<string, GenericFont> AdditionalFonts = new Dictionary<string, GenericFont>();
}
}
}

View file

@ -29,4 +29,4 @@ namespace MLEM.Ui.Style {
}
}
}
}

View file

@ -443,4 +443,4 @@ namespace MLEM.Ui {
}
}
}
}

View file

@ -104,4 +104,4 @@ namespace MLEM.Ui {
}
}
}
}

View file

@ -620,4 +620,4 @@ namespace MLEM.Ui {
}
}
}
}

View file

@ -197,4 +197,4 @@ namespace MLEM.Animations {
}
}
}
}

View file

@ -137,4 +137,4 @@ namespace MLEM.Animations {
}
}
}
}

View file

@ -180,4 +180,4 @@ namespace MLEM.Cameras {
}
}
}
}

View file

@ -23,4 +23,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -52,4 +52,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -77,4 +77,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -104,4 +104,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -289,4 +289,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -55,4 +55,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -25,4 +25,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -173,4 +173,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -112,4 +112,4 @@ namespace MLEM.Extensions {
}
}
}
}

View file

@ -370,4 +370,4 @@ namespace MLEM.Font {
}
}
}
}

View file

@ -55,4 +55,4 @@ namespace MLEM.Font {
}
}
}
}

View file

@ -13,4 +13,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -90,4 +90,4 @@ namespace MLEM.Formatting.Codes {
public delegate Code Constructor(TextFormatter formatter, Match match, Regex regex);
}
}
}

View file

@ -18,4 +18,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -24,4 +24,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -65,4 +65,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -41,4 +41,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -13,4 +13,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -30,4 +30,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -35,4 +35,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -36,4 +36,4 @@ namespace MLEM.Formatting.Codes {
}
}
}
}

View file

@ -19,4 +19,4 @@ namespace MLEM.Formatting {
Right
}
}
}

View file

@ -157,4 +157,4 @@ namespace MLEM.Formatting {
public delegate string Macro(TextFormatter formatter, Match match, Regex regex);
}
}
}

Some files were not shown because too many files have changed in this diff Show more