• <small id='7UmIP'></small><noframes id='7UmIP'>

      <bdo id='7UmIP'></bdo><ul id='7UmIP'></ul>
      <legend id='7UmIP'><style id='7UmIP'><dir id='7UmIP'><q id='7UmIP'></q></dir></style></legend>

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

        在 Sonar 中,如何防止检查某些包中的某些规则?

        In Sonar, how to prevent checking some rules in some packages?(在 Sonar 中,如何防止检查某些包中的某些规则?)
          <i id='UfwsN'><tr id='UfwsN'><dt id='UfwsN'><q id='UfwsN'><span id='UfwsN'><b id='UfwsN'><form id='UfwsN'><ins id='UfwsN'></ins><ul id='UfwsN'></ul><sub id='UfwsN'></sub></form><legend id='UfwsN'></legend><bdo id='UfwsN'><pre id='UfwsN'><center id='UfwsN'></center></pre></bdo></b><th id='UfwsN'></th></span></q></dt></tr></i><div id='UfwsN'><tfoot id='UfwsN'></tfoot><dl id='UfwsN'><fieldset id='UfwsN'></fieldset></dl></div>
            <tbody id='UfwsN'></tbody>
        1. <tfoot id='UfwsN'></tfoot>
          • <bdo id='UfwsN'></bdo><ul id='UfwsN'></ul>

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

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

                  本文介绍了在 Sonar 中,如何防止检查某些包中的某些规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们有一个带有公共部分的 Android/Blackberry 项目.显然,这部分是为编译到 Android 和 Blackberry 目标而编写的,因此不能使用一些较新的 Java 功能(例如,Integer.valueOf).我想跳过一些专门针对该部分的规则.有没有办法做到这一点?

                  解决方案

                  如果您将公共部分分离到自己的项目中,您可以添加新的 Sonar 中的质量配置文件(您在其中停用了这些规则)并将其分配给您的公共项目.

                  除此之外,您还可以使用

                  //NOSONAR

                  在一行中取消警告(请参阅常见问题解答).p>

                  We have an Android/Blackberry project with a common part. That part, obviously, is written to compile to both Android and Blackberry targets, and, consequently, cannot use some of the newer Java features (e.g., Integer.valueOf). I'd like to skip some of the rules specifically for that part. Is there a way to do this?

                  解决方案

                  If you separate the common part to an own project you can add a new Quality Profile in Sonar (where you deactivated these rules) and assign it to your common project.

                  Apart from that you can use the

                  // NOSONAR
                  

                  comment to supress a warning on a single line (see FAQ).

                  这篇关于在 Sonar 中,如何防止检查某些包中的某些规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

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

                        <tbody id='Qx41L'></tbody>
                    1. <tfoot id='Qx41L'></tfoot>

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

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

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