Static code analysis tool for Common Lisp?

后端 未结 3 1345
陌清茗
陌清茗 2021-02-20 11:05

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 fo

3条回答
  •  轮回少年
    2021-02-20 11:33

    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.

提交回复
热议问题