CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function detectVerticalSquash has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    loadImage.detectVerticalSquash = function (img, subsampled) {
        var naturalHeight = img.naturalHeight || img.height,
            canvas = document.createElement('canvas'),
            context = canvas.getContext('2d'),
            data,
Severity: Minor
Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

    Function registerState has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function registerState(state) {
        // Wrap a new object around the state so we can store our private details easily.
        state = inherit(state, {
          self: state,
          resolve: state.resolve || {},
    Severity: Minor
    Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 hr to fix

      Function getInfo has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  getInfo: function (file, fn){
                      var info = {}, readers = _infoReader.concat();
      
                      if( api.isFile(file) ){
                          (function _next(){
      Severity: Minor
      Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

        Function invoke has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              function invoke(key, invocable, params) {
                // Create a deferred for this invocation. Failures will propagate to the resolution as well.
                var invocation = $q.defer(), waitParams = 0;
                function onfailure(reason) {
                  invocation.reject(reason);
        Severity: Minor
        Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 hr to fix

          Function select has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          select: function (evt){
                              try {
                                  var
                                        inp = flash.getInput(evt.flashId)
                                      , uid = api.uid(inp)
          Severity: Minor
          Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

            Function findState has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function findState(stateOrName, base) {
                if (!stateOrName) return undefined;
            
                var isStr = isString(stateOrName),
                    name  = isStr ? stateOrName : stateOrName.name,
            Severity: Minor
            Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 hr to fix

              Function guestPackagesController has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  var guestPackagesController = function ($http, $q, $location, dataService) {
                      var url = $location.absUrl();
                      var lastSlash = url.lastIndexOf('/');
                      var year = url.slice(lastSlash + 1);
              
              
              Severity: Minor
              Found in Web.Admin/AdminApp/Controllers/controller.guestpackages.js - About 1 hr to fix

                Function _getWH has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _getWH : function() {
                
                        var $container = this.$( 'container' ),
                            $target = this.$( 'target' ),
                            self = this,
                Severity: Minor
                Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix

                  Function init has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          init : function(page, args) {
                              $.extend( this, args || {} );
                              $('#wpbody-content').css('overflow','hidden');
                              $('.meta-box-sortables').sortable({
                                  placeholder: 'sortable-placeholder',
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/js/postbox.dev.js - About 1 hr to fix

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

                            initialize: function() {
                                _.bindAll( this, 'setWidth' );
                    
                                // Add the button view
                                this.views.add( new revisions.view.Buttons({
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/js/revisions.js - About 1 hr to fix

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

                      Event.extend = (function() {
                        var methods = Object.keys(Event.Methods).inject({ }, function(m, name) {
                          m[name] = Event.Methods[name].methodize();
                          return m;
                        });
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 1 hr to fix

                        Function nth has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            nth: function(nodes, formula, root, reverse, ofType) {
                              if (nodes.length == 0) return [];
                              if (formula == 'even') formula = '2n+0';
                              if (formula == 'odd')  formula = '2n+1';
                              var h = Selector.handlers, results = [], indexed = [], m;
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 1 hr to fix

                          Function walk has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function walk(node) {
                                      var name = node.name, currentNode = node;
                          
                                      if (name === 'br') {
                                          text += '\n';

                            Function fit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    fit: function( dimensions ) {
                                        var width     = dimensions.width,
                                            height    = dimensions.height,
                                            maxWidth  = dimensions.maxWidth,
                                            maxHeight = dimensions.maxHeight,
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/js/media-models.js - About 1 hr to fix

                              Function toViews has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      toViews: function( content ) {
                                          var pieces = [ { content: content } ],
                                              current;
                              
                                          _.each( views, function( view, viewType ) {
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/js/mce-view.js - About 1 hr to fix

                                Function setParams has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                },setParams:function(){
                                this.imgW=this.img.width;
                                this.imgH=this.img.height;
                                if(!this.isIE){
                                Element.setStyle($(this.overlay),{width:this.imgW+"px",height:this.imgH+"px"});
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/js/crop/cropper.js - About 1 hr to fix

                                  Function nth has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      nth: function(nodes, formula, root, reverse, ofType) {
                                        if (nodes.length == 0) return [];
                                        if (formula == 'even') formula = '2n+0';
                                        if (formula == 'odd')  formula = '2n+1';
                                        var h = Selector.handlers, results = [], indexed = [], m;
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 hr to fix

                                    Function keyHandler has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        keyHandler : function(evt) {
                                            keyCode = evt.keyCode;    
                                            charCode = evt.charCode;
                                            fromChar = String.fromCharCode(charCode);
                                    
                                    
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/gecko.js - About 1 hr to fix

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

                                      Event.extend = (function() {
                                        var methods = Object.keys(Event.Methods).inject({ }, function(m, name) {
                                          m[name] = Event.Methods[name].methodize();
                                          return m;
                                        });
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 hr to fix

                                        Function renderSettings has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                renderSettings: function( browser ) {
                                                    var library = this.get('library'),
                                                        collectionType = this.get('collectionType'),
                                                        dragInfoText = this.get('dragInfoText'),
                                                        SettingsView = this.get('SettingsView'),
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language