stevenocchipinti/dwi-visualiser

View on GitHub

Showing 620 of 620 total issues

Consider simplifying this complex logical expression.
Open

    if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
        return;
    }
Severity: Major
Found in public/lib/jquery.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                if ( (!special._default || special._default.call( elem, event ) === false) &&
                    !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
    
                    try {
                        if ( target[ targetType ] ) {
    Severity: Major
    Found in public/lib/jquery.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if ( !s.crossDomain ) {
                  parts = rurl.exec( s.url.toLowerCase() );
                  s.crossDomain = !!( parts &&
                      ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
                          ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
      Severity: Major
      Found in public/lib/jquery.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                if (inst == $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&
                        // #6694 - don't focus the input if it's already focused
                        // this breaks the change event in IE
                        inst.input.is(':visible') && !inst.input.is(':disabled') && inst.input[0] != document.activeElement)
                    inst.input.focus();
        Severity: Major
        Found in public/lib/jquery-ui.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                      if ( instances.length !== 0 && instances[ instances.length - 1 ] === $el &&
                          dialog.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
                          event.keyCode === $.ui.keyCode.ESCAPE ) {
          
                          dialog.close( event );
          Severity: Major
          Found in public/lib/jquery-ui.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                        if ( ( this.options.values.length === 2 && this.options.range === true ) &&
                                ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
                            ) {
                            newVal = otherVal;
                        }
            Severity: Major
            Found in public/lib/jquery-ui.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                          if(
                              inst.options.greedy
                              && !inst.options.disabled
                              && inst.options.scope == draggable.options.scope
                              && inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element))
              Severity: Major
              Found in public/lib/jquery-ui.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                    if ( o.mode === "toggle" && mode === "show" ) {
                        el.from = o.to || zero;
                        el.to = o.from || original;
                    } else {
                        el.from = o.from || ( mode === "show" ? zero : original );
                Severity: Major
                Found in public/lib/jquery-ui.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                  if ( $.uiBackCompat !== false ) {
                  
                      // helper method for a lot of the back compat extensions
                      $.ui.tabs.prototype._ui = function( tab, panel ) {
                          return {
                  Severity: Major
                  Found in public/lib/jquery-ui.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                                    if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
                                        curElem = hook === "backgroundColor" ? elem.parentNode : elem;
                                        while (
                                            (backgroundColor === "" || backgroundColor === "transparent") &&
                                            curElem && curElem.style
                    Severity: Major
                    Found in public/lib/jquery-ui.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if ( tab.hasClass( "ui-state-disabled" ) ||
                                      // tab is already loading
                                      tab.hasClass( "ui-tabs-loading" ) ||
                                      // can't switch durning an animation
                                      this.running ||
                      Severity: Major
                      Found in public/lib/jquery-ui.js - About 40 mins to fix

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

                                    if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
                                        $( active ).focus();
                                    }
                        Severity: Minor
                        Found in public/lib/jquery-ui.js and 1 other location - About 40 mins to fix
                        public/lib/jquery-ui.js on lines 5215..5217

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

                        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

                                from: {
                                    y: el.from.height / original.height,
                                    x: el.from.width / original.width
                                },
                        Severity: Minor
                        Found in public/lib/jquery-ui.js and 1 other location - About 40 mins to fix
                        public/lib/jquery-ui.js on lines 10583..10586

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

                        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 (pos == "bottom") {
                                            plotOffset.bottom += lh + axismargin;
                                            axis.box = { top: canvasHeight - plotOffset.bottom, height: lh };
                                        }
                        Severity: Minor
                        Found in public/lib/jquery.flot.js and 1 other location - About 40 mins to fix
                        public/lib/jquery.flot.js on lines 967..970

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

                        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 (pos == "left") {
                                            axis.box = { left: plotOffset.left + axismargin, width: lw };
                                            plotOffset.left += lw + axismargin;
                                        }
                        Severity: Minor
                        Found in public/lib/jquery.flot.js and 1 other location - About 40 mins to fix
                        public/lib/jquery.flot.js on lines 955..958

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

                        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

                                        else {
                                            axis.box = { top: plotOffset.top + axismargin, height: lh };
                                            plotOffset.top += lh + axismargin;
                                        }
                        Severity: Minor
                        Found in public/lib/jquery.flot.js and 1 other location - About 40 mins to fix
                        public/lib/jquery.flot.js on lines 963..966

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

                        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

                                to: {
                                    y: el.to.height / original.height,
                                    x: el.to.width / original.width
                                }
                        Severity: Minor
                        Found in public/lib/jquery-ui.js and 1 other location - About 40 mins to fix
                        public/lib/jquery-ui.js on lines 10579..10582

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

                        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

                                        else {
                                            plotOffset.right += lw + axismargin;
                                            axis.box = { left: canvasWidth - plotOffset.right, width: lw };
                                        }
                        Severity: Minor
                        Found in public/lib/jquery.flot.js and 1 other location - About 40 mins to fix
                        public/lib/jquery.flot.js on lines 951..954

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

                        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

                                if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
                                    $( active ).focus();
                                }
                        Severity: Minor
                        Found in public/lib/jquery-ui.js and 1 other location - About 40 mins to fix
                        public/lib/jquery-ui.js on lines 5256..5258

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

                        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 (top < bottom) {
                                            tmp = top;
                                            top = bottom;
                                            bottom = tmp;
                                            drawBottom = true;
                        Severity: Minor
                        Found in public/lib/jquery.flot.js and 1 other location - About 40 mins to fix
                        public/lib/jquery.flot.js on lines 2042..2048

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

                        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

                        Severity
                        Category
                        Status
                        Source
                        Language