【问题标题】:How can I ignore generated code in Sonar?如何忽略 Sonar 中生成的代码?
【发布时间】:2015-12-06 01:27:14
【问题描述】:

我想忽略生成的 Java 源代码文件。不是文件名或模块名,而是文件本身的一些“信号文本”。例如。当源代码文件包含注释/行说

/**
* This file was auto-generated from WSDL
* by the IBM Web services WSDL2Java emitter.
* cf10631.06 v81706232132
*/

更好的办法是将这些文件的所有代码行数计为生成的代码行数。

我现在才找到this article

任何想法如何解决这个问题?任何指针表示赞赏。

【问题讨论】:

    标签: sonarqube


    【解决方案1】:

    目前这是不可能的。您可以关注并投票给https://jira.sonarsource.com/browse/SONAR-4972

    编辑:问题以“不会修复”作为“将在每个语言插件上完成的工作”关闭

    目前,您只能忽略生成文件的问题:http://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreIssues

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-29
      • 1970-01-01
      • 2020-10-06
      • 2021-11-24
      • 2010-11-04
      • 1970-01-01
      • 2016-10-31
      • 2020-07-10
      相关资源
      最近更新 更多