diff --git a/.editorconfig b/.editorconfig index 4bac1cb..6b83c6d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,7 +3,7 @@ # [basic] -indent_style = space +indent_style = tab tab_width = 4 # none/single/double quote_style = single @@ -28,7 +28,7 @@ call_arg_parentheses = keep # none/comma/semicolon table_separator_style = comma # keep/never/always/smart -trailing_table_separator = smart +trailing_table_separator = always # align equal signs in tables continuous_assign_table_field_align_to_equal_sign = false # if true "local t = { 1, 2, 3 }" @@ -76,3 +76,8 @@ keep_line_after_for_statement = keepLine keep_line_after_local_or_assign_statement = keepLine keep_line_after_function_define_statement = keepLine keep_line_after_expression_statement = keepLine + +# [diagnostic] +# creates a lot of warnings I can't do anything about so disable it is + +enable_check_codestyle = false diff --git a/uosc.lua b/uosc.lua index e5cddfd..90e87c9 100644 --- a/uosc.lua +++ b/uosc.lua @@ -616,7 +616,8 @@ function get_adjacent_file(file_path, direction, allowed_types) end -- Can't use `os.remove()` as it fails on paths with unicode characters. --- Returns `result, error`, result is table of `status:number(<0=error), stdout, stderr, error_string, killed_by_us:boolean` +-- Returns `result, error`, result is table of: +-- `status:number(<0=error), stdout, stderr, error_string, killed_by_us:boolean` function delete_file(file_path) local args = state.os == 'windows' and {'cmd', '/C', 'del', file_path} or {'rm', file_path} return mp.command_native({