开发者

Static code analysis tool for Common Lisp?

开发者 https://www.devze.com 2023-03-06 02:37 出处:网络
I\'m busy learning Common Lisp, & I\'m looking for a static code anal开发者_运维百科ysis tool that will help me develop better style & avoid falling into common traps.

I'm busy learning Common Lisp, & I'm looking for a static code anal开发者_运维百科ysis tool that will help me develop better style & avoid falling into common traps.

I've found Lisp Critic and I think it looks good, but I was hoping that someone may be able to recommend some other tools, and / or share their experiences with them.


Given the dynamic nature of Lisp, static analysis is everything from tough to impossible, depending on the type of source code.

For some purposes I would recommend using the SBCL compiler. Check out its manual for what features it provides. One feature is some form of type inference. It provides also a lot of standard warnings for things like undeclared variables, type problems, calling functions with the wrong number of args, using undefined functions, violating the ANSI CL standard in various ways and more.


The best way to learn about good style is to read a lot of code and ask for others to review your code. This isn't something that's specific to Common Lisp.


I think that one gray tool is use lisp-critic, you can get some information here:

http://quickdocs.org/lisp-critic/

and a remake that was done by @Xach

http://xach.com/lisp/

0

精彩评论

暂无评论...
验证码 换一张
取 消