Showing 196 of 196 total issues

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

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

    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 app/js/jquery.ui.position.js and 1 other location - About 1 day to fix
    app/js/jquery.ui.position.js on lines 313..338

    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.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 app/js/jquery.ui.position.js and 1 other location - About 1 day to fix
    app/js/jquery.ui.position.js on lines 350..375

    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

    Function ajax has 240 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 app/js/jquery.js - About 1 day to fix

      Function setDocument has 200 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      setDocument = Sizzle.setDocument = function( node ) {
          var doc = node ? node.ownerDocument || node : preferredDoc,
              parent = doc.defaultView;
      
          // If no document and documentElement is available, return
      Severity: Major
      Found in app/js/jquery.js - About 1 day to fix

        Function _create has 197 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 app/js/jquery.ui.autocomplete.js - About 7 hrs to fix

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

          /*!
           * jQuery UI Menu 1.10.4
           * http://jqueryui.com
           *
           * Copyright 2014 jQuery Foundation and other contributors
          Severity: Minor
          Found in app/js/jquery.ui.menu.js - About 7 hrs to fix

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

            /*!
             * jQuery UI Autocomplete 1.10.4
             * http://jqueryui.com
             *
             * Copyright 2014 jQuery Foundation and other contributors
            Severity: Minor
            Found in app/js/jquery.ui.autocomplete.js - About 7 hrs to fix

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

              /*!
               * jQuery UI Position 1.10.4
               * http://jqueryui.com
               *
               * Copyright 2014 jQuery Foundation and other contributors
              Severity: Minor
              Found in app/js/jquery.ui.position.js - About 6 hrs to fix

                Function position has 147 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                $.fn.position = function( options ) {
                    if ( !options || !options.of ) {
                        return _position.apply( this, arguments );
                    }
                
                
                Severity: Major
                Found in app/js/jquery.ui.position.js - About 5 hrs to fix

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

                  /*!
                   * jQuery UI Widget 1.10.4
                   * http://jqueryui.com
                   *
                   * Copyright 2014 jQuery Foundation and other contributors
                  Severity: Minor
                  Found in app/js/jquery.ui.widget.js - About 5 hrs to fix

                    Method create has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        def self.create(args = {})
                          # Set defaults:
                          args = {
                            filepath: 'public/ggi_family_data.xlsx',
                            # NOTE - The version CANNOT come from the source file, we need to ask what version FALO wants this to be known as, and when we last asked CP about
                    Severity: Major
                    Found in lib/ggi/all_families_download.rb - About 5 hrs to fix

                      Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      jQuery.Callbacks = function( options ) {
                      
                          // Convert options from String-formatted to Object-formatted if needed
                          // (we check in cache first)
                          options = typeof options === "string" ?
                      Severity: Major
                      Found in app/js/jquery.js - About 5 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if ( event.pageX == null && original.clientX != null ) {
                                        eventDoc = event.target.ownerDocument || document;
                                        doc = eventDoc.documentElement;
                                        body = eventDoc.body;
                        
                        
                        Severity: Critical
                        Found in app/js/jquery.js - About 5 hrs to fix

                          Function support has 119 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          jQuery.support = (function( support ) {
                          
                              var all, a, input, select, fragment, opt, eventName, isSupported, i,
                                  div = document.createElement("div");
                          
                          
                          Severity: Major
                          Found in app/js/jquery.js - About 4 hrs to fix

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

                                    if ( this._hasScroll() ) {
                                        base = this.active.offset().top;
                                        height = this.element.height();
                                        this.active.prevAll( ".ui-menu-item" ).each(function() {
                                            item = $( this );
                            Severity: Major
                            Found in app/js/jquery.ui.menu.js and 1 other location - About 4 hrs to fix
                            app/js/jquery.ui.menu.js on lines 573..585

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

                            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 ( this._hasScroll() ) {
                                        base = this.active.offset().top;
                                        height = this.element.height();
                                        this.active.nextAll( ".ui-menu-item" ).each(function() {
                                            item = $( this );
                            Severity: Major
                            Found in app/js/jquery.ui.menu.js and 1 other location - About 4 hrs to fix
                            app/js/jquery.ui.menu.js on lines 597..608

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

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

                            function defaultPrefilter( elem, props, opts ) {
                                /* jshint validthis: true */
                                var prop, value, toggle, tween, hooks, oldfire,
                                    anim = this,
                                    orig = {},
                            Severity: Major
                            Found in app/js/jquery.js - About 3 hrs to fix

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

                                  _hoverable: function( element ) {
                                      this.hoverable = this.hoverable.add( element );
                                      this._on( element, {
                                          mouseenter: function( event ) {
                                              $( event.currentTarget ).addClass( "ui-state-hover" );
                              Severity: Major
                              Found in app/js/jquery.ui.widget.js and 1 other location - About 3 hrs to fix
                              app/js/jquery.ui.widget.js on lines 443..453

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

                              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

                                  _focusable: function( element ) {
                                      this.focusable = this.focusable.add( element );
                                      this._on( element, {
                                          focusin: function( event ) {
                                              $( event.currentTarget ).addClass( "ui-state-focus" );
                              Severity: Major
                              Found in app/js/jquery.ui.widget.js and 1 other location - About 3 hrs to fix
                              app/js/jquery.ui.widget.js on lines 431..441

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

                              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