diff --git a/.luacheckrc b/.luacheckrc index d3aad24..ae8ee46 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -15,9 +15,6 @@ return { "423", -- Shadowing a loop variable. "423", -- Shadowing a loop variable. "432", -- Shadowing an upvalue argument. - "611", -- A line consists of nothing but whitespace. - "612", -- A line contains trailing whitespace. - "614", -- Trailing whitespace in a comment. "631", -- Line is too long. }, files = { diff --git a/async.lua b/async.lua index 4ebc376..c6505c5 100644 --- a/async.lua +++ b/async.lua @@ -1,12 +1,12 @@ --[[ simple kernel for async tasks running in the background - + can "stall" a task by yielding the string "stall" this will suspend the coroutine until the rest of the queue has been processed or stalled and can early-out update_for_time - todo: + todo: multiple types of callbacks finish, error, step getting a reference to the task for manipulation diff --git a/pretty.lua b/pretty.lua index 4e18638..42fd2e4 100644 --- a/pretty.lua +++ b/pretty.lua @@ -60,7 +60,7 @@ function pretty._process(input, config, processing_state) --pull out config config = table.overlay({}, pretty.default_config, config or {}) - + local per_line = config.per_line local depth = config.depth local indent = config.indent diff --git a/state_machine.lua b/state_machine.lua index c09aa1b..c5c28af 100644 --- a/state_machine.lua +++ b/state_machine.lua @@ -115,7 +115,7 @@ end --hard-replace a state table -- if we're replacing the current state, -- exit is called on the old state and enter is called on the new state --- mask_transitions can be used to prevent this if you need to +-- mask_transitions can be used to prevent this if you need to function state_machine:replace_state(name, state, mask_transitions) local do_transitions = not mask_transitions and self:in_state(name) if do_transitions then diff --git a/vec2.lua b/vec2.lua index c6bba9c..a0dd66e 100644 --- a/vec2.lua +++ b/vec2.lua @@ -266,7 +266,7 @@ end vec2.rot180_inplace = vec2.inverse_inplace --alias ---get the angle of this vector relative to (1, 0) +--get the angle of this vector relative to (1, 0) function vec2:angle() return math.atan2(self.y, self.x) end diff --git a/vec3.lua b/vec3.lua index 695b2ee..251420f 100644 --- a/vec3.lua +++ b/vec3.lua @@ -343,7 +343,7 @@ local _euler_macro = { } function vec3:rotate_euleri(angle_x_axis, angle_y_axis, angle_z_axis) for i, swizzle in ipairs(_euler_macro) do - local angle = + local angle = i == 1 and angle_x_axis or i == 2 and angle_y_axis or i == 3 and angle_z_axis