Skip to content

Commit

Permalink
Clean luacheck warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Feb 15, 2023
1 parent db9e3ff commit 52fa7c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions completions/gsudo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ end
require('arghelper')

-- luacheck: no max line length
-- luacheck: globals string.equalsi

local integrity = clink.argmatcher():addarg({'Untrusted', 'Low', 'Medium', 'MediumPlus', 'High', 'System' })
local username = clink.argmatcher():addarg({fromhistory=true})
Expand Down Expand Up @@ -81,7 +82,7 @@ local function parse_words(line_state)
return nw, cwi + 1
end

function gen:generate(line_state, match_builder)
function gen:generate(line_state, match_builder) -- luacheck: no unused
local nw, nwi = parse_words(line_state)
if not nw then
return
Expand Down Expand Up @@ -124,7 +125,7 @@ end

local clf = clink.classifier(1)

function clf:classify(commands)
function clf:classify(commands) -- luacheck: no unused
local none = settings.get('color.unexpected')
for _, c in ipairs(commands) do
local ls = c.line_state
Expand Down

0 comments on commit 52fa7c2

Please sign in to comment.