BadrIT/translation_center

View on GitHub

Showing 161 of 426 total issues

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

/*! jQuery UI - v1.9.2 - 2012-11-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */

Severity: Major
Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 mo to fix

    File bootstrap.js has 1409 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* ===================================================
     * bootstrap-transition.js v2.2.1
     * http://twitter.github.com/bootstrap/javascript.html#transitions
     * ===================================================
     * Copyright 2012 Twitter, Inc.
    Severity: Major
    Found in app/assets/javascripts/translation_center/bootstrap.js - About 3 days to fix

      Function _create has 194 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/assets/javascripts/translation_center/jquery-ui.js - About 7 hrs to fix

        Function _generateHTML has 163 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _generateHTML: function(inst) {
                var today = new Date();
                today = this._daylightSavingAdjust(
                    new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
                var isRTL = this._get(inst, 'isRTL');
        Severity: Major
        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 6 hrs to fix

          Function position has 161 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/assets/javascripts/translation_center/jquery-ui.js - About 6 hrs to fix

            Function size has 156 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            $.effects.effect.size = function( o, done ) {
            
                // Create element
                var original, baseline, factor,
                    el = $( this ),
            Severity: Major
            Found in app/assets/javascripts/translation_center/jquery-ui.js - About 6 hrs to fix

              Function _create has 138 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _create: function() {
                      var i, handleCount,
                          o = this.options,
                          existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
                          handle = "<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",
              Severity: Major
              Found in app/assets/javascripts/translation_center/jquery-ui.js - About 5 hrs to fix

                Function _create has 137 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _create: function() {
                        this.element.closest( "form" )
                            .unbind( "reset" + this.eventNamespace )
                            .bind( "reset" + this.eventNamespace, formResetHandler );
                
                
                Severity: Major
                Found in app/assets/javascripts/translation_center/jquery-ui.js - About 5 hrs to fix

                  Function parseDate has 134 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      parseDate: function (format, value, settings) {
                          if (format == null || value == null)
                              throw 'Invalid arguments';
                          value = (typeof value == 'object' ? value.toString() : value + '');
                          if (value == '')
                  Severity: Major
                  Found in app/assets/javascripts/translation_center/jquery-ui.js - About 5 hrs to fix

                    Function _create has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _create: function() {
                            this.originalTitle = this.element.attr( "title" );
                            // #5742 - .attr() might return a DOMElement
                            if ( typeof this.originalTitle !== "string" ) {
                                this.originalTitle = "";
                    Severity: Major
                    Found in app/assets/javascripts/translation_center/jquery-ui.js - About 4 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
                                      if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                      inst.snapElements[i].snapping = false;
                                      continue;
                                  }
                      Severity: Critical
                      Found in app/assets/javascripts/translation_center/jquery-ui.js - About 4 hrs to fix

                        Function _create has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _create: function() {
                        
                                var that = this, o = this.options;
                                this.element.addClass("ui-resizable");
                        
                        
                        Severity: Major
                        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 3 hrs to fix

                          Function _keydown has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _keydown: function( event ) {
                                  var match, prev, character, skip, regex,
                                      preventDefault = true;
                          
                                  function escape( value ) {
                          Severity: Major
                          Found in app/assets/javascripts/translation_center/jquery-ui.js - About 3 hrs to fix

                            Function Datepicker has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function Datepicker() {
                                this.debug = false; // Change this to true to start debugging
                                this._curInst = null; // The current instance in use
                                this._keyEvent = false; // If the last event was a key event
                                this._disabledInputs = []; // List of date picker inputs that have been disabled
                            Severity: Major
                            Found in app/assets/javascripts/translation_center/jquery-ui.js - About 3 hrs to fix

                              Function _create has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _create: function() {
                                      var accordionId = this.accordionId = "ui-accordion-" +
                                              (this.element.attr( "id" ) || ++uid),
                                          options = this.options;
                              
                              
                              Severity: Major
                              Found in app/assets/javascripts/translation_center/jquery-ui.js - About 3 hrs to fix

                                Function _create has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _create: function() {
                                        this.activeMenu = this.element;
                                        this.element
                                            .uniqueId()
                                            .addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )
                                Severity: Major
                                Found in app/assets/javascripts/translation_center/jquery-ui.js - About 2 hrs to fix

                                  Function widget has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  $.widget = function( name, base, prototype ) {
                                      var fullName, existingConstructor, constructor, basePrototype,
                                          namespace = name.split( "." )[ 0 ];
                                  
                                      name = name.split( "." )[ 1 ];
                                  Severity: Major
                                  Found in app/assets/javascripts/translation_center/jquery-ui.js - About 2 hrs to fix

                                    Function formatDate has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        formatDate: function (format, date, settings) {
                                            if (!date)
                                                return '';
                                            var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
                                            var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
                                    Severity: Major
                                    Found in app/assets/javascripts/translation_center/jquery-ui.js - About 2 hrs to fix

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

                                          _mouseDrag: function(event) {
                                              var that = this;
                                              this.dragged = true;
                                      
                                              if (this.options.disabled)
                                      Severity: Major
                                      Found in app/assets/javascripts/translation_center/jquery-ui.js - About 2 hrs to fix

                                        Function _doKeyDown has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            _doKeyDown: function(event) {
                                                var inst = $.datepicker._getInst(event.target);
                                                var handled = true;
                                                var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');
                                                inst._keyEvent = true;
                                        Severity: Major
                                        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language