From 2381f68912430dfba0d8e92c290e17a56a122873 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 18 May 2025 10:10:45 +0200 Subject: [PATCH] Updater meta config --- .luacheckrc | 6 +++++- .luarc.json | 15 ++++++++++++++- stylua.toml | 13 ++++++++++++- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index a7f8e88..ed1f3df 120000 --- a/.luacheckrc +++ b/.luacheckrc @@ -1 +1,5 @@ -C:/Users/Administrator/Seafile/Games-WoW/Ruski/Interface/AddOns/Heimdall/Meta/.luacheckrc \ No newline at end of file +globals = { "CykaPersistentData", "CreateFrame", "GetItemInfo", "aura_env" } +unused_args = false +max_line_length = 150 +exclude_files = { "Meta/" } +global = false \ No newline at end of file diff --git a/.luarc.json b/.luarc.json index 76f5d90..5953b55 120000 --- a/.luarc.json +++ b/.luarc.json @@ -1 +1,14 @@ -C:/Users/Administrator/Seafile/Games-WoW/Ruski/Interface/AddOns/Heimdall/Meta/.luarc.json \ No newline at end of file +{ + "workspace": { + "library": [ + "./Meta" + ] + }, + "diagnostics.disable": [ + "unused-local", + "unused-vararg" + ], + "diagnostics.globals": [ + "aura_env" + ] +} diff --git a/stylua.toml b/stylua.toml index c29d9ed..02496d9 120000 --- a/stylua.toml +++ b/stylua.toml @@ -1 +1,12 @@ -C:/Users/Administrator/Seafile/Games-WoW/Ruski/Interface/AddOns/Heimdall/Meta/stylua.toml \ No newline at end of file +syntax = "All" # Specify a disambiguation for the style of Lua syntax being formatted. Possible options: All (default), Lua51, Lua52, Lua53, Lua54, LuaJIT, Luau, CfxLua +column_width = 120 # Approximate line length for printing. Used as a guide for line wrapping - this is not a hard requirement: lines may fall under or over the limit. +line_endings = "Windows" # Line endings type. Possible options: Unix (LF) or Windows (CRLF) +indent_type = "Tabs" # Indent type. Possible options: Tabs or Spaces +indent_width = 4 # Character size of single indentation. If indent_type is set to Tabs, this option is used as a heuristic to determine column width only. +quote_style = "AutoPreferDouble" # Quote style for string literals. Possible options: AutoPreferDouble, AutoPreferSingle, ForceDouble, ForceSingle. AutoPrefer styles will prefer the specified quote style, but fall back to the alternative if it has fewer string escapes. Force styles always use the specified style regardless of escapes. +call_parentheses = "Always" # Whether parentheses should be applied on function calls with a single string/table argument. Possible options: Always, NoSingleString, NoSingleTable, None, Input. Always applies parentheses in all cases. NoSingleString omits parentheses on calls with a single string argument. Similarly, NoSingleTable omits parentheses on calls with a single table argument. None omits parentheses in both cases. Note: parentheses are still kept in situations where removal can lead to obscurity (e.g. foo "bar".setup -> foo("bar").setup, since the index is on the call result, not the string). Input removes all automation and preserves parentheses only if they were present in input code: consistency is not enforced. +space_after_function_names = "Never" # Specify whether to add a space between the function name and parentheses. Possible options: Never, Definitions, Calls, or Always +collapse_simple_statement = "Always" # Specify whether to collapse simple statements. Possible options: Never, FunctionOnly, ConditionalOnly, or Always + +[sort_requires] +enabled = false \ No newline at end of file