Skip to content

Commit

Permalink
update editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
PrincessRTFM committed May 6, 2024
1 parent c7c9c5f commit 9a749ac
Showing 1 changed file with 142 additions and 5 deletions.
147 changes: 142 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ root = true
[*]

# Indentation and spacing
indent_size = 4
indent_style = tab

# New line preferences
end_of_line = crlf
# Newline and whitespace preferences
end_of_line = auto
insert_final_newline = true
trim_trailing_whitespace = true

charset = utf-8

[*.{yml,yaml}]

# YAML requires spaces for indentation
indent_style = space
indent_size = 4

# C# files
[*.cs]

# Organize usings
Expand Down Expand Up @@ -193,7 +200,7 @@ dotnet_naming_rule.interfaces_start_with_I.style = I_pre
dotnet_naming_symbols.any_interface.applicable_kinds = interface
dotnet_naming_symbols.any_interface.applicable_accessibilities = *

# Private properties, methods must be cascalCase
# Private properties, methods must be camelCase
dotnet_naming_rule.privates_naming.severity = warning
dotnet_naming_rule.privates_naming.symbols = privates
dotnet_naming_rule.privates_naming.style = camel_case_style
Expand All @@ -213,3 +220,133 @@ dotnet_naming_rule.everything_else_naming.symbols = every
dotnet_naming_rule.everything_else_naming.style = camel_case_style
dotnet_naming_symbols.everything_else.applicable_kinds = *
dotnet_naming_symbols.everything_else.applicable_accessibilities = *

[*.lua]

# none/single/double
quote_style = double

# this mean utf8 length , if this is 'unset' then the line width is no longer checked
# this option decides when to chopdown the code
max_line_length = unset

# none / comma / semicolon / only_kv_colon
table_separator_style = only_kv_colon

#optional keep/never/always/smart
trailing_table_separator = smart

# keep/remove/remove_table_only/remove_string_only
call_arg_parentheses = remove_table_only

detect_end_of_line = false

space_around_table_field_list = true

space_before_attribute = true

space_before_function_open_parenthesis = false

space_before_function_call_open_parenthesis = false

space_before_closure_open_parenthesis = false

# optional always/only_string/only_table/none
# or true/false
space_before_function_call_single_arg = only_string

space_before_open_square_bracket = false

space_inside_function_call_parentheses = false

space_inside_function_param_list_parentheses = false

space_inside_square_brackets = false

# like t[#t+1] = 1
space_around_table_append_operator = true

ignore_spaces_inside_function_call = false

space_before_inline_comment = 1

space_around_math_operator = true

space_after_comma = true

space_after_comma_in_for_statement = true

# true/false or none/always/no_space_asym
space_around_concat_operator = true

space_around_logical_operator = true

# true/false or none/always/no_space_asym
space_around_assign_operator = true

align_call_args = false

align_function_params = false

align_continuous_assign_statement = false

align_continuous_rect_table_field = false

align_continuous_line_space = 2

align_if_branch = false

# option none / always / contain_curly/
align_array_table = false

align_continuous_similar_call_args = false

align_continuous_inline_comment = false
# option none / always / only_call_stmt
align_chain_expr = none

never_indent_before_if_condition = false

never_indent_comment_on_if_branch = false

keep_indents_on_empty_lines = false

# The following (line_space_*) configuration supports four expressions
# keep
# fixed(n)
# min(n)
# max(n)
# for eg. min(2)

line_space_after_if_statement = keep

line_space_after_do_statement = keep

line_space_after_while_statement = keep

line_space_after_repeat_statement = keep

line_space_after_for_statement = keep

line_space_after_local_or_assign_statement = keep

line_space_after_function_statement = fixed(2)

line_space_after_expression_statement = keep

line_space_after_comment = keep

line_space_around_block = fixed(1)

break_all_list_when_line_exceed = false

auto_collapse_lines = false

break_before_braces = false

ignore_space_after_colon = false

remove_call_expression_list_finish_comma = false

# keep / always / same_line / repalce_with_newline
end_statement_with_semicolon = repalce_with_newline

0 comments on commit 9a749ac

Please sign in to comment.