railsfrance/railsfrance.org

View on GitHub

Showing 166 of 228 total issues

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

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

    Function bxSlider has 846 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.fn.bxSlider = function(options){        
                    
            var defaults = {
                mode: 'horizontal',                                    // 'horizontal', 'vertical', 'fade'
                infiniteLoop: true,                                    // true, false - display first slide after last
    Severity: Major
    Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 4 days to fix

      File bots.rb has 1459 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      module Bots
        # Bots list from http://www.user-agents.org/allagents.xml
      
        WILD_CARDS = ["bot","yahoo","slurp","google","msn","crawler"]
      
      
      Severity: Major
      Found in lib/models/bots.rb - About 3 days to fix

        Function jQuery has 590 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 app/assets/javascripts/lib/jquery-1.6.4.js - About 2 days to fix

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

          /**
           * jQuery bxSlider v3.0
           * http://bxslider.com
           *
           * Copyright 2010, Steven Wanderski
          Severity: Major
          Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 2 days to fix

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

            /*
            * jQuery timepicker addon
            * By: Trent Richardson [http://trentrichardson.com]
            * Version 0.9.5
            * Last Modified: 05/25/2011
            Severity: Major
            Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js - About 1 day to fix

              Function ajax has 242 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/assets/javascripts/lib/jquery-1.6.4.js - About 1 day to fix

                Function _injectTimePicker has 209 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _injectTimePicker: function() {
                        var $dp = this.inst.dpDiv,
                            o = this._defaults,
                            tp_inst = this,
                            // Added by Peter Medeiros:
                Severity: Major
                Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js - About 1 day to fix

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

                  jQuery.support = (function() {
                  
                      var div = document.createElement( "div" ),
                          documentElement = document.documentElement,
                          all,
                  Severity: Major
                  Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 5 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ( event.pageX == null && event.clientX != null ) {
                                var eventDocument = event.target.ownerDocument || document,
                                    doc = eventDocument.documentElement,
                                    body = eventDocument.body;
                    
                    
                    Severity: Critical
                    Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 5 hrs to fix

                      Function Sizzle has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var Sizzle = function( selector, context, results, seed ) {
                          results = results || [];
                          context = context || document;
                      
                          var origContext = context;
                      Severity: Major
                      Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 4 hrs to fix

                        Function send has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        send: function( headers, complete ) {
                        
                                            // Get a new xhr
                                            var xhr = s.xhr(),
                                                handle,
                        Severity: Major
                        Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 3 hrs to fix

                          Function remove has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              remove: function( elem, types, handler, pos ) {
                                  // don't do events on text and comment nodes
                                  if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
                                      return;
                                  }
                          Severity: Major
                          Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 3 hrs to fix

                            Function initShow has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    this.initShow = function(){
                                        
                                        // reinitialize all variables
                                        // base = this;
                                        $parent = $(this);
                            Severity: Major
                            Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 3 hrs to fix

                              Function animate has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  animate: function( prop, speed, easing, callback ) {
                                      var optall = jQuery.speed(speed, easing, callback);
                              
                                      if ( jQuery.isEmptyObject( prop ) ) {
                                          return this.each( optall.complete, [ false ] );
                              Severity: Major
                              Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 3 hrs to fix

                                Function trigger has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    trigger: function( event, data, elem, onlyHandlers ) {
                                        // Event object or event type
                                        var type = event.type || event,
                                            namespaces = [],
                                            exclusive;
                                Severity: Major
                                Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 3 hrs to fix

                                  Function clean has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      clean: function( elems, context, fragment, scripts ) {
                                          var checkScriptType;
                                  
                                          context = context || document;
                                  
                                  
                                  Severity: Major
                                  Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 3 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                    if ( "getBoundingClientRect" in document.documentElement ) {
                                        jQuery.fn.offset = function( options ) {
                                            var elem = this[0], box;
                                    
                                            if ( options ) {
                                    Severity: Critical
                                    Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 3 hrs to fix

                                      Function add has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          add: function( elem, types, handler, data ) {
                                              if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
                                                  return;
                                              }
                                      
                                      
                                      Severity: Major
                                      Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 2 hrs to fix

                                        Function _limitMinMaxDateTime has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            _limitMinMaxDateTime: function(dp_inst, adjustSliders){
                                                var o = this._defaults,
                                                    dp_date = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay);
                                        
                                                if(!this._defaults.showTimepicker) return; // No time so nothing to check here
                                        Severity: Major
                                        Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language