qcubed/framework

View on GitHub

Showing 2,378 of 15,774 total issues

File jquery-ui.custom.js has 12461 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery UI - v1.11.1 - 2014-09-21
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.js, tooltip.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */

Severity: Major
Found in assets/js/jquery/jquery-ui.custom.js - About 1 mo to fix

    File jquery.js has 6829 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery JavaScript Library v1.11.1
     * http://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in assets/js/jquery/jquery.js - About 2 wks to fix

      Function Sizzle has 1347 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      (function( window ) {
      
      var i,
          support,
          Expr,
      Severity: Major
      Found in assets/js/jquery/jquery.js - About 6 days to fix

        File QQuery.class.php has 1814 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
            /*
            *    QQuery.class.php
            *
        Severity: Major
        Found in includes/framework/QQuery.class.php - About 4 days to fix

          Function TriggerActions has a Cognitive Complexity of 225 (exceeds 5 allowed). Consider refactoring.
          Open

                  protected function TriggerActions($strControlIdOverride = null) {
                      if (array_key_exists('Qform__FormControl', $_POST)) {
                          if ($strControlIdOverride) {
                              $strControlId = $strControlIdOverride;
                          } else {
          Severity: Minor
          Found in includes/base_controls/QFormBase.class.php - About 4 days 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 AnalyzeTable has a Cognitive Complexity of 180 (exceeds 5 allowed). Consider refactoring.
          Open

                  protected function AnalyzeTable(QSqlTable $objTable) {
                      // Setup the Table Object
                      $objTable->OwnerDbIndex = $this->intDatabaseIndex;
                      $strTableName = $objTable->Name;
                      $objTable->ClassName = $this->ModelClassName($strTableName);
          Severity: Minor
          Found in includes/codegen/QDatabaseCodeGen.class.php - About 3 days 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

          File QControlBase.class.php has 1201 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
              /**
               * QControlBase is the base class of all QControls and shares their common properties.
               * 
               * Not every control will utilize every single one of these properties.
          Severity: Major
          Found in includes/base_controls/QControlBase.class.php - About 3 days to fix

            File QDataGridLegacyBase.class.php has 1026 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
                /**
                 * This file contains the QDataGridBase and QDataGridRow class.
                 *
                 * @package Controls
            Severity: Major
            Found in includes/base_controls/QDataGridLegacyBase.class.php - About 2 days to fix

              File QDatabaseCodeGen.class.php has 1020 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
                  require(__QCUBED_CORE__ . '/codegen/QSqlColumn.class.php');
                  require(__QCUBED_CORE__ . '/codegen/QIndex.class.php');
                  require(__QCUBED_CORE__ . '/codegen/QManyToManyReference.class.php');
                  require(__QCUBED_CORE__ . '/codegen/QReference.class.php');
              Severity: Major
              Found in includes/codegen/QDatabaseCodeGen.class.php - About 2 days to fix

                File QFormBase.class.php has 1008 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                    /**
                     * This file contains the QFormBase class.
                     *
                     * @package Controls
                Severity: Major
                Found in includes/base_controls/QFormBase.class.php - About 2 days to fix

                  Function Send has a Cognitive Complexity of 121 (exceeds 5 allowed). Consider refactoring.
                  Open

                          public static function Send(QEmailMessage $objMessage) {
                              $objResource = null;
                  
                              if (QEmailServer::$TestMode) {
                                  // Open up a File Resource to the TestModeDirectory
                  Severity: Minor
                  Found in includes/framework/QEmailServer.class.php - About 2 days 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 Run has a Cognitive Complexity of 120 (exceeds 5 allowed). Consider refactoring.
                  Open

                          public static function Run($strFormClass, $strAlternateHtmlFile = null, $strFormId = null) {
                              // See if we can get a Form Class out of PostData
                              $objClass = null;
                              if ($strFormId === null) {
                                  $strFormId = $strFormClass;
                  Severity: Minor
                  Found in includes/base_controls/QFormBase.class.php - About 2 days 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

                  File QHtmlTableColumn.class.php has 941 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  
                      /**
                       * Represents a column for a QHtmlTable. Different subclasses (see below) allow accessing and fetching the data
                       * for each cells in a variety of ways
                  Severity: Major
                  Found in includes/base_controls/QHtmlTableColumn.class.php - About 2 days to fix

                    Function ParsePoData has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring.
                    Open

                        protected function ParsePoData($strPoData) {
                            $strPoData = str_replace("\r", '', trim($strPoData));
                            $strPoLines = explode("\n", $strPoData);
                    
                            $strMatches = array();
                    Severity: Minor
                    Found in includes/framework/QTranslationPoParser.class.php - About 2 days 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

                    File qcubed.js has 917 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    // BEWARE: this clears the $ variable!
                    var $j = jQuery.noConflict(),
                        qcubed,
                        qc;
                    
                    
                    Severity: Major
                    Found in assets/js/qcubed.js - About 2 days to fix

                      Method __set has 419 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              public function __set($strName, $mixValue) {
                                  switch ($strName) {
                                      case 'AltField':
                                          $this->mixAltField = $mixValue;
                                          $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'altField', $mixValue);
                      Severity: Major
                      Found in includes/base_controls/QDatepickerGen.class.php - About 2 days to fix

                        Method __set has 419 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                public function __set($strName, $mixValue) {
                                    switch ($strName) {
                                        case 'AltField':
                                            $this->mixAltField = $mixValue;
                                            $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'altField', $mixValue);
                        Severity: Major
                        Found in includes/base_controls/QDatepickerBoxGen.class.php - About 2 days to fix

                          Function SetupSoapMethods has a Cognitive Complexity of 97 (exceeds 5 allowed). Consider refactoring.
                          Open

                                  protected function SetupSoapMethods(ReflectionClass $objReflection) {
                                      $objReflectionMethods = $objReflection->getMethods();
                                      if ($objReflectionMethods) foreach ($objReflectionMethods as $objReflectionMethod) {
                                          if ($objReflectionMethod->isPublic() && !$objReflectionMethod->isAbstract() &&
                                              !$objReflectionMethod->isStatic() &&  !$objReflectionMethod->isConstructor() &&
                          Severity: Minor
                          Found in includes/framework/QSoapService.class.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 __set has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring.
                          Open

                                  public function __set($strName, $mixValue) {
                                      switch ($strName) {
                                          case 'AltField':
                                              $this->mixAltField = $mixValue;
                                              $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'altField', $mixValue);
                          Severity: Minor
                          Found in includes/base_controls/QDatepickerGen.class.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 __set has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring.
                          Open

                                  public function __set($strName, $mixValue) {
                                      switch ($strName) {
                                          case 'AltField':
                                              $this->mixAltField = $mixValue;
                                              $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'altField', $mixValue);
                          Severity: Minor
                          Found in includes/base_controls/QDatepickerBoxGen.class.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

                          Severity
                          Category
                          Status
                          Source
                          Language