fix(runners): ignore undefined globals
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run(
|
||||
{ specs, p, term },
|
||||
@@ -7,3 +8,4 @@ run(
|
||||
{ overwrite, string.format("extras/alacritty/%s.yml", name) }
|
||||
)
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
@@ -88,6 +88,8 @@ local function to_iterm(colorscheme)
|
||||
return { template }
|
||||
end
|
||||
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run({ specs, term }, to_iterm, { overwrite, string.format("extras/iterm/%s.itermcolors", name) })
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run(
|
||||
{ specs, p, term },
|
||||
@@ -20,3 +21,4 @@ run(
|
||||
{ overwrite, string.format("extras/kitty/%s.conf", name) }
|
||||
)
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
@@ -83,6 +83,7 @@ local function specs_to_colors(colorscheme)
|
||||
}
|
||||
end
|
||||
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run(
|
||||
{ specs, name },
|
||||
@@ -92,3 +93,4 @@ run(
|
||||
{ overwrite, string.format("autoload/lightline/colorscheme/%s.vim", name) }
|
||||
)
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
@@ -73,6 +73,7 @@ local function specs_to_colors(specs)
|
||||
}
|
||||
end
|
||||
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run(
|
||||
specs,
|
||||
@@ -82,3 +83,4 @@ run(
|
||||
{ overwrite, string.format("lua/lualine/themes/%s.lua", name) }
|
||||
)
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
@@ -19,6 +19,7 @@ set -g mode-style fg='$black',bg='$selection_bg'
|
||||
|
||||
local helpers = require "shipwright.transform.helpers"
|
||||
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run(
|
||||
{ specs, p, term },
|
||||
@@ -31,3 +32,4 @@ run(
|
||||
{ overwrite, string.format("extras/tmux/%s.tmux", name) }
|
||||
)
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
@@ -28,6 +28,7 @@ end
|
||||
|
||||
local lushwright = require "shipwright.transform.lush"
|
||||
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run(
|
||||
specs,
|
||||
@@ -41,6 +42,7 @@ run(
|
||||
{ overwrite, string.format("autoload/zenbones/generated/%s.vim", name) }
|
||||
)
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
local function remove_italics(specs)
|
||||
local italic_specs = {}
|
||||
@@ -52,6 +54,7 @@ local function remove_italics(specs)
|
||||
return vim.fn.sort(italic_specs)
|
||||
end
|
||||
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run(
|
||||
specs,
|
||||
@@ -64,3 +67,4 @@ run(
|
||||
}
|
||||
)
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: undefined-global
|
||||
-- selene: allow(undefined_variable)
|
||||
run(
|
||||
{ specs, p, term },
|
||||
@@ -12,3 +13,4 @@ run(
|
||||
{ overwrite, string.format("extras/wezterm/%s.toml", name:sub(1, 1):upper() .. name:sub(2)) }
|
||||
)
|
||||
-- selene: deny(undefined_variable)
|
||||
---@diagnostic enable: undefined-global
|
||||
|
||||
Reference in New Issue
Block a user