swchoi727/LEP

View on GitHub

Showing 263 of 270 total issues

Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    toggleClass: function( value, stateVal ) {
        var type = typeof value;

        if ( typeof stateVal === "boolean" && type === "string" ) {
            return stateVal ? this.addClass( value ) : this.removeClass( value );
Severity: Minor
Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

    Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        finish: function( type ) {
            if ( type !== false ) {
                type = type || "fx";
            }
            return this.each(function() {
    Severity: Minor
    Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 hr to fix

      Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          fix: function( event ) {
              if ( event[ jQuery.expando ] ) {
                  return event;
              }
      
      
      Severity: Minor
      Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 hr to fix

        Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            fix: function( event ) {
                if ( event[ jQuery.expando ] ) {
                    return event;
                }
        
        
        Severity: Minor
        Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

          Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              finish: function( type ) {
                  if ( type !== false ) {
                      type = type || "fx";
                  }
                  return this.each(function() {
          Severity: Minor
          Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

            Method generate_pairs has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
            Open

              def self.generate_pairs()
                CSV.foreach('script/final_pairs.csv', headers: true) do |row|
                  @member1 = row['partner1']
                  @member2 = row['partner2']
                  @languages = nil
            Severity: Minor
            Found in app/models/pair.rb - About 1 hr to fix

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

                    setup: function() {
            
                        if ( rformElems.test( this.nodeName ) ) {
                            // IE doesn't fire change on a check/radio until blur; trigger it on click
                            // after a propertychange. Eat the blur-change in special.change.handle.
            Severity: Minor
            Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 hr to fix

              Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function propFilter( props, specialEasing ) {
                  var index, name, easing, value, hooks;
              
                  // camelCase, specialEasing and expand cssHook pass
                  for ( index in props ) {
              Severity: Minor
              Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 hr to fix

                Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function propFilter( props, specialEasing ) {
                    var index, name, easing, value, hooks;
                
                    // camelCase, specialEasing and expand cssHook pass
                    for ( index in props ) {
                Severity: Minor
                Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

                  Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          setup: function() {
                  
                              if ( rformElems.test( this.nodeName ) ) {
                                  // IE doesn't fire change on a check/radio until blur; trigger it on click
                                  // after a propertychange. Eat the blur-change in special.change.handle.
                  Severity: Minor
                  Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

                    Function offset has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        offset: function( options ) {
                            if ( arguments.length ) {
                                return options === undefined ?
                                    this :
                                    this.each(function( i ) {
                    Severity: Minor
                    Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 hr to fix

                      Function off has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          off: function( types, selector, fn ) {
                              var handleObj, type;
                              if ( types && types.preventDefault && types.handleObj ) {
                                  // ( event )  dispatched jQuery.Event
                                  handleObj = types.handleObj;
                      Severity: Minor
                      Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 hr to fix

                        Function * has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                "*": [ function( prop, value ) {
                                    var tween = this.createTween( prop, value ),
                                        target = tween.cur(),
                                        parts = rfxnum.exec( value ),
                                        unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                        Severity: Minor
                        Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 hr to fix

                          Function * has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  "*": [ function( prop, value ) {
                                      var tween = this.createTween( prop, value ),
                                          target = tween.cur(),
                                          parts = rfxnum.exec( value ),
                                          unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                          Severity: Minor
                          Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

                            Function off has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                off: function( types, selector, fn ) {
                                    var handleObj, type;
                                    if ( types && types.preventDefault && types.handleObj ) {
                                        // ( event )  dispatched jQuery.Event
                                        handleObj = types.handleObj;
                            Severity: Minor
                            Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

                              Function offset has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  offset: function( options ) {
                                      if ( arguments.length ) {
                                          return options === undefined ?
                                              this :
                                              this.each(function( i ) {
                              Severity: Minor
                              Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                        if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                                support.getById && context.nodeType === 9 && documentIsHTML &&
                                                Expr.relative[ tokens[1].type ] ) {
                                
                                            context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                                Severity: Major
                                Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                          if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                                  support.getById && context.nodeType === 9 && documentIsHTML &&
                                                  Expr.relative[ tokens[1].type ] ) {
                                  
                                              context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                                  Severity: Major
                                  Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 hr to fix

                                    Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                    Severity: Major
                                    Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 50 mins to fix

                                      Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                      Severity: Major
                                      Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 50 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language