Sonarqube - 最后的分析失败了。有关详细信息,请参阅“后台任务”页面

时间:2018-04-18 10:37:42

标签: java sonarqube analysis

我试图使用Sonarqube分析我们的代码库。在重构特定文件" ReportHelper.java"后,最后一次分析失败。

Caused by: java.lang.IllegalStateException: Fail to process issues of
    component
    'com.vls.nost:Nost_business:src/main/java/com/velos/nost/business/helper/ReportHelper.java'
        at
    org.sonar.server.computation.task.projectanalysis.issue.IntegrateIssuesVisitor.visitAny(IntegrateIssuesVisitor.java:70)
        at
    org.sonar.server.computation.task.projectanalysis.component.TypeAwareVisitorWrapper.visitAny(TypeAwareVisitorWrapper.java:82)
        at
    org.sonar.server.computation.task.projectanalysis.component.VisitorsCrawler.visitNode(VisitorsCrawler.java:117)
        at
    org.sonar.server.computation.task.projectanalysis.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:100)
        at
    org.sonar.server.computation.task.projectanalysis.component.VisitorsCrawler.visit(VisitorsCrawler.java:72)
        ... 26 more Caused by: java.lang.IllegalStateException: Source of
    file
    'ComponentImpl{key='com.velos.nostradamus:Nostradamus_business:src/main/java/com/vls/nost/business/helper/ReportHelper.java',
    type=FILE, uuid='AWKq2KypGCJ2XfmqS536',
    name='com.vls.nostradamus:Nostradamus_business:src/main/java/com/vls/nost/business/helper/nost.java',
    description='null', fileAttributes=FileAttributes{languageKey='java',
    unitTest=false, lines=3611}, reportAttributes=ReportAttributes{ref=67,
    version='null',
    path='src/main/java/com/vls/nost/business/helper/ReportHelper.java',
    scmPath='business/src/main/java/com/velos/nost/business/helper/ReportHelper.java'}}'
    has less lines (3512) than the expected number (3611)

不确定,为什么行数不应该小于重构后的预期数量?另外,我想知道Sonar如何达到预期的数字?

非常感谢任何帮助?

0 个答案:

没有答案