modxcms/revolution

View on GitHub

Showing 4,334 of 7,873 total issues

File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Setting English lexicon topic
 *
 * @language en
Severity: Major
Found in core/lexicon/th/setting.inc.php - About 1 day to fix

    File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Setting English lexicon topic
     *
     * @language en
    Severity: Major
    Found in core/lexicon/ru/setting.inc.php - About 1 day to fix

      File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * Setting English lexicon topic
       *
       * @language en
      Severity: Major
      Found in core/lexicon/he/setting.inc.php - About 1 day to fix

        File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Setting English lexicon topic
         *
         * @language en
        Severity: Major
        Found in core/lexicon/de/setting.inc.php - About 1 day to fix

          File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * Setting English lexicon topic
           *
           * @language en
          Severity: Major
          Found in core/lexicon/el/setting.inc.php - About 1 day to fix

            File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * Setting English lexicon topic
             *
             * @language en
            Severity: Major
            Found in core/lexicon/yo/setting.inc.php - About 1 day to fix

              File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * Setting English lexicon topic
               *
               * @language en
              Severity: Major
              Found in core/lexicon/id/setting.inc.php - About 1 day to fix

                File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /**
                 * Setting English lexicon topic
                 *
                 * @language en
                Severity: Major
                Found in core/lexicon/fr/setting.inc.php - About 1 day to fix

                  File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Setting English lexicon topic
                   *
                   * @language en
                  Severity: Major
                  Found in core/lexicon/ro/setting.inc.php - About 1 day to fix

                    File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * Setting English lexicon topic
                     *
                     * @language en
                    Severity: Major
                    Found in core/lexicon/pl/setting.inc.php - About 1 day to fix

                      File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * Setting English lexicon topic
                       *
                       * @language en
                      Severity: Major
                      Found in core/lexicon/fi/setting.inc.php - About 1 day to fix

                        File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * Setting English lexicon topic
                         *
                         * @language en
                        Severity: Major
                        Found in core/lexicon/sl/setting.inc.php - About 1 day to fix

                          File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          /**
                           * Setting English lexicon topic
                           *
                           * @language en
                          Severity: Major
                          Found in core/lexicon/pt/setting.inc.php - About 1 day to fix

                            File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            /**
                             * Setting English lexicon topic
                             *
                             * @language en
                            Severity: Major
                            Found in core/lexicon/uk/setting.inc.php - About 1 day to fix

                              File setting.inc.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              /**
                               * Setting English lexicon topic
                               *
                               * @language en
                              Severity: Major
                              Found in core/lexicon/sv/setting.inc.php - About 1 day to fix

                                Method parseSchema has 265 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function parseSchema($schemaFile, $outputDir= '', $compile= false) {
                                        $this->schemaFile= $schemaFile;
                                        $this->classTemplate= $this->getClassTemplate();
                                        if (!is_file($schemaFile)) {
                                            $this->manager->xpdo->log(xPDO::LOG_LEVEL_ERROR, "Could not find specified XML schema file {$schemaFile}");
                                Severity: Major
                                Found in core/xpdo/om/xpdogenerator.class.php - About 1 day to fix

                                  Function JSON has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  Ext.util.JSON = new (function(){
                                      var useHasOwn = !!{}.hasOwnProperty,
                                          isNative = Ext.USE_NATIVE_JSON && JSON && JSON.toString() == '[object JSON]';
                                  
                                      // crashes Safari in some instances
                                  Severity: Minor
                                  Found in setup/assets/js/ext-core-debug.js - About 1 day to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Function compile has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
                                      {
                                          $compiler->loopNesting++;
                                          // init
                                          $this->isNamed = false;
                                  Severity: Minor
                                  Found in core/model/smarty/sysplugins/smarty_internal_compile_foreach.php - About 1 day to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Function Ajax has 264 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      Ext.lib.Ajax = function() {        
                                          var activeX = ['MSXML2.XMLHTTP.3.0',
                                                         'MSXML2.XMLHTTP',
                                                         'Microsoft.XMLHTTP'];
                                                         
                                  Severity: Major
                                  Found in setup/assets/js/ext-core-debug.js - About 1 day to fix

                                    File modx.grid.settings.js has 606 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    MODx.grid.SettingsGrid = function(config) {
                                        config = config || {};
                                        this.exp = new Ext.grid.RowExpander({
                                            tpl : new Ext.XTemplate(
                                                '<p class="desc">{[MODx.util.safeHtml(values.description_trans)]}</p>'
                                    Severity: Major
                                    Found in manager/assets/modext/widgets/core/modx.grid.settings.js - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language