CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function link has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            link: function (scope, element, attrs) {
                scope.$watch('shots', function () {
                    scope.shots = (scope.shots || '').toUpperCase();
                    scope.game = { frames: [], score: 0, fouls: 0 };

Severity: Major
Found in Web.Admin/ClientApp/Controllers/controller.results.js - About 2 hrs to fix

    Function InlineWindowManager has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    tinymce.WPWindowManager = tinymce.InlineWindowManager = function( editor ) {
        if ( this.wp ) {
            return this;
        }
    
    

      Function add has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          add: function(handleObj) {
      
              var getCoords = function(e) {
                  if ( e.touches && e.touches.length ) {
                      var touch = e.touches[0];
      Severity: Major
      Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 2 hrs to fix

        Method js_1 has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function js_1() { ?>
        <script type="text/javascript">
            var buttons = ['#name', '#desc', '#pickcolor', '#defaultcolor'];
            var farbtastic;
        
        
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/custom-header.php - About 2 hrs to fix

          Method twentythirteen_admin_header_style has 55 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function twentythirteen_admin_header_style() {
              $header_image = get_header_image();
          ?>
              <style type="text/css" id="twentythirteen-admin-header-css">
              .appearance_page_custom-header #headimg {

            Method login_header has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function login_header($title = 'Log In', $message = '', $wp_error = '') {
                global $error, $is_iphone, $interim_login;
            
                // Don't index any of these forms
                add_filter( 'pre_option_blog_public', create_function( '$a', 'return 0;' ) );
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-login.php - About 2 hrs to fix

              Method wp_underscore_video_template has 55 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function wp_underscore_video_template() {
                  $video_types = wp_get_video_extensions();
              ?>
              <#  var w, h, settings = wp.media.view.settings,
                      isYouTube = ! _.isEmpty( data.model.src ) && data.model.src.match(/youtube|youtu\.be/);
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/media-template.php - About 2 hrs to fix

                Method wp_get_nav_menu_items has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function wp_get_nav_menu_items( $menu, $args = array() ) {
                    $menu = wp_get_nav_menu_object( $menu );
                
                    if ( ! $menu )
                        return false;
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/nav-menu.php - About 2 hrs to fix

                  File po.php has 258 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Class for working with PO files
                   *
                   * @version $Id: po.php 283 2009-09-23 16:21:51Z nbachiyski $
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/pomo/po.php - About 2 hrs to fix

                    getID3 has 21 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class getID3
                    {
                        // public: Settings
                        public $encoding        = 'UTF-8';        // CASE SENSITIVE! - i.e. (must be supported by iconv()). Examples:  ISO-8859-1  UTF-8  UTF-16  UTF-16BE
                        public $encoding_id3v1  = 'ISO-8859-1';   // Should always be 'ISO-8859-1', but some tags may be written in other encodings such as 'EUC-CN' or 'CP1252'
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 2 hrs to fix

                      WP_Admin_Bar has 21 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class WP_Admin_Bar {
                          private $nodes = array();
                          private $bound = false;
                          public $user;
                      
                      
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-admin-bar.php - About 2 hrs to fix

                        WP_Query has 21 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class WP_Query {
                        
                            /**
                             * Query string
                             *
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/query.php - About 2 hrs to fix

                          Class ParticipantAggregate has 21 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                              public class ParticipantAggregate : Aggregate,
                                  IApplyEvent<ParticipantCreated>,
                                  IApplyEvent<ParticipantRenamed>,
                                  IApplyEvent<ParticipantAssignedToContingent>,
                                  IApplyEvent<ParticipantAssignedToTeam>,
                          Severity: Minor
                          Found in Aggregates/Participant/ParticipantAggregate.cs - About 2 hrs to fix

                            SMTP has 21 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class SMTP
                            {
                              /**
                               *  SMTP server port
                               *  @var int
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/class-smtp.php - About 2 hrs to fix

                              Function link has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      link: function (scope, element, attr) {
                                          // again we need the native object
                                          var el = element[0];
                              
                                          el.addEventListener(
                              Severity: Major
                              Found in Web.Admin/AdminApp/Directives/directive.droppable.js - About 2 hrs to fix

                                Function show has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  Tooltip.prototype.show = function () {
                                    var e = $.Event('show.bs.' + this.type)
                                
                                    if (this.hasContent() && this.enabled) {
                                      this.$element.trigger(e)
                                Severity: Major
                                Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 2 hrs to fix

                                  Method users2wp has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function users2wp($users='')
                                      {
                                          // General Housekeeping
                                          global $wpdb;
                                          $count = 0;
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 2 hrs to fix

                                    Method wp_newComment has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function wp_newComment($args) {
                                            global $wpdb;
                                    
                                            $this->escape($args);
                                    
                                    
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/xmlrpc.php - About 2 hrs to fix

                                      Method get_type has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function get_type()
                                          {
                                              if (isset($this->file->headers['content-type']))
                                              {
                                                  if (!isset($this->file->headers['content-encoding'])

                                        Method interleave_changed_lines has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function interleave_changed_lines( $orig, $final ) {
                                        
                                                // Contains all pairwise string comparisons.  Keys are such that this need only be a one dimensional array.
                                                $matches = array();
                                                foreach ( array_keys($orig) as $o ) {
                                        Severity: Major
                                        Found in Web.Admin/2014/wordpress/wp-includes/wp-diff.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language