• <bdo id='DDEsB'></bdo><ul id='DDEsB'></ul>

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

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

      1. 使这一行开始于第 9 列声纳违规修复(源代码应一致缩进)

        时间:2024-05-09

            1. <small id='EvwPd'></small><noframes id='EvwPd'>

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

                <tfoot id='EvwPd'></tfoot>
                <legend id='EvwPd'><style id='EvwPd'><dir id='EvwPd'><q id='EvwPd'></q></dir></style></legend>
                    <tbody id='EvwPd'></tbody>
                • <i id='EvwPd'><tr id='EvwPd'><dt id='EvwPd'><q id='EvwPd'><span id='EvwPd'><b id='EvwPd'><form id='EvwPd'><ins id='EvwPd'></ins><ul id='EvwPd'></ul><sub id='EvwPd'></sub></form><legend id='EvwPd'></legend><bdo id='EvwPd'><pre id='EvwPd'><center id='EvwPd'></center></pre></bdo></b><th id='EvwPd'></th></span></q></dt></tr></i><div id='EvwPd'><tfoot id='EvwPd'></tfoot><dl id='EvwPd'><fieldset id='EvwPd'></fieldset></dl></div>
                • 本文介绍了使这一行开始于第 9 列声纳违规修复(源代码应一致缩进)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在修复所有声纳违规问题,我有将近 6k 的问题,例如 Make this line start at column 9" 问题.我尝试添加 java 格式化程序,但它并没有解决问题将我的声纳违规增加到 9k.请告诉我要使用哪种 java 格式化程序,以便它会投诉.

                  I am fixing all the sonar violation fix and I have nearly 6k issue like Make this line start at column 9" issues. I tried adding the java formatter, but it did not resolve the issue instead increase my sonar violation to 9k. Can you please let me know which java formatter to use so it will complaint.

                             <plugin>
                                  <groupId>net.revelc.code</groupId>
                                  <artifactId>formatter-maven-plugin</artifactId>
                                  <version>0.5.2</version>
                              <executions>
                                  <execution>
                                      <goals>
                                          <goal>format</goal>
                                      </goals>
                                  </execution>
                              </executions>
                          </plugin>
                            or 
                  <!--Plugin for formatting the code base -->
                          <plugin>
                              <groupId>com.coveo</groupId>
                              <artifactId>fmt-maven-plugin</artifactId>
                              <version>1.0.0</version>
                              <executions>
                                  <execution>
                                      <goals>
                                          <goal>format</goal>
                                      </goals>
                                  </execution>
                              </executions>
                          </plugin>
                  

                  这两种格式我都试过了,都没有解决问题,反而增加了问题.这个规则说源代码应该一致地缩进.格式化程序正在处理这个已经不确定为什么会发生这种违规行为.规则说缩进应该是一致的,而且是一致的.

                  I have tried both of these formaters, both did not resolve the issue instead increased the issue. The rule for this says Source code should be indented consistently. The formatter is taking care of this already not sure why this violation is happening. The rules says the indent should be consistent and it is consistent.

                  推荐答案

                  所以这有点老了,但我想我会继续回答未来.列是

                  So this is a little old but I thought I would go ahead and answer for the future. the columns are

                  12345

                  为此,我相信将缩进设置为 2 并重新格式化应该可以解决所有问题.

                  For this I believe setting your indentation to 2 and reformatting should fix everything.

                  这篇关于使这一行开始于第 9 列声纳违规修复(源代码应一致缩进)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:从我的 java 程序调用声纳 下一篇:Bamboo + sonar.dynamicAnalysis=reuseReports = 0% 规则合规性

                  相关文章

                    • <bdo id='QBjM6'></bdo><ul id='QBjM6'></ul>

                    <legend id='QBjM6'><style id='QBjM6'><dir id='QBjM6'><q id='QBjM6'></q></dir></style></legend>

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

                    2. <tfoot id='QBjM6'></tfoot>