Replies: 2 comments 1 reply
-
在这一行上面加个注解禁用下一行的诊断。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
比较多, 第二种会产生新的全局变量告警吧= =。
luacheck, 可以有个配置文件, 针对每个告警类型的不同写法都可以做屏蔽。 有没有可能做这种细力度的支持?
如果再luacheck中, 大概是可以这样做屏蔽.
"deprecated/table.unpack"
类似。
最萌小汐 ***@***.***> 于2023年2月13日周一 17:58写道:
… 在这一行上面加个注解禁用下一行的诊断。
如果地方太多的话在某个初始化的地方写一下 unpack = unpack or table.unpack,然后其他地方就不用这么写了。
—
Reply to this email directly, view it on GitHub
<#1909 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADKBAWMT4L4QAC3MVAMCD3DWXIAVBANCNFSM6AAAAAAU2AFNL4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
项目需要, 会写出以下这类兼容的代码。 有没有什么好办法, 只屏蔽table.unpack的deprecated告警?
local unpack = unpack or table.unpack
Beta Was this translation helpful? Give feedback.
All reactions