Common Lisp的静态代码分析工具? [英] Static code analysis tool for Common Lisp?

查看:76
本文介绍了Common Lisp的静态代码分析工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习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.

我发现 Lisp评论家,我认为它看起来不错,但我希望某人也许可以推荐其他工具,和/或与他们分享经验.

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.

推荐答案

鉴于Lisp的动态特性,根据源代码的类型,静态分析是从艰难到不可能的一切.

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

出于某些目的,我建议使用SBCL编译器.查看其手册以了解其提供的功能.功能之一是某种形式的类型推断.它还为未声明的变量,类型问题,使用错误数量的args调用函数,使用未定义函数,以各种方式违反ANSI CL标准等提供了许多标准警告.

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.

这篇关于Common Lisp的静态代码分析工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆