webcol/Calimalite

View on GitHub

Showing 1,528 of 2,291 total issues

File jquery-1.11.1.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 public_/jquery/jquery-1.11.1.js - About 2 wks to fix

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

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

      Function Plot has 1987 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function Plot(placeholder, data_, options_, plugins) {
              // data is on the form:
              //   [ series1, series2 ... ]
              // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
              // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
      Severity: Major
      Found in public_/flot/jquery.flot.js - About 1 wk to fix

        Function loadMetadataForClass has a Cognitive Complexity of 359 (exceeds 5 allowed). Consider refactoring.
        Open

            public function loadMetadataForClass($className, ClassMetadata $metadata)
            {
                /* @var $metadata \Doctrine\ORM\Mapping\ClassMetadataInfo */
                $element = $this->getElement($className);
        
        

        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 Sizzle has 1347 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Function loadMetadataForClass has a Cognitive Complexity of 302 (exceeds 5 allowed). Consider refactoring.
          Open

              public function loadMetadataForClass($className, ClassMetadata $metadata)
              {
                  /* @var $metadata \Doctrine\ORM\Mapping\ClassMetadataInfo */
                  /* @var $xmlRoot SimpleXMLElement */
                  $xmlRoot = $this->getElement($className);

          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.flot.js has 2239 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* Javascript plotting library for jQuery, version 0.8.3.
          
          Copyright (c) 2007-2014 IOLA and Ole Laursen.
          Licensed under the MIT license.
          
          
          Severity: Major
          Found in public_/flot/jquery.flot.js - About 6 days to fix

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

            <?php
            /**
             * PHPMailer - PHP email creation and transport class.
             * PHP Version 5
             * @package PHPMailer
            Severity: Major
            Found in sistema/librerias/PHPMailer/class.phpmailer.php - About 5 days to fix

              File Parser.php has 1833 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /*
               * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
               * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
               * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
              Severity: Major
              Found in sistema/librerias/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php - About 5 days to fix

                Function loadMetadataForClass has a Cognitive Complexity of 232 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function loadMetadataForClass($className, ClassMetadata $metadata)
                    {
                        /* @var $metadata \Doctrine\ORM\Mapping\ClassMetadataInfo */
                        $class = $metadata->getReflectionClass();
                        if ( ! $class) {

                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 UnitOfWork.php has 1671 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /*
                 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                Severity: Major
                Found in sistema/librerias/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php - About 4 days to fix

                  AbstractPlatform has 213 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  abstract class AbstractPlatform
                  {
                      /**
                       * @var integer
                       */

                    File bootstrap.js has 1550 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*!
                     * Bootstrap v3.3.1 (http://getbootstrap.com)
                     * Copyright 2011-2014 Twitter, Inc.
                     * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
                     */
                    Severity: Major
                    Found in public_/js/bootstrap.js - About 4 days to fix

                      File fpdf.php has 1543 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /*******************************************************************************
                      * FPDF                                                                         *
                      *                                                                              *
                      * Version: 1.7                                                                 *
                      Severity: Major
                      Found in sistema/librerias/fpdf/fpdf.php - About 4 days to fix

                        Function hydrateRowData has a Cognitive Complexity of 183 (exceeds 5 allowed). Consider refactoring.
                        Open

                            protected function hydrateRowData(array $row, array &$cache, array &$result)
                            {
                                // Initialize
                                $id = $this->idTemplate; // initialize the id-memory
                                $nonemptyComponents = array();

                        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 AbstractPlatform.php has 1372 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /*
                         * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                         * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                         * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR

                          Function exportClassMetadata has a Cognitive Complexity of 167 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function exportClassMetadata(ClassMetadataInfo $metadata)
                              {
                                  $xml = new \SimpleXmlElement("<?xml version=\"1.0\" encoding=\"utf-8\"?><doctrine-mapping ".
                                      "xmlns=\"http://doctrine-project.org/schemas/orm/doctrine-mapping\" " .
                                      "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ".

                          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 SqlWalker.php has 1300 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          /*
                           * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                           * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                           * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                          Severity: Major
                          Found in sistema/librerias/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php - About 3 days to fix

                            File ClassMetadataInfo.php has 1285 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            /*
                             * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                             * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                             * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR

                              File excanvas.js has 1090 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              // Copyright 2006 Google Inc.
                              //
                              // Licensed under the Apache License, Version 2.0 (the "License");
                              // you may not use this file except in compliance with the License.
                              // You may obtain a copy of the License at
                              Severity: Major
                              Found in public_/flot/excanvas.js - About 2 days to fix
                                Severity
                                Category
                                Status
                                Source
                                Language