Format luacheckrc

This commit is contained in:
Lucas Schwiderski 2023-11-12 11:38:49 +01:00
parent 1e36f2bc3e
commit 7b417f8b63
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -5,12 +5,12 @@ include_files = {
} }
ignore = { ignore = {
"12.", -- ignore "Setting a read-only global variable/Setting a read-only field of a global variable." "12.", -- ignore "Setting a read-only global variable/Setting a read-only field of a global variable."
"542", -- disable warnings for empty if branches. These are useful sometime and easy to notice otherwise. "542", -- disable warnings for empty if branches. These are useful sometime and easy to notice otherwise.
"21./.*_", -- disable unused warnings for variables ending with _ "21./.*_", -- disable unused warnings for variables ending with _
"211/dmf", -- Disable warnings about unused mod object "211/dmf", -- Disable warnings about unused mod object
"212/self", -- Disable unused self warnings. "212/self", -- Disable unused self warnings.
"611", -- disable "line contains only whitespace" "611", -- disable "line contains only whitespace"
} }
std = "+DT+DMF" std = "+DT+DMF"
@ -23,30 +23,52 @@ stds["DMF"] = {
stds["DT"] = { stds["DT"] = {
read_globals = { read_globals = {
string = { fields = { "split" }}, string = { fields = { "split" } },
table = { fields = { table = {
"merge", "table_to_array", "mirror_table", "tostring", "is_empty", "array_to_table", "reverse", "shuffle", fields = {
"merge_recursive", "unpack_map", "remove_unordered_items", "append", "mirror_array_inplace", "size", "dump", "merge", "table_to_array", "mirror_table", "tostring", "is_empty", "array_to_table", "reverse", "shuffle",
"clear_array", "append_varargs", "find", "for_each", "crop", "mirror_array", "set", "create_copy", "clone", "merge_recursive", "unpack_map", "remove_unordered_items", "append", "mirror_array_inplace", "size",
"contains", "add_meta_logging", "table_as_sorted_string_arrays", "clone_instance", "max", "clear", "find_by_key", "dump",
}}, "clear_array", "append_varargs", "find", "for_each", "crop", "mirror_array", "set", "create_copy",
math = { fields = { "clone",
"ease_exp", "lerp", "polar_to_cartesian", "smoothstep", "easeCubic", "round", "point_is_inside_2d_triangle", "contains", "add_meta_logging", "table_as_sorted_string_arrays", "clone_instance", "max", "clear",
"radians_to_degrees", "circular_to_square_coordinates", "uuid", "easeInCubic", "round_with_precision", "find_by_key",
"clamp", "get_uniformly_random_point_inside_sector", "angle_lerp", "ease_out_exp", "rand_normal", }
"bounce", "point_is_inside_2d_box", "catmullrom", "clamp_direction", "ease_in_exp", "random_seed", },
"sign", "degrees_to_radians", "sirp", "ease_pulse", "cartesian_to_polar", "ease_out_quad", math = {
"easeOutCubic", "radian_lerp", "auto_lerp", "rand_utf8_string", "point_is_inside_oobb", fields = {
}}, "ease_exp", "lerp", "polar_to_cartesian", "smoothstep", "easeCubic", "round",
Managers = { fields = { "point_is_inside_2d_triangle",
"mod", "event", "ui", "radians_to_degrees", "circular_to_square_coordinates", "uuid", "easeInCubic", "round_with_precision",
}}, "clamp", "get_uniformly_random_point_inside_sector", "angle_lerp", "ease_out_exp", "rand_normal",
Mods = { fields = { "bounce", "point_is_inside_2d_box", "catmullrom", "clamp_direction", "ease_in_exp", "random_seed",
lua = { fields = { "debug", "io", "ffi", "os" }}, "sign", "degrees_to_radians", "sirp", "ease_pulse", "cartesian_to_polar", "ease_out_quad",
"original_require", "easeOutCubic", "radian_lerp", "auto_lerp", "rand_utf8_string", "point_is_inside_oobb",
"require_store", }
}}, },
"Crashify","Keyboard","Mouse","Application","Color","Quarternion","Vector3","Vector2","RESOLUTION_LOOKUP", Managers = {
"ModManager", "Utf8", "Main", fields = {
"mod", "event", "ui",
}
},
Mods = {
fields = {
lua = { fields = { "debug", "io", "ffi", "os" } },
"original_require",
"require_store",
}
},
"Crashify",
"Keyboard",
"Mouse",
"Application",
"Color",
"Quarternion",
"Vector3",
"Vector2",
"RESOLUTION_LOOKUP",
"ModManager",
"Utf8",
"Main",
}, },
} }