Static code analysis tool for Common Lisp?

后端 未结 3 1072
陌清茗
陌清茗 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条回答
  • 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 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-20 11:42

    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.

    0 讨论(0)
提交回复
热议问题