railsfrance/railsfrance.org

View on GitHub

Showing 166 of 228 total issues

Function closest has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    closest: function( selectors, context ) {
        var ret = [], i, l, cur = this[0];
        
        // Array
        if ( jQuery.isArray( selectors ) ) {
Severity: Minor
Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

    Function CHILD has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            CHILD: function( elem, match ) {
                var type = match[1],
                    node = elem;
    
                switch ( type ) {
    Severity: Minor
    Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

      Function step has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          step: function( gotoEnd ) {
              var t = fxNow || createFxNow(),
                  done = true,
                  elem = this.elem,
                  options = this.options,
      Severity: Minor
      Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

        Function load has 44 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            load: function( url, params, callback ) {
                if ( typeof url !== "string" && _load ) {
                    return _load.apply( this, arguments );
        
                // Don't do a request if no elements are being requested
        Severity: Minor
        Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

          Function showPager has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function showPager(type){
                      // sets up logic for finite multi slide shows
                      var pagerQty = $children.length;
                      // if we are moving more than one at a time and we have a finite loop
                      if(options.moveSlideQty > 1){
          Severity: Minor
          Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 1 hr to fix

            Function attr has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                attr: function( elem, name, value, pass ) {
                    var nType = elem.nodeType;
                    
                    // don't get/set attributes on text, comment and attribute nodes
                    if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
            Severity: Minor
            Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

              Function data has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  data: function( key, value ) {
                      var data = null;
              
                      if ( typeof key === "undefined" ) {
                          if ( this.length ) {
              Severity: Minor
              Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    val: function( value ) {
                        var hooks, ret,
                            elem = this[0];
                        
                        if ( !arguments.length ) {
                Severity: Minor
                Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                  Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  jQuery.extend = jQuery.fn.extend = function() {
                      var options, name, src, copy, copyIsArray, clone,
                          target = arguments[0] || {},
                          i = 1,
                          length = arguments.length,
                  Severity: Minor
                  Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                    Function goToSlide has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            this.goToSlide = function(number, stopAuto){
                                if(!isWorking){
                                    isWorking = true;
                                    // set current slide to argument
                                    currentSlide = number;
                    Severity: Minor
                    Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 1 hr to fix

                      Function checkbox has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      jQuery.fn.checkbox = function(options) {
                          var defaults = {
                              className: 'jquery-checkbox',
                              checkedClass: 'jquery-checkbox-on'
                          };
                      Severity: Minor
                      Found in app/assets/javascripts/lib/jquery-checkbox-1.0.js - About 1 hr to fix

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

                            fix: function( event ) {
                                if ( event[ jQuery.expando ] ) {
                                    return event;
                                }
                        
                        
                        Severity: Minor
                        Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                          Function _parseTime has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _parseTime: function(timeString, withDate) {
                                  var regstr = this._defaults.timeFormat.toString()
                                          .replace(/h{1,2}/ig, '(\\d?\\d)')
                                          .replace(/m{1,2}/ig, '(\\d?\\d)')
                                          .replace(/s{1,2}/ig, '(\\d?\\d)')
                          Severity: Minor
                          Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js - About 1 hr to fix

                            Function getWH has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function getWH( elem, name, extra ) {
                            
                                // Start with offset property
                                var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
                                    which = name === "width" ? cssWidth : cssHeight;
                            Severity: Minor
                            Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                  if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
                                      args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
                              
                                      cacheable = true;
                              
                              
                              Severity: Critical
                              Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                            if ( match[1] === "nth" ) {
                                                if ( !match[2] ) {
                                                    Sizzle.error( match[0] );
                                                }
                                
                                
                                Severity: Critical
                                Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                                  Function each has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      each: function( object, callback, args ) {
                                          var name, i = 0,
                                              length = object.length,
                                              isObj = length === undefined || jQuery.isFunction( object );
                                  
                                  
                                  Severity: Minor
                                  Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                                    Function _formatTime has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _formatTime: function(time, format, ampm) {
                                            if (ampm == undefined) ampm = this._defaults.ampm;
                                            time = time || { hour: this.hour, minute: this.minute, second: this.second, ampm: this.ampm, timezone: this.timezone };
                                            var tmptime = format || this._defaults.timeFormat.toString();
                                    
                                    
                                    Severity: Minor
                                    Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js - About 1 hr to fix

                                      Function showAutoControls has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              function showAutoControls(startType, startContent, stopType, stopContent){
                                                  // create pager html elements
                                                  $autoControls = $('<a href="" class="bx-start"></a>');
                                                  // check if start is 'text' or 'image'
                                                  if(startType == 'text'){
                                      Severity: Minor
                                      Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 1 hr to fix

                                        Function setOffset has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            setOffset: function( elem, options, i ) {
                                                var position = jQuery.css( elem, "position" );
                                        
                                                // set position first, in-case top/left are set even on static elem
                                                if ( position === "static" ) {
                                        Severity: Minor
                                        Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language