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

    1. <small id='19DdS'></small><noframes id='19DdS'>

      1. Ncss 类型计数违规

        Ncss Type Count violation(Ncss 类型计数违规)
        <i id='fcE6f'><tr id='fcE6f'><dt id='fcE6f'><q id='fcE6f'><span id='fcE6f'><b id='fcE6f'><form id='fcE6f'><ins id='fcE6f'></ins><ul id='fcE6f'></ul><sub id='fcE6f'></sub></form><legend id='fcE6f'></legend><bdo id='fcE6f'><pre id='fcE6f'><center id='fcE6f'></center></pre></bdo></b><th id='fcE6f'></th></span></q></dt></tr></i><div id='fcE6f'><tfoot id='fcE6f'></tfoot><dl id='fcE6f'><fieldset id='fcE6f'></fieldset></dl></div>
          <tbody id='fcE6f'></tbody>
      2. <tfoot id='fcE6f'></tfoot>

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

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

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

                1. 本文介绍了Ncss 类型计数违规的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我不太清楚 PMD 提出的这种违规行为.基本上我有两个问题:

                  1. 我应该怎么做才能摆脱这种违规行为?

                  2. 以下语句是什么意思?

                  <块引用>

                  该类型的 NCSS 行数为 944 个参数
                  最小值:类型 NCSS 计数报告阈值:默认为 1500.

                  解决方案

                  PMD 代码大小规则.

                  NCSS 代表非注释源代码行.具有高 NCSS 计数的方法和/或类(在非常高的级别)太长,并且可能会被拆分.大量的 NCSS 是不好的.

                  此外,听起来您可能正在使用 Sonar 2.10 或更低版本,如 Sonar Bug 2676 已在 2.11 中修复.

                  I'm not really clear with this violation raised by PMD. Basically I have 2 questions:

                  1. What should I do to get rid of this violation?

                  2. What does the following statement mean?

                  The type has an NCSS line count of 944 Parameters
                  minimum: The type NCSS count reporting threshold: Default is 1500.

                  解决方案

                  PMD Code size rules.

                  NCSS stands for Non-Commented Source Code lines. Methods and/or classes that have high NCSS counts are (at a very high level) too long, and can probably be split up. High numbers of NCSS are bad.

                  Additionally, it sounds like you might be using Sonar version 2.10 or prior, as Sonar Bug 2676 was fixed in 2.11.

                  这篇关于Ncss 类型计数违规的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='DMPB4'></bdo><ul id='DMPB4'></ul>
                    <i id='DMPB4'><tr id='DMPB4'><dt id='DMPB4'><q id='DMPB4'><span id='DMPB4'><b id='DMPB4'><form id='DMPB4'><ins id='DMPB4'></ins><ul id='DMPB4'></ul><sub id='DMPB4'></sub></form><legend id='DMPB4'></legend><bdo id='DMPB4'><pre id='DMPB4'><center id='DMPB4'></center></pre></bdo></b><th id='DMPB4'></th></span></q></dt></tr></i><div id='DMPB4'><tfoot id='DMPB4'></tfoot><dl id='DMPB4'><fieldset id='DMPB4'></fieldset></dl></div>
                      <tbody id='DMPB4'></tbody>
                  • <tfoot id='DMPB4'></tfoot>

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

                        • <small id='DMPB4'></small><noframes id='DMPB4'>