Giter Club home page Giter Club logo

Comments (3)

ben620 avatar ben620 commented on May 19, 2024

lua中调用一个不存在的函数,工具不会给出提示。

目前不能 。工具区分了函数和变量。重点处理了变量的问题。
因为lua组要和其他语言配合使用,lua中未定义的函数不见得函数是没有定义的。
统计了很多项目的使用情况,才做出这种策略

from tscancode.

kona8 avatar kona8 commented on May 19, 2024

这款工具可以发现许多代码问题,效果挺好的。但是对table的检测似乎不是很强大,比如对table中不存在的成员的使用不会报错,经常由于笔误写错检测不出来。
另外对于lua_SingleScopeGlobal选项有些疑惑,在a.lua中定义一个全局table和成员,在b.lua中使用,检测会不能通过。

from tscancode.

ben620 avatar ben620 commented on May 19, 2024

table的检查有一条规则。检测能力比较弱。
另外一条table相关检查规则再内部试用了,后续会对外更新。
lua_SingleScopeGlobal这个规则实现有些问题,方便的话可以提供协议代码示例,帮助我们改进

from tscancode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.