CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

  clonePosition: function(element, source) {
    var options = Object.extend({
      setLeft:    true,
      setTop:     true,
      setWidth:   true,
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 1 hr to fix

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

    Element.extend = (function() {
      if (Prototype.BrowserFeatures.SpecificElementExtensions)
        return Prototype.K;
    
      var Methods = { }, ByTag = Element.Methods.ByTag;
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 1 hr to fix

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

              clickShortlink = function(e) {
                  var i, l, node,
                      t = e.target || e.srcElement;
      
                  // Make t the shortlink menu item, or return.
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/js/admin-bar.js - About 1 hr to fix

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

          Element.Methods.insert = function(element, insertions) {
            element = $(element);
        
            if (Object.isString(insertions) || Object.isNumber(insertions) ||
                Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 1 hr to fix

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

                  refresh:  function() {
                      var node, attached, container, id;
          
                      if ( this.browser ) {
                          node = this.browser[0];
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/js/plupload/wp-plupload.js - About 1 hr to fix

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

                refreshEditor : function(postid, nonce, callback) {
                    var t = this, data, img;
            
                    t.toggleEditor(postid, 1);
                    data = {
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/js/image-edit.dev.js - About 1 hr to fix

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

                          end: function(name) {
                              if (name == "video" && updateAll) {
                                  for (var index = 1; index <= 2; index++) {
                                      if (data["source" + index]) {
                                          var attrs = [];

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

                    function addToolbar( node ) {
                        var rectangle, toolbarHtml, toolbar, left,
                            dom = editor.dom;
                
                        removeToolbar();

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

                  Element.extend = (function() {
                    if (Prototype.BrowserFeatures.SpecificElementExtensions)
                      return Prototype.K;
                  
                    var Methods = { }, ByTag = Element.Methods.ByTag;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 hr to fix

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

                      Element.Methods.insert = function(element, insertions) {
                        element = $(element);
                    
                        if (Object.isString(insertions) || Object.isNumber(insertions) ||
                            Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 hr to fix

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

                      {return{x:a[0],y:a[1],x2:a[2],y2:a[3],w:a[2]-a[0],h:a[3]-a[1]};};return{flipCoords:flipCoords,setPressed:setPressed,setCurrent:setCurrent,getOffset:getOffset,moveOffset:moveOffset,getCorner:getCorner,getFixed:getFixed};}();var Selection=function()
                      {var start,end,dragmode,awake,hdep=370;var borders={};var handle={};var seehandles=false;var hhs=options.handleOffset;if(options.drawBorders){borders={top:insertBorder('hline').css('top',$.browser.msie?px(-1):px(0)),bottom:insertBorder('hline'),left:insertBorder('vline'),right:insertBorder('vline')};}
                      if(options.dragEdges){handle.t=insertDragbar('n');handle.b=insertDragbar('s');handle.r=insertDragbar('e');handle.l=insertDragbar('w');}
                      options.sideHandles&&createHandles(['n','s','e','w']);options.cornerHandles&&createHandles(['sw','nw','ne','se']);function insertBorder(type)
                      {var jq=$('<div />').css({position:'absolute',opacity:options.borderOpacity}).addClass(cssClass(type));$img_holder.append(jq);return jq;};function dragDiv(ord,zi)
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js - About 1 hr to fix

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

                        if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){
                          function iter(name) {
                            return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]";
                          }
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 hr to fix

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

                            clonePosition: function(element, source) {
                              var options = Object.extend({
                                setLeft:    true,
                                setTop:     true,
                                setWidth:   true,
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 hr to fix

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

                            function uploadError(fileObj, errorCode, message) {
                            
                                switch (errorCode) {
                                    case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL:
                                        wpFileError(fileObj, swfuploadL10n.missing_upload_url);
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/js/swfupload/handlers.dev.js - About 1 hr to fix

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

                                      set: function( id, view, options ) {
                                          var priority, views, index;
                              
                                          options = options || {};
                              
                              
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix

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

                                  initialize: function(element) {
                                    this.element = $(element);
                                    if (!this.element) throw(Effect._elementDoesNotExistError);
                                    var options = Object.extend({
                                      style: { }
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js - About 1 hr to fix

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

                                                  flash: function(params, complete) {
                                                      $(params.next).css({
                                                          opacity: 0,
                                                          left: 0
                                                      });
                                  Severity: Minor
                                  Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

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

                                                hide : function( elem, speed, callback ) {
                                    
                                                    callback = callback || F;
                                    
                                                    var $elem = $(elem);
                                    Severity: Minor
                                    Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

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

                                        startDrag: function(event) {
                                          this.dragging = true;
                                          if(!this.delta)
                                            this.delta = this.currentDelta();
                                          
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 1 hr to fix

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

                                            SWFUpload.prototype.initSettings = (function (oldInitSettings) {
                                                return function () {
                                                    if (typeof(oldInitSettings) === "function") {
                                                        oldInitSettings.call(this);
                                                    }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language