Added some comments to eradicate all warnings in linter

This commit is contained in:
2025-10-23 12:38:09 +02:00
parent b0c582ba92
commit 8f96111a2f
2 changed files with 3 additions and 16 deletions

View File

@ -2,27 +2,14 @@
local core = require "core" local core = require "core"
local style = require "core.style" local style = require "core.style"
local command = require "core.command" local command = require "core.command"
local keymap = require "core.keymap"
local View = require "core.view" local View = require "core.view"
local process = require "process" -- Child Processes API local process = require "process" -- Child Processes API
local config = require "core.config" local config = require "core.config"
local function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end
local active_views = {} local active_views = {}
-- ---------- JPDebugView: a simple scrollable log view ---------- -- ---------- JPDebugView: a simple scrollable log view ----------
---@class JPDebugView : core.view
local JPDebugView = View:extend() local JPDebugView = View:extend()
function JPDebugView:new(title) function JPDebugView:new(title)
@ -137,7 +124,7 @@ local function run_target(target, name)
return view return view
end end
command.add(nil, { command.add(false, {
["jpdebug:run"] = function() ["jpdebug:run"] = function()
local targets = get_targets() local targets = get_targets()
local target = get_selected_target() local target = get_selected_target()

View File

@ -2,4 +2,4 @@ print("Starting loop: test 123")
for i = 1, 5 do for i = 1, 5 do
print("i =", i) -- we'll stop here print("i =", i) -- we'll stop here
end end
print("Yaaayyyy it works perfectly fine :)")