webcol/Calimalite

View on GitHub

Showing 2,291 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

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Helvetica-Oblique';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/helveticai.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Times-BoldItalic';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/timesbi.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Times-Bold';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/timesb.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Times-Italic';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/timesi.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Helvetica-Bold';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/helveticab.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'ZapfDingbats';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/zapfdingbats.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Times-Roman';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/times.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Helvetica-BoldOblique';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/helveticabi.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Helvetica';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/helvetica.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/symbol.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 10 locations. Consider refactoring.
      Open

      <?php
      $type = 'Core';
      $name = 'Symbol';
      $up = -100;
      $ut = 50;
      Severity: Major
      Found in sistema/librerias/fpdf/font/symbol.php and 9 other locations - About 2 wks to fix
      sistema/librerias/fpdf/font/helvetica.php on lines 1..19
      sistema/librerias/fpdf/font/helveticab.php on lines 1..19
      sistema/librerias/fpdf/font/helveticabi.php on lines 1..19
      sistema/librerias/fpdf/font/helveticai.php on lines 1..19
      sistema/librerias/fpdf/font/times.php on lines 1..19
      sistema/librerias/fpdf/font/timesb.php on lines 1..19
      sistema/librerias/fpdf/font/timesbi.php on lines 1..19
      sistema/librerias/fpdf/font/timesi.php on lines 1..19
      sistema/librerias/fpdf/font/zapfdingbats.php on lines 1..19

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 2446.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      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

                Severity
                Category
                Status
                Source
                Language