CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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 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 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 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 scroll has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    scroll: function() {
                      var current = new Date();
                      var delta = current - this.lastScrolled;
                      this.lastScrolled = current;
                      if(this.options.scroll == window) {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.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

                      Method privAddList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function privAddList($p_filedescr_list, &$p_result_list, &$p_options)
                        {
                          $v_result=1;
                      
                          // ----- Add the files
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

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

                          Affix.prototype.checkPosition = function () {
                            if (!this.$element.is(':visible')) return
                        
                            var height       = this.$element.height()
                            var offset       = this.options.offset
                        Severity: Minor
                        Found in Web.Admin/Content/bootstrap/js/bootstrap.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/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

                            Method SetServer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function SetServer($host, $port=21, $reconnect=true) {
                                    if(!is_long($port)) {
                                        $this->verbose=true;
                                        $this->SendMSG("Incorrect port syntax");
                                        return FALSE;
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 hr to fix

                              Method connect has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function connect($server=NULL) {
                                      if(!empty($server)) {
                                          if(!$this->SetServer($server)) return false;
                                      }
                                      if($this->_ready) return true;
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 hr to fix

                                Method add_menu_classes has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function add_menu_classes($menu) {
                                
                                    $first = $lastorder = false;
                                    $i = 0;
                                    $mc = count($menu);
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/menu.php - About 1 hr to fix

                                  Method wp_delete_user has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function wp_delete_user($id, $reassign = 'novalue') {
                                      global $wpdb;
                                  
                                      $id = (int) $id;
                                      $user = new WP_User($id);
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/includes/user.php - About 1 hr to fix

                                    Method get_plugin_files has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function get_plugin_files($plugin) {
                                        $plugin_file = WP_PLUGIN_DIR . '/' . $plugin;
                                        $dir = dirname($plugin_file);
                                        $plugin_files = array($plugin);
                                        if ( is_dir($dir) && $dir != WP_PLUGIN_DIR ) {
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 1 hr to fix

                                      Method wp_ajax_add_user has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function wp_ajax_add_user( $action ) {
                                          global $wp_list_table;
                                          if ( empty( $action ) )
                                              $action = 'add-user';
                                      
                                      
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                                        Method wp_ajax_edit_comment has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function wp_ajax_edit_comment() {
                                            global $wp_list_table;
                                        
                                            check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' );
                                        
                                        
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language