CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function parse has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        JSON.parse = function (text, reviver) {

// The parse method takes a text and an optional reviver function, and returns
// a JavaScript value if the text is a valid JSON text.

Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/json2.dev.js - About 1 hr to fix

    Function render has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        render: function() {
            var self = this;
    
            this.search();
            this.uploader();
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/js/theme.js - About 1 hr to fix

      Function contingentController has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var contingentController = function ($scope, $http, dataService, $stateParams, $state) {
              $scope.model = {};
      
              $scope.loadContingent = loadContingent;
              $scope.totalAverage = totalAverage;
      Severity: Minor
      Found in Web.Admin/ClientApp/Controllers/controller.contingent.js - About 1 hr to fix

        Function PopupWindow_isClicked has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function PopupWindow_isClicked(e) {
            if (this.divName != null) {
                if (this.use_layers) {
                    var clickX = e.pageX;
                    var clickY = e.pageY;
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/js/colorpicker.dev.js - About 1 hr to fix

          Function _createButtons has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _createButtons : function() {
                      var t = this, ed = tinyMCE.activeEditor, DOM = tinymce.DOM, editButton, dellButton;
          
                      DOM.remove('wp_gallerybtns');
          
          

            Function onKeyPress has 33 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              onKeyPress: function(event) {
                if(this.active)
                  switch(event.keyCode) {
                   case Event.KEY_TAB:
                   case Event.KEY_RETURN:
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/controls.js - About 1 hr to fix

              Function createFilters has 33 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      createFilters: function() {
                          var filters = {};
              
                          _.each( media.view.settings.mimeTypes || {}, function( text, key ) {
                              filters[ key ] = {
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix

                Method install_theme_search has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function install_theme_search($page) {
                    global $theme_field_defaults;
                
                    $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
                    $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/theme-install.php - About 1 hr to fix

                  Function complete has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                      complete: function( thumb ) {
                  
                                          // shrink thumbnails to fit
                                          var top = ['left', 'top'],
                                              arr = ['Width', 'Height'],
                  Severity: Minor
                  Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

                    Function loop has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            loop: function() {
                    
                                var distance = this.to - this.pos,
                                    factor = 1;
                    
                    Severity: Minor
                    Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

                      Method get_cli_args has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function get_cli_args( $param, $required = false ) {
                          $args = $_SERVER['argv'];
                      
                          $out = array();
                      
                      
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-importer.php - About 1 hr to fix

                        Method gethchmod has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function gethchmod($file){
                                $perms = $this->getchmod($file);
                                if (($perms & 0xC000) == 0xC000) // Socket
                                    $info = 's';
                                elseif (($perms & 0xA000) == 0xA000) // Symbolic Link

                          Method wp_category_checklist has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true ) {
                              if ( empty($walker) || !is_a($walker, 'Walker') )
                                  $walker = new Walker_Category_Checklist;
                          
                              $descendants_and_self = (int) $descendants_and_self;
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

                            Method wp_ajax_send_attachment_to_editor has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function wp_ajax_send_attachment_to_editor() {
                                check_ajax_referer( 'media-send-to-editor', 'nonce' );
                            
                                $attachment = wp_unslash( $_POST['attachment'] );
                            
                            
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                              Method process_attachment has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function process_attachment($postdata, $remote_url) {
                                      if ($this->fetch_attachments and $remote_url) {
                                          printf( __('Importing attachment <em>%s</em>... '), htmlspecialchars($remote_url) );
                              
                                          // If the URL is absolute, but does not contain http, upload it assuming the base_site_url variable
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/import/wordpress.php - About 1 hr to fix

                                Method wp_authors_form has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function wp_authors_form() {
                                ?>
                                <h2><?php _e('Assign Authors'); ?></h2>
                                <p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as <code>admin</code>s entries.'); ?></p>
                                <?php
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/import/wordpress.php - About 1 hr to fix

                                  Method echo_entry has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function echo_entry() { ?>
                                  <entry xmlns="<?php echo $this->ATOM_NS ?>"
                                         xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>">
                                      <id><?php the_guid($GLOBALS['post']->ID); ?></id>
                                  <?php list($content_type, $content) = prep_atom_text_construct(get_the_title()); ?>
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

                                    Method blogger_getRecentPosts has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function blogger_getRecentPosts($args) {
                                    
                                            $this->escape($args);
                                    
                                            $blog_ID    = (int) $args[1]; /* though we don't use it yet */
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix

                                      Method auto_check_update_meta has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public static function auto_check_update_meta( $id, $comment ) {
                                      
                                              // failsafe for old WP versions
                                              if ( !function_exists('add_comment_meta') )
                                                  return false;

                                        Method spawn_cron has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function spawn_cron( $local_time = 0 ) {
                                        
                                            if ( !$local_time )
                                                $local_time = time();
                                        
                                        
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/cron.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language