Where is line based SCM blame information stored?

倾然丶 夕夏残阳落幕 提交于 2019-12-20 05:52:43

问题


I can see line based SCM blame information in UI, but where is it stored and how can I retrieve through web API?

I am using Perforce plugin.

The issue is that the Perforce plugin finds the blame information from history, and because of that if a user has created a debt in a past branch, it still shows on his name in the current branch analysis.

The Perforce plugin does not have any such way to disable looking into history beyond the current branch.

I need to find another way to find out, if the debt is really introduced in this branch or not.


回答1:


The real question here is how to find out this:

I need to find another way to find out, if the debt is really introduced in this branch or not.

The right way to do this has nothing to do with filtering out blame information and/or disable looking into history beyond the current branch.

The right approach to solve that use-case (is debt really introduced in this branch or not) is to set the Leak Period to the 'origin' of the branch. The SonarQube Project Space will then constantly give you the status of your project compared to that baseline (i.e. New Bugs, New Debt, Coverage on New Code etc. see Leak Period yellow pane on the right).



来源:https://stackoverflow.com/questions/39010513/where-is-line-based-scm-blame-information-stored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!