Skip to content

Commit 59641f5

Browse files
committed
exclude _
1 parent 1eb666d commit 59641f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

script/core/diagnostics/helper/missing-doc-helper.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ local function checkFunction(source, callback, commentId, paramId, returnId)
5151
if argCount > 0 then
5252
for _, arg in ipairs(source.args) do
5353
local argName = arg[1]
54-
if argName ~= 'self' then
54+
if argName ~= 'self'
55+
and argName ~= '_' then
5556
if not findParam(source.bindDocs, argName) then
5657
callback {
5758
start = arg.start,

script/core/diagnostics/incomplete-signature-doc.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ return function (uri, callback)
8181
if source.args and #source.args > 0 then
8282
for _, arg in ipairs(source.args) do
8383
local argName = arg[1]
84-
if argName ~= 'self' then
84+
if argName ~= 'self'
85+
and argName ~= '_' then
8586
if not findParam(source.bindDocs, argName) then
8687
callback {
8788
start = arg.start,

0 commit comments

Comments
 (0)