<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 - 如何避免“不存在的变量不应被引用"问题

        时间:2023-08-01
          <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 - 如何避免“不存在的变量不应被引用"问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:SonarQube 显示正则表达式拒绝服务 (ReDoS) 下一篇:复杂性大于 AngularJS 控制器中的授权(SonarLint 问题)

                  相关文章

                  • <bdo id='Mv65F'></bdo><ul id='Mv65F'></ul>
                • <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>
                    1. <tfoot id='Mv65F'></tfoot>
                    2. <small id='Mv65F'></small><noframes id='Mv65F'>