是否有任何工具可以执行Scala代码的静态分析? [英] Are there any tools for performing static analysis of Scala code?

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

问题描述

是否有任何工具可用于执行Scala代码的静态分析,类似于FindBugs和PMD for Java或Splint for C / C ++?我知道FindBugs适用于编译Java产生的字节码,所以我很好奇它如何在Scala上工作。



谷歌搜索(截至2009年10月27日)显示非常少。



谷歌搜索(截至2010年2月1日)揭示了这个问题。

方案

FindBugs分析JVM字节代码,无论生成它们的工具如何。我试着用FindBugs来检查由Scala生成的.class文件。不幸的是,FindBugs产生了很多警告,即使对于微不足道的Scala程序也是如此。


Are there any tools for performing static analysis of Scala code, similar to FindBugs and PMD for Java or Splint for C/C++? I know that FindBugs works on the bytecode produced by compiling Java, so I'm curious as to how it would work on Scala.

Google searches (as of 27 October 2009) reveal very little.

Google searches (as of 01 February 2010) reveal this question.

解决方案

FindBugs analyzes JVM byte codes, regardless of the tool that generated them. I've tried using FindBugs to check .class files generated by Scala. Unfortunately, FindBugs produced many warnings, even for trivial Scala programs.

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

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