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

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

      <legend id='W79P8'><style id='W79P8'><dir id='W79P8'><q id='W79P8'></q></dir></style></legend>
      <tfoot id='W79P8'></tfoot>
    1. Sonarqube:是否可以为 javascript 代码调整重复指标?

      Sonarqube: Is it possible to adapt duplication metric for javascript code?(Sonarqube:是否可以为 javascript 代码调整重复指标?)

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

        <tbody id='n4hij'></tbody>

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

            <legend id='n4hij'><style id='n4hij'><dir id='n4hij'><q id='n4hij'></q></dir></style></legend>
                本文介绍了Sonarqube:是否可以为 javascript 代码调整重复指标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                目前,SonarQube 代码中 JavaScript 代码的重复指标定义如下:应该至少有 100 个连续和重复的令牌.这些令牌应该至少分布在 10 行代码中."

                At the moment the duplication metric for JavaScript Code in SonarQube code is defined as followed: "There should be at least 100 successive and duplicated tokens. Those tokens should be spread at least on 10 lines of code."

                有没有办法改变标记的数量和行数?因为我想有 5 行.

                Is there a way to change the nummer of tokens and the number of lines? Since I want to have 5 lines.

                推荐答案

                是的,你应该把这一行放在你的 sonar-project.properties 文件中.

                Yes, you should put this line in your sonar-project.properties file.

                sonar.cpd.js.minimumLines=5
                

                参见 https://docs.sonarqube.org/display/SONAR/Analysis+Parameters#AnalysisParameters-Duplications:

                一段代码只要有至少 100 个连续和重复的令牌(可以用属性 sonar.cpd.${language}.minimumTokens) 至少分布在 10代码行(可以用属性覆盖sonar.cpd.${language}.minimumLines)

                A piece of code is considered as duplicated as soon as there are at least 100 successive and duplicated tokens (can be overridden with property sonar.cpd.${language}.minimumTokens) spread on at least 10 lines of code (can be overridden with property sonar.cpd.${language}.minimumLines)

                这篇关于Sonarqube:是否可以为 javascript 代码调整重复指标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)
                Azure Functions - Import Custom Node Module(Azure Functions - 导入自定义节点模块)
                    <bdo id='loNRd'></bdo><ul id='loNRd'></ul>
                    <legend id='loNRd'><style id='loNRd'><dir id='loNRd'><q id='loNRd'></q></dir></style></legend>
                    <i id='loNRd'><tr id='loNRd'><dt id='loNRd'><q id='loNRd'><span id='loNRd'><b id='loNRd'><form id='loNRd'><ins id='loNRd'></ins><ul id='loNRd'></ul><sub id='loNRd'></sub></form><legend id='loNRd'></legend><bdo id='loNRd'><pre id='loNRd'><center id='loNRd'></center></pre></bdo></b><th id='loNRd'></th></span></q></dt></tr></i><div id='loNRd'><tfoot id='loNRd'></tfoot><dl id='loNRd'><fieldset id='loNRd'></fieldset></dl></div>
                        <tbody id='loNRd'></tbody>

                      <tfoot id='loNRd'></tfoot>

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