Update luacheck

This commit is contained in:
Insality 2024-08-27 17:48:46 +03:00
parent 11ae63a9f6
commit 45718325a1
5 changed files with 20 additions and 7 deletions

19
.vscode/settings.json vendored
View File

@ -8,10 +8,23 @@
"describe", "describe",
"before", "before",
"after", "after",
"it" "it",
"utf8"
], ],
"Lua.workspace.checkThirdParty": false,
"Lua.diagnostics.neededFileStatus": {
"undefined-field": "Any",
"assign-type-mismatch": "Any",
"missing-return": "Any",
"missing-fields": "Any",
"return-type-mismatch": "Any",
"lowercase-global": "Any"
},
"Lua.workspace.ignoreDir": [ "Lua.workspace.ignoreDir": [
".vscode", ".vscode",
"test/*" "test/tests/*.lua",
] "utils/annotations_manual.lua"
],
"Lua.diagnostics.libraryFiles": "Enable",
"Lua.runtime.version": "Lua 5.1"
} }

View File

@ -1824,6 +1824,8 @@ function helper.step(current, target, step) end
function helper.table_to_string(t) end function helper.table_to_string(t) end
---@diagnostic disable: duplicate-doc-field
-- Manual Annotations -- -- Manual Annotations --
---@class druid.rich_text.metrics ---@class druid.rich_text.metrics

View File

@ -25,7 +25,7 @@ local helper = require("druid.helper")
local BaseComponent = class("druid.component") local BaseComponent = class("druid.component")
local INTERESTS = {} -- Cache interests per component class in runtime local INTERESTS = {} -- Cache interests per component class in runtime
local IS_AUTO_TEMPLATE = not (sys.get_config("druid.no_auto_template") == "1") local IS_AUTO_TEMPLATE = not (sys.get_config_int("druid.no_auto_template", 0) == "1")
-- Component Interests -- Component Interests
BaseComponent.ON_INPUT = const.ON_INPUT BaseComponent.ON_INPUT = const.ON_INPUT

View File

@ -30,7 +30,7 @@ local SCHEME = {
local function update_visual(self) local function update_visual(self)
local rotation = vmath.vector3(0, 0, self.angle) local rotation = vmath.vector3(0, 0, self.angle)
gui.set_rotation(self.node, rotation) gui.set_euler(self.node, rotation)
end end

View File

@ -1,5 +1,3 @@
---@diagnostic disable: duplicate-doc-field
-- Manual Annotations -- -- Manual Annotations --
---@class druid.rich_text.metrics ---@class druid.rich_text.metrics