简体   繁体   English

MVN声纳仪器分析过类吗

[英]Does mvn sonar instrument analysed classes

What exactly does mvn sonar:sonar ? mvn sonar:sonar到底是什么? does it instrument classes to measure code coverage? 它可以用来测量代码覆盖率的类吗? or it just sends sources to the server? 还是只是将源发送到服务器?

to sum it up: can i safely do mvn verify sonar:sonar deploy and be sure my package is not instrumented in any way? 总结一下:我可以安全地通过mvn verify sonar:sonar deploy并确保未以任何方式检测我的软件包吗?

@piotek, in any case it's highly recommended (see Sonar documentation) to do the analysis in two steps : @piotek,无论如何强烈建议(请参阅Sonar文档)分两个步骤进行分析:

  • First : 'mvn clean install' or 'mvn verify deploy' in your case 首先:根据情况选择“ MVN全新安装”或“ MVN验证部署”
  • Second : 'mvn sonar:sonar' 第二:“ MVN声纳:声纳”

And to answer to your question, Sonar is analysing both the java source code and the bytecode. 为了回答您的问题,Sonar正在分析Java源代码和字节码。 Moreover in case of usage of Cobertura, the source code is instrumented. 此外,在使用Cobertura的情况下,将对源代码进行检测。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM