lint: Fix whitespace issues

Remove excess whitespace and remove related ignores.
This commit is contained in:
David Briscoe 2022-03-02 09:55:57 -08:00
parent 66cb419db8
commit 8d41c6d3d1
6 changed files with 6 additions and 9 deletions

View File

@ -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 = {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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