简体   繁体   English

声纳时间范围之间的代码行

[英]lines of code between time frame in sonar

我想知道Sonar是否可以提供在给定时间范围内更改/插入/更新的代码行的报告?

Out of the box, Sonar can't really do this: it will tell you if the total of lines has changed, but eg, if you were to remove 1000 lines, change 1000 lines and add 1000 lines, Sonar would see that the total number of lines is the same, so no obvious change (on that metric anyway). 开箱即用,Sonar不能真正做到这一点:它会告诉您行总数是否已更改,但是例如,如果您要删除1000行,更改1000行并添加1000行,Sonar会看到总数行数是相同的,因此没有明显变化(无论如何,对于该指标)。

You can get some information with the SCM Activity Plugin , and more with Sonar 2.5 (which seems to add better support for differential measures). 您可以通过SCM活动插件获得一些信息,而通过Sonar 2.5获得更多的信息(这似乎为差异测量提供了更好的支持)。 But I'm not sure if it will be completely what you are looking for; 但是我不确定这是否完全是您要寻找的东西。 I can't tell what the full set of metrics is. 我不知道完整的指标是什么。 Nonetheless, that's where I would focus effort for improvements if I were you. 但是,如果您是我,那就是我将集中精力进行改进的地方。

For a more detailed report on changes of this nature you should be able to get the information directly from your version control system. 有关这种性质的更改的更详细的报告,您应该能够直接从版本控制系统中获取信息。

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

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