Tencent / TscanCode

A static code analyzer for C++, C#, Lua
Other
2k stars 589 forks source link

检测lua,对于操作空对象不提示错误 #74

Open han-zang opened 2 years ago

han-zang commented 2 years ago

源码: local a a = a + 1

执行: ./tsclua tt.lua

输出: tokenize... [tokenize][1/1] /home/zh/TscanCode/release/linux/TscLua/tt.lua analyze entry file... check... [preRuleAnalyze][1/9] uninitvar [preRuleAnalyze][2/9] OrTrue [preRuleAnalyze][3/9] intercall [preRuleAnalyze][4/9] CheckOther [preRuleAnalyze][5/9] Style [preRuleAnalyze][6/9] scope [preRuleAnalyze][7/9] CheckOther2 [preRuleAnalyze][8/9] logic [preRuleAnalyze][9/9] CheckGlobalVar [check][1/1] /home/zh/TscanCode/release/linux/TscLua/tt.lua [checkrule][1/9] uninitvar [checkrule][2/9] OrTrue [checkrule][3/9] intercall [checkrule][4/9] CheckOther [checkrule][5/9] Style [checkrule][6/9] scope [checkrule][7/9] CheckOther2 [checkrule][8/9] logic [checkrule][9/9] CheckGlobalVar done...