CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

    var participantController = function ($scope, $http, $q, $location, modalFactory, dataService) {
        var url = $location.absUrl();
        var lastSlash = url.lastIndexOf('/');
        var province = url.slice(lastSlash + 1);
        var year = url.slice(lastSlash - 4, lastSlash);
Severity: Minor
Found in Web.Admin/AdminApp/Controllers/controller.participant.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/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix

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

              _processPosition: function( position ) {
                  var opposite = {
                          top: 'bottom',
                          bottom: 'top',
                          left: 'right',
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/js/wp-pointer.js - About 1 hr to fix

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

                ready: function() {
                    this.top = this.$el.offset().top;
                    this.window = $(window);
                    this.window.on( 'scroll.wp.revisions', {controls: this}, function(e) {
                        var controls  = e.data.controls,
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/js/revisions.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 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 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 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/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 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 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 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 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 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 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 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 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 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