CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function getDropFiles has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            getDropFiles: function (evt, callback){
                var
                      files = []
                    , dataTransfer = _getDataTransfer(evt)
                    , entrySupport = _isArray(dataTransfer.items) && dataTransfer.items[0] && _getAsEntry(dataTransfer.items[0])
Severity: Minor
Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

    Function MockHttpExpectation has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function MockHttpExpectation(method, url, data, headers) {
    
      this.data = data;
      this.headers = headers;
    
    
    Severity: Minor
    Found in Web.Admin/z-scripts/angular-mocks.js - About 1 hr to fix

      Function ResponsiveNav has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var ResponsiveNav = function (el, options) {
              var i;
      
              // Default options
              this.options = {
      Severity: Minor
      Found in Web.Admin/2015/js/responsive-nav.js - About 1 hr to fix

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

                _create: function() {
                    // bail early for unsupported Iris.
                    if ( ! $.support.iris )
                        return;
                    var self = this,
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/js/color-picker.js - About 1 hr to fix

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

                  ready: function() {
                      var control = this;
          
                      this.params.removed = this.params.removed || '';
          
          
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/js/customize-controls.js - About 1 hr to fix

            Function refreshKeyboardAccessibility has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    refreshKeyboardAccessibility : function() {
                        $( '.item-edit' ).off( 'focus' ).on( 'focus', function(){
                            $(this).off( 'keydown' ).on( 'keydown', function(e){
            
                                var arrows,
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/js/nav-menu.js - About 1 hr to fix

              Function setupPaging has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                              setupPaging: function() {
                                  var type = 'control-paging',
                                      j = 1,
                                      item,
                                      slide,

                Function setup has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    setup : function() {
                        var t = this, a, ed = t.editor, g, columns, link, order, orderby;
                        if ( ! t.mcemode ) return;
                
                        t.restoreSelection();
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/js/gallery.dev.js - About 1 hr to fix

                  Function formToArray has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  $.fn.formToArray = function(semantic) {
                      var a = [];
                      if (this.length == 0) return a;
                  
                      var form = this[0];
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.form.dev.js - About 1 hr to fix

                    Function autosave_parse_response has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function autosave_parse_response(response) {
                        var res = wpAjax.parseAjaxResponse(response, 'autosave'), message = '', postID, sup, url;
                    
                        if ( res && res.responses && res.responses.length ) {
                            message = res.responses[0].data; // The saved message or error.
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/js/autosave.dev.js - About 1 hr to fix

                      Function ensure has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              ensure: function( id, context ) {
                                  var diff     = this.get( id ),
                                      request  = this.requests[ id ],
                                      deferred = $.Deferred(),
                                      ids      = {},
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/js/revisions.js - About 1 hr to fix

                        Function ResponsiveNav has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            var ResponsiveNav = function (el, options) {
                                var i;
                        
                                // Default options
                                this.options = {
                        Severity: Minor
                        Found in Web.Admin/2014/js/responsive-nav.js - About 1 hr to fix

                          Function _setupSortable has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  _setupSortable: function() {
                                      var self = this;
                          
                                      this.isReordering = false;
                          
                          
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js - About 1 hr to fix

                            Function find has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function find(direction) {
                                        el = DOM.select(':input:enabled,*[tabindex]:not(iframe)');
                            
                                        function canSelectRecursive(e) {
                                            return e.nodeName === "BODY" || (e.type != 'hidden' &&

                              Function selector has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                    selector: function(instance) {
                                      var ret       = []; // Beginning matches
                                      var partial   = []; // Inside matches
                                      var entry     = instance.getToken();
                                      var count     = 0;
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/controls.js - About 1 hr to fix

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

                                        init: function() {
                                            inputs.wrap = $('#wp-link-wrap');
                                            inputs.dialog = $( '#wp-link' );
                                            inputs.backdrop = $( '#wp-link-backdrop' );
                                            inputs.submit = $( '#wp-link-submit' );
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/js/wplink.js - About 1 hr to fix

                                  Function draw has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    draw: function(point) {
                                      var pos = Position.cumulativeOffset(this.element);
                                      if(this.options.ghosting) {
                                        var r   = Position.realOffset(this.element);
                                        pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 1 hr to fix

                                    Function calculateMovingAverage has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        SWFUpload.speed.calculateMovingAverage = function (history) {
                                            var vals = [], size, sum = 0.0, mean = 0.0, varianceTemp = 0.0, variance = 0.0, standardDev = 0.0;
                                            var i;
                                            var mSum = 0, mCount = 0;
                                            

                                      Function initSortable has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              initSortable: function() {
                                                  var collection = this.collection;
                                      
                                                  if ( ! this.options.sortable || ! $.fn.sortable ) {
                                                      return;
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix

                                        Method get_sample_permalink has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function get_sample_permalink($id, $title = null, $name = null) {
                                            $post = &get_post($id);
                                            if (!$post->ID) {
                                                return array('', '');
                                            }
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language