stevenocchipinti/dwi-visualiser

View on GitHub

Showing 620 of 620 total issues

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

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

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

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

    /*!
     * jQuery JavaScript Library v1.5.1
     * http://jquery.com/
     *
     * Copyright 2011, John Resig
    Severity: Major
    Found in public/lib/jquery.js - About 2 wks to fix

      Function Plot has 1908 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/lib/jquery.flot.js - About 1 wk to fix

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

        /*! Javascript plotting library for jQuery, v. 0.7.
         *
         * Released under the MIT license by IOLA, December 2007.
         *
         */
        Severity: Major
        Found in public/lib/jquery.flot.js - About 5 days to fix

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

          /* ===================================================
           * bootstrap-transition.js v2.2.1
           * http://twitter.github.com/bootstrap/javascript.html#transitions
           * ===================================================
           * Copyright 2012 Twitter, Inc.
          Severity: Major
          Found in public/lib/bootstrap/js/bootstrap.js - About 3 days to fix

            Function jQuery has 699 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var jQuery = (function() {
            
            // Define a local copy of jQuery
            var jQuery = function( selector, context ) {
                    // The jQuery object is actually just the init constructor 'enhanced'
            Severity: Major
            Found in public/lib/jquery.js - About 3 days to fix

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

                  _convertPositionTo: function(d, pos) {
              
                      if(!pos) pos = this.position;
                      var mod = d == "absolute" ? 1 : -1;
                      var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 2 days to fix
              public/lib/jquery-ui.js on lines 1405..1426

              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 376.

              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 2 locations. Consider refactoring.
              Open

                  _convertPositionTo: function(d, pos) {
              
                      if(!pos) pos = this.position;
                      var mod = d == "absolute" ? 1 : -1;
                      var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 2 days to fix
              public/lib/jquery-ui.js on lines 4046..4067

              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 376.

              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 2 locations. Consider refactoring.
              Open

                  _getParentOffset: function() {
              
                      //Get the offsetParent and cache its position
                      this.offsetParent = this.helper.offsetParent();
                      var po = this.offsetParent.offset();
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 1 day to fix
              public/lib/jquery-ui.js on lines 3965..3990

              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 335.

              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 2 locations. Consider refactoring.
              Open

                  _getParentOffset: function() {
              
              
                      //Get the offsetParent and cache its position
                      this.offsetParent = this.helper.offsetParent();
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 1 day to fix
              public/lib/jquery-ui.js on lines 1318..1342

              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 335.

              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

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                  _adjustOffsetFromHelper: function(obj) {
                      if (typeof obj == 'string') {
                          obj = obj.split(' ');
                      }
                      if ($.isArray(obj)) {
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 1 day to fix
              public/lib/jquery-ui.js on lines 1297..1316

              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 296.

              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

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                  _adjustOffsetFromHelper: function(obj) {
                      if (typeof obj == 'string') {
                          obj = obj.split(' ');
                      }
                      if ($.isArray(obj)) {
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 1 day to fix
              public/lib/jquery-ui.js on lines 3944..3963

              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 296.

              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 2 locations. Consider refactoring.
              Open

                          if ( data.collisionWidth > outerWidth ) {
                              // element is initially over the left side of within
                              if ( overLeft > 0 && overRight <= 0 ) {
                                  newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;
                                  position.left += overLeft - newOverRight;
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 1 day to fix
              public/lib/jquery-ui.js on lines 11802..11827

              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 256.

              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 2 locations. Consider refactoring.
              Open

                          if ( data.collisionHeight > outerHeight ) {
                              // element is initially over the top of within
                              if ( overTop > 0 && overBottom <= 0 ) {
                                  newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;
                                  position.top += overTop - newOverBottom;
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 1 day to fix
              public/lib/jquery-ui.js on lines 11765..11790

              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 256.

              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 2 locations. Consider refactoring.
              Open

                      return {
                          top: (
                              pageY                                                                // The absolute mouse position
                              - this.offset.click.top                                                    // Click offset (relative to the element)
                              - this.offset.relative.top                                                // Only for relative positioned nodes: Relative offset from element to offset parent
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 1 day to fix
              public/lib/jquery-ui.js on lines 4108..4123

              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 230.

              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 2 locations. Consider refactoring.
              Open

                      return {
                          top: (
                              pageY                                                                // The absolute mouse position
                              - this.offset.click.top                                                    // Click offset (relative to the element)
                              - this.offset.relative.top                                                // Only for relative positioned nodes: Relative offset from element to offset parent
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 1 day to fix
              public/lib/jquery-ui.js on lines 1470..1485

              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 230.

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

                  ajax: function( url, options ) {
              
                      // If url is an object, simulate pre-1.5 signature
                      if ( typeof url === "object" ) {
                          options = url;
              Severity: Major
              Found in public/lib/jquery.js - About 1 day to fix

                Function setupTickGeneration has 210 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function setupTickGeneration(axis) {
                            var opts = axis.options;
                                
                            // estimate number of ticks
                            var noTicks;
                Severity: Major
                Found in public/lib/jquery.flot.js - About 1 day to fix

                  Function _create has 194 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _create: function() {
                          // Some browsers only repeat keydown events, not keypress events,
                          // so we use the suppressKeyPress flag to determine if we've already
                          // handled the keydown event. #7269
                          // Unfortunately the code for & in keypress is the same as the up arrow,
                  Severity: Major
                  Found in public/lib/jquery-ui.js - About 7 hrs to fix

                    Function drawSeriesLines has 187 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function drawSeriesLines(series) {
                                function plotLine(datapoints, xoffset, yoffset, axisx, axisy) {
                                    var points = datapoints.points,
                                        ps = datapoints.pointsize,
                                        prevx = null, prevy = null;
                    Severity: Major
                    Found in public/lib/jquery.flot.js - About 7 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language