从声纳中的代码验证跳过旧代码 [英] Skipping old code from code validation in sonar

查看:75
本文介绍了从声纳中的代码验证跳过旧代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个方案,其中有一个.net项目,并且其中包含一些旧代码。

We have a scenario where we got a .net project and it has some old code.

现在,我们开始对此进行声纳代码验证,但不幸的是,我们得到了

Now, we started implementing sonar code validation on this and unfortunately we got many validation issues from old code which is not written by us.

因此,根据协议,我们不应解决这些问题。

So, as per the agreement we are not supposed tho fix those issues.

旧代码和当前代码在SVN存储库中可用。

Old and current code is available in SVN repository.

是否有可能跳过基于SVN修订版的旧代码并执行代码

Is there any posssiblity to skip the old code based on SVN revision and performing the code validation only on the top of baseline changes?

推荐答案

目前唯一可行的方法是:

The only good way to do that for the moment is to:


  • 分析SonarQube中现有的代码库

  • 在其上设置版本(在项目配置>历史记录中),例如 BASE_LINE

  • 在差异期间指定此版本,以便将所有即将进行的分析与该基准进行比较

这篇关于从声纳中的代码验证跳过旧代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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