Skip to content

Commit

Permalink
Update luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Insality committed Aug 27, 2024
1 parent 11ae63a commit 4571832
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
19 changes: 16 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,23 @@
"describe",
"before",
"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": [
".vscode",
"test/*"
]
"test/tests/*.lua",
"utils/annotations_manual.lua"
],
"Lua.diagnostics.libraryFiles": "Enable",
"Lua.runtime.version": "Lua 5.1"
}
2 changes: 2 additions & 0 deletions druid/annotations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1824,6 +1824,8 @@ function helper.step(current, target, step) end
function helper.table_to_string(t) end


---@diagnostic disable: duplicate-doc-field

-- Manual Annotations --

---@class druid.rich_text.metrics
Expand Down
2 changes: 1 addition & 1 deletion druid/component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local helper = require("druid.helper")
local BaseComponent = class("druid.component")

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
BaseComponent.ON_INPUT = const.ON_INPUT
Expand Down
2 changes: 1 addition & 1 deletion druid/custom/pin_knob/pin_knob.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ local SCHEME = {

local function update_visual(self)
local rotation = vmath.vector3(0, 0, self.angle)
gui.set_rotation(self.node, rotation)
gui.set_euler(self.node, rotation)
end


Expand Down
2 changes: 0 additions & 2 deletions utils/annotations_manual.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---@diagnostic disable: duplicate-doc-field

-- Manual Annotations --

---@class druid.rich_text.metrics
Expand Down

0 comments on commit 4571832

Please sign in to comment.