Duncan Bayne
Duncan Bayne

Reputation: 3949

Static code analysis tool for Common Lisp?

I'm busy learning Common Lisp, & I'm looking for a static code analysis 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.

Upvotes: 11

Views: 2209

Answers (3)

anquegi
anquegi

Reputation: 11522

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/

Upvotes: 1

Xach
Xach

Reputation: 11854

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.

Upvotes: 3

Rainer Joswig
Rainer Joswig

Reputation: 139241

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.

Upvotes: 12

Related Questions