<small id='qiSZr'></small><noframes id='qiSZr'>

    1. <legend id='qiSZr'><style id='qiSZr'><dir id='qiSZr'><q id='qiSZr'></q></dir></style></legend>

        <bdo id='qiSZr'></bdo><ul id='qiSZr'></ul>

        <i id='qiSZr'><tr id='qiSZr'><dt id='qiSZr'><q id='qiSZr'><span id='qiSZr'><b id='qiSZr'><form id='qiSZr'><ins id='qiSZr'></ins><ul id='qiSZr'></ul><sub id='qiSZr'></sub></form><legend id='qiSZr'></legend><bdo id='qiSZr'><pre id='qiSZr'><center id='qiSZr'></center></pre></bdo></b><th id='qiSZr'></th></span></q></dt></tr></i><div id='qiSZr'><tfoot id='qiSZr'></tfoot><dl id='qiSZr'><fieldset id='qiSZr'></fieldset></dl></div>

        <tfoot id='qiSZr'></tfoot>
      1. Sonarqube 扫描错误,行超出范围?

        Sonarqube scan error with line out of range?(Sonarqube 扫描错误,行超出范围?)

            <tbody id='wkjJU'></tbody>
          <legend id='wkjJU'><style id='wkjJU'><dir id='wkjJU'><q id='wkjJU'></q></dir></style></legend>
          <i id='wkjJU'><tr id='wkjJU'><dt id='wkjJU'><q id='wkjJU'><span id='wkjJU'><b id='wkjJU'><form id='wkjJU'><ins id='wkjJU'></ins><ul id='wkjJU'></ul><sub id='wkjJU'></sub></form><legend id='wkjJU'></legend><bdo id='wkjJU'><pre id='wkjJU'><center id='wkjJU'></center></pre></bdo></b><th id='wkjJU'></th></span></q></dt></tr></i><div id='wkjJU'><tfoot id='wkjJU'></tfoot><dl id='wkjJU'><fieldset id='wkjJU'></fieldset></dl></div>
              <bdo id='wkjJU'></bdo><ul id='wkjJU'></ul>

                  <small id='wkjJU'></small><noframes id='wkjJU'>

                1. <tfoot id='wkjJU'></tfoot>
                  本文介绍了Sonarqube 扫描错误,行超出范围?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  [07:43:57]W:[步骤 1/1] 错误:SonarQube 扫描仪执行期间出错

                  [07:43:57]W: [Step 1/1] ERROR: Error during SonarQube Scanner execution

                  [07:43:57]W:[Step 1/1] 错误:第 523 行超出文件范围src/main/java/com/company/package/File.java(行:522)

                  [07:43:57]W: [Step 1/1] ERROR: Line 523 is out of range in the file src/main/java/com/company/package/File.java (lines: 522)

                  由于某种原因,Sonarqube 在第 523 行报告错误,但源文件中只有 522 行?

                  For some reason Sonarqube is reporting an error on line 523 but there is only 522 lines in the source file ?

                  我在以前的文件中看到过这个,但是当我在它的末尾添加一个空行时问题就消失了,这个文件的末尾已经有一个空行.

                  I saw this on a previous file, but when I added a blank line to the end of it the problem went away, this file already has a blank line at the end of it.

                  推荐答案

                  我在使用 sonar maven 插件和 jacoco 测试报告时遇到了同样的问题.mvn sonar:sonar 依赖于现有的 jacoco 报告,当源代码被更改(行已被删除),但测试报告未更新时发生此错误.运行 mvn clean test sonar:sonar 解决了它.

                  I had the same issue when using sonar maven plugin and jacoco test reports. mvn sonar:sonar relies on an existintig jacoco report, when the source code was changed (lines had been removed), but the test report wasn't updated this error occurred. Running mvn clean test sonar:sonar solved it.

                  这篇关于Sonarqube 扫描错误,行超出范围?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Slf4j LoggerFactory.getLogger and sonarqube(Slf4j LoggerFactory.getLogger 和 sonarqube)
                  Security - Array is stored directly(安全性 - 数组直接存储)
                  SonarQube quot;Class Not Foundquot; during Main AST Scan(SonarQube“找不到类在主 AST 扫描期间)
                  Integrate Spock#39;s test with Sonar(将 Spock 的测试与声纳集成)
                  How do I make Hudson/Jenkins fail if Sonar thresholds are breached?(如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?)
                  automatically add curly brackets to all if/else/for/while etc. in a java code-base(自动将大括号添加到 java 代码库中的所有 if/else/for/while 等)
                    • <bdo id='9RdEo'></bdo><ul id='9RdEo'></ul>

                          <tbody id='9RdEo'></tbody>

                          <legend id='9RdEo'><style id='9RdEo'><dir id='9RdEo'><q id='9RdEo'></q></dir></style></legend>
                          1. <i id='9RdEo'><tr id='9RdEo'><dt id='9RdEo'><q id='9RdEo'><span id='9RdEo'><b id='9RdEo'><form id='9RdEo'><ins id='9RdEo'></ins><ul id='9RdEo'></ul><sub id='9RdEo'></sub></form><legend id='9RdEo'></legend><bdo id='9RdEo'><pre id='9RdEo'><center id='9RdEo'></center></pre></bdo></b><th id='9RdEo'></th></span></q></dt></tr></i><div id='9RdEo'><tfoot id='9RdEo'></tfoot><dl id='9RdEo'><fieldset id='9RdEo'></fieldset></dl></div>
                            <tfoot id='9RdEo'></tfoot>

                            <small id='9RdEo'></small><noframes id='9RdEo'>