mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-22 14:14:36 +00:00
lint: Fix whitespace issues
Remove excess whitespace and remove related ignores.
This commit is contained in:
parent
66cb419db8
commit
8d41c6d3d1
@ -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 = {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
2
vec2.lua
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user