如何从命令行执行Google Codepro analytix? [英] How to execute Google Codepro analytix from command line?

查看:51
本文介绍了如何从命令行执行Google Codepro analytix?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从命令行运行 Google CodePro analytix .

Is it possible to run Google CodePro analytix from Command Line.

我要寻找的是从将文件名作为参数传递的shell脚本中运行此脚本,并获取我作为参数传递的文件名在文件级别上生成的所有指标.

What I am looking for is to run this from a shell script passing the file name as a parameter and get all the metrics generated on file level for the filename I passed in as parameter.

是否可以这样做?以及如何?

Is it possible to do so? and How?

是否还有其他工具可以为Java文件提供相同的指标并可以通过Shell脚本执行?

Are there any other tools that can give same metrics for a Java file and be executed from a shell script?

推荐答案

有一个可用于审核以及生成报告的一组代码保护任务.

对于其他工具,还有一个一组针对PMD的蚂蚁任务,以及用于Maven的PMD插件.两者都可以从命令行运行.

As to other tools, there is also a set of ant tasks for PMD as well as a PMD plugin for maven. Both can be run from command line.

类似于Findbugs:可以在此处中找到有关ant任务的说明,以及maven插件此处

Similar for Findbugs : the instructions for the ant task can be found here, and the maven plugin here

在我看来,谷歌购买了这个漂亮的工具只是为了让它死于默默无闻.似乎没有ongoig开发,也没有开源发布.蚂蚁任务没有发布(我没有找到可用的例子).没有Maven插件.我们无法将其集成到我们的构建中,而是回到使用PMD,Findbugs和Sonar.这是一个耻辱.

It seems to me that google purchased this beatiful tool just to let it die of obscurity. There seems to be no ongoig development and no release to open source. The ant tasks are not released (and I have found no usable examples). there is no maven plugin. We were unable to integrate it in our build and are back to using PMD, Findbugs and Sonar. It's a shame.

这篇关于如何从命令行执行Google Codepro analytix?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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