Skip to content

Commit

Permalink
no_unused_globalの指定忘れがあったので修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatakinov committed Jul 7, 2022
1 parent 4512b5c commit 5a745cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yayalint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ local function recursive(scope, gv, upper, filename, funcname, global, opt)
gv[v].write = true
if global then
if isFunc(col) then
if not(args.nounused) and not(args.noglobal) then
if not(args.nounused) and not(args.noglobal) and not(args.no_unused_global) then
if not(UserDefined.isUserUsedFunction(v)) then
output:append(table.concat({"unused function:", v, "at", filename, "pos:", col.line .. ":" .. col.col}, OutputSep)):append(NewLine)
end
Expand Down

0 comments on commit 5a745cd

Please sign in to comment.