CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function dataService has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var dataService = function ($http, $location) {
        var url = $location.absUrl();
        var host = $location.host();
        var firstSlash = url.indexOf('/', url.indexOf(host)) + 1;
        var currentYear = url.slice(firstSlash, firstSlash + 4);
Severity: Major
Found in Web.Admin/ClientApp/Services/service.data.js - About 3 hrs to fix

    Function getFixed has 89 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function getFixed()/*{{{*/
            {
                if (!options.aspectRatio) return getRect();
                // This function could use some optimization I think...
                var aspect = options.aspectRatio,
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js - About 3 hrs to fix

      File users.php has 315 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * Users administration panel.
       *
       * @package WordPress
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/users.php - About 3 hrs to fix

        Method wp_title has 89 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function wp_title($sep = '&raquo;', $display = true, $seplocation = '') {
            global $wpdb, $wp_locale, $wp_query;
        
            $cat = get_query_var('cat');
            $tag = get_query_var('tag_id');
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/general-template.php - About 3 hrs to fix

          Method _mime_types has 89 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function _mime_types($ext = '') {
              $mimes = array(
                'ai'    =>  'application/postscript',
                'aif'   =>  'audio/x-aiff',
                'aifc'  =>  'audio/x-aiff',
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 3 hrs to fix

            Method wp_install_defaults has 88 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_install_defaults($user_id) {
                global $wpdb;
            
                // Default category
                $cat_name = __('Uncategorized');
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 3 hrs to fix

              Method admin_help has 88 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function admin_help() {
                      $current_screen = get_current_screen();
              
                      // Screen Content
                      if ( current_user_can( 'manage_options' ) ) {

                Method mw_getPost has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function mw_getPost($args) {
                
                        $this->escape($args);
                
                        $post_ID     = (int) $args[0];
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 3 hrs to fix

                  Method wp_nav_menu has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function wp_nav_menu( $args = array() ) {
                      static $menu_id_slugs = array();
                  
                      $defaults = array( 'menu' => '', 'container' => 'div', 'container_class' => '', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' => '',
                      'echo' => true, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/nav-menu-template.php - About 3 hrs to fix

                    File class-wp.php has 313 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * WordPress environment setup class.
                     *
                     * @package WordPress
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/class-wp.php - About 3 hrs to fix

                      WP_Filesystem_SSH2 has 29 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
                      
                          var $link = false;
                          var $sftp_link = false;
                          var $keys = false;

                        WP_Filesystem_ftpsockets has 29 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
                            var $ftp = false;
                            var $errors = null;
                            var $options = array();
                        
                        

                          Function _setupModel has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  _setupModel: function() {
                                      var self = this,
                                          registeredSidebar = api.Widgets.registeredSidebars.get( this.params.sidebar_id );
                          
                                      this.setting.bind( function( newWidgetIds, oldWidgetIds ) {
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js - About 3 hrs to fix

                            Function create has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              create: function(element) {
                                element = $(element);
                                var options = Object.extend({ 
                                  element:     element,
                                  tag:         'li',       // assumes li children, override with tag: 'tagname'
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 3 hrs to fix

                              Method user_row has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function user_row( $user_object, $style = '', $role = '' ) {
                                  global $wp_roles;
                              
                                  $current_user = wp_get_current_user();
                              
                              
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 3 hrs to fix

                                Method wp_kses_hair has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function wp_kses_hair($attr, $allowed_protocols) {
                                    $attrarr = array ();
                                    $mode = 0;
                                    $attrname = '';
                                    $uris = array('xmlns', 'profile', 'href', 'src', 'cite', 'classid', 'codebase', 'data', 'usemap', 'longdesc', 'action');
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-includes/kses.php - About 3 hrs to fix

                                  Method wp_timezone_choice has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function wp_timezone_choice( $selected_zone ) {
                                      static $mo_loaded = false;
                                  
                                      $continents = array( 'Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific');
                                  
                                  
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-includes/functions.php - About 3 hrs to fix

                                    File edit-pages.php has 311 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    /**
                                     * Edit Pages Administration Panel.
                                     *
                                     * @package WordPress
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-admin/edit-pages.php - About 3 hrs to fix

                                      File class-wp-filesystem-ftpext.php has 310 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      <?php
                                      /**
                                       * WordPress FTP Filesystem.
                                       *
                                       * @package WordPress

                                        Method _wp_translate_postdata has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function _wp_translate_postdata( $update = false, $post_data = null ) {
                                        
                                            if ( empty($post_data) )
                                                $post_data = &$_POST;
                                        
                                        
                                        Severity: Major
                                        Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language