<tfoot id='s25fD'></tfoot>

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

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

          <bdo id='s25fD'></bdo><ul id='s25fD'></ul>
      1. SonarJS - 如何避免“不存在的变量不应被引用"问题

        SonarJS - how to avoid quot;Non-existent variables should not be referencedquot; issue(SonarJS - 如何避免“不存在的变量不应被引用问题)
          <bdo id='zpsF0'></bdo><ul id='zpsF0'></ul>

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

            <tbody id='zpsF0'></tbody>

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

                  本文介绍了SonarJS - 如何避免“不存在的变量不应被引用"问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个包含多个源文件的 JavaScript 项目.这些文件在 index.html 页面的 <script> 标记中被引用.这些源文件中定义了函数和变量,并在其他源文件中使用.问题是 Sonar 将这些文件视为独立的,我得到了

                  I have a JavaScript project that consists of several source files. These files are referenced in <script> tags in index.html page. There are functions and variables defined in those source files and used in other source files. The problem is that Sonar treats those files as independent and I got

                  不应引用不存在的变量 (javascript:S3827)

                  Non-existent variables should not be referenced (javascript:S3827)

                  问题.任何人都可以帮助如何避免这种情况?

                  issue. Can anybody help how to avoid this?

                  谢谢

                  帕维尔

                  推荐答案

                  此规则需要配置.列出sonar.javascript.globals"项目属性中文件之间共享的变量和函数的名称.

                  This rule requires configuration. List names of variables and functions shared across files in "sonar.javascript.globals" project property.

                  这篇关于SonarJS - 如何避免“不存在的变量不应被引用"问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='Mv65F'></bdo><ul id='Mv65F'></ul>
                      <tbody id='Mv65F'></tbody>

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