amtgard/ORK3

View on GitHub

Showing 1,733 of 2,354 total issues

Function sceditor has 585 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.sceditor = function (el, options) {
        var base = this;

        /**
         * The textarea element being replaced
Severity: Major
Found in orkui/template/default/script/js/SCEditor/jquery.sceditor.js - About 2 days to fix

    File qunit.js has 1128 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * QUnit - A JavaScript Unit Testing Framework
     *
     * http://docs.jquery.com/QUnit
     *
    Severity: Major
    Found in orkui/template/default/script/development-bundle/external/qunit.js - About 2 days to fix

      Function player has a Cognitive Complexity of 134 (exceeds 5 allowed). Consider refactoring.
      Open

          public function player($id) {
              logtrace("player call", $_REQUEST);
              $this->load_model('Player');
              $this->load_model('Award');
              $this->load_model('Unit');
      Severity: Minor
      Found in orkui/controller/controller.Admin.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 serialize_val has a Cognitive Complexity of 128 (exceeds 5 allowed). Consider refactoring.
      Open

          function serialize_val($val,$name=false,$type=false,$name_ns=false,$type_ns=false,$attributes=false,$use='encoded',$soapval=false) {
              $this->debug("in serialize_val: name=$name, type=$type, name_ns=$name_ns, type_ns=$type_ns, use=$use, soapval=$soapval");
              $this->appendDebug('value=' . $this->varDump($val));
              $this->appendDebug('attributes=' . $this->varDump($attributes));
              
      Severity: Minor
      Found in system/lib/nusoap/nusoap.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 serialize_val has a Cognitive Complexity of 128 (exceeds 5 allowed). Consider refactoring.
      Open

          function serialize_val($val,$name=false,$type=false,$name_ns=false,$type_ns=false,$attributes=false,$use='encoded',$soapval=false) {
              $this->debug("in serialize_val: name=$name, type=$type, name_ns=$name_ns, type_ns=$type_ns, use=$use, soapval=$soapval");
              $this->appendDebug('value=' . $this->varDump($val));
              $this->appendDebug('attributes=' . $this->varDump($attributes));
              
      Severity: Minor
      Found in system/lib/nusoap/class.nusoap_base.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 jquery-ui-timepicker-addon.js has 1028 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
      * jQuery timepicker addon
      * By: Trent Richardson [http://trentrichardson.com]
      * Version 0.9.9
      * Last Modified: 02/05/2012
      Severity: Major
      Found in orkui/template/default/script/js/jquery-ui-timepicker-addon.js - About 2 days to fix

        File Barcode.php has 1015 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /*
         *  BarCode Coder Library (BCC Library)
         *  BCCL Version 2.0.1
         *  Porting : Barcode PHP
        Severity: Major
        Found in system/lib/Barcode.php - About 2 days to fix

          Function schemaStartElement has a Cognitive Complexity of 117 (exceeds 5 allowed). Consider refactoring.
          Open

              function schemaStartElement($parser, $name, $attrs) {
                  
                  // position in the total number of elements, starting from 0
                  $pos = $this->position++;
                  $depth = $this->depth++;
          Severity: Minor
          Found in system/lib/nusoap/nusoap.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 schemaStartElement has a Cognitive Complexity of 117 (exceeds 5 allowed). Consider refactoring.
          Open

              function schemaStartElement($parser, $name, $attrs) {
                  
                  // position in the total number of elements, starting from 0
                  $pos = $this->position++;
                  $depth = $this->depth++;
          Severity: Minor
          Found in system/lib/nusoap/class.xmlschema.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 import.primary.php has 941 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          
          /*******************************************************************************
           * 
           * Import Routine
          Severity: Major
          Found in import/import.primary.php - About 2 days to fix

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

            <?php
            
            
            
            
            
            Severity: Major
            Found in system/lib/nusoap/class.soap_transport_http.php - About 2 days to fix

              Function start_element has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring.
              Open

                  function start_element($parser, $name, $attrs)
                  {
                      if ($this->status == 'schema') {
                          $this->currentSchema->schemaStartElement($parser, $name, $attrs);
                          $this->appendDebug($this->currentSchema->getDebug());
              Severity: Minor
              Found in system/lib/nusoap/class.wsdl.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 serialize has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring.
              Open

                  function serialize($debug = 0)
                  {
                      $xml = '<?xml version="1.0" encoding="ISO-8859-1"?>';
                      $xml .= "\n<definitions";
                      foreach($this->namespaces as $k => $v) {
              Severity: Minor
              Found in system/lib/nusoap/class.wsdl.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 serialize has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring.
              Open

                  function serialize($debug = 0)
                  {
                      $xml = '<?xml version="1.0" encoding="ISO-8859-1"?>';
                      $xml .= "\n<definitions";
                      foreach($this->namespaces as $k => $v) {
              Severity: Minor
              Found in system/lib/nusoap/nusoap.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 start_element has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring.
              Open

                  function start_element($parser, $name, $attrs)
                  {
                      if ($this->status == 'schema') {
                          $this->currentSchema->schemaStartElement($parser, $name, $attrs);
                          $this->appendDebug($this->currentSchema->getDebug());
              Severity: Minor
              Found in system/lib/nusoap/nusoap.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

              File widget-pager.js has 792 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /* Pager widget for TableSorter 9/15/2014 (v2.17.8) */
              /*jshint browser:true, jquery:true, unused:false */
              ;(function($){
              "use strict";
              var tsp,

                QRcode has 98 functions (exceeds 20 allowed). Consider refactoring.
                Open

                    class QRcode {
                
                        /**
                         * @var barcode array to be returned which is readable by TCPDF
                         * @access protected
                Severity: Major
                Found in system/lib/phpqrcode/bindings/tcpdf/qrcode.php - About 1 day to fix

                  Function fetchWSDL has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
                  Open

                      function fetchWSDL($wsdl) {
                          $this->debug("parse and process WSDL path=$wsdl");
                          $this->wsdl = $wsdl;
                          // parse wsdl file
                          if ($this->wsdl != "") {
                  Severity: Minor
                  Found in system/lib/nusoap/class.wsdl.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 fetchWSDL has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring.
                  Open

                      function fetchWSDL($wsdl) {
                          $this->debug("parse and process WSDL path=$wsdl");
                          $this->wsdl = $wsdl;
                          // parse wsdl file
                          if ($this->wsdl != "") {
                  Severity: Minor
                  Found in system/lib/nusoap/nusoap.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 serializeSchema has a Cognitive Complexity of 86 (exceeds 5 allowed). Consider refactoring.
                  Open

                      function serializeSchema(){
                  
                          $schemaPrefix = $this->getPrefixFromNamespace($this->XMLSchemaVersion);
                          $xml = '';
                          // imports
                  Severity: Minor
                  Found in system/lib/nusoap/class.xmlschema.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