CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Consider simplifying this complex logical expression.
Open

            if (agg.Package == null
                || agg.Package.ManitobaDinner != command.Package.ManitobaDinner
                || agg.Package.ManitobaDance != command.Package.ManitobaDance
                || agg.Package.FinalBanquet != command.Package.FinalBanquet
                || agg.Package.Transportation != command.Package.Transportation
Severity: Critical
Found in Aggregates/Participant/ParticipantCommandHandlers.cs - About 1 hr to fix

    Function ArrayType has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function ArrayType(type, mode) {
        function bindTo(type, callbackName) {
          return function() {
            return type[callbackName].apply(type, arguments);
          };
    Severity: Minor
    Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 hr to fix

      Function centresController has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var centresController = function ($http, $q, $location, dataService) {
              var url = $location.absUrl();
              var lastSlash = url.lastIndexOf('/');
              var year = url.slice(lastSlash + 1);
      
      
      Severity: Minor
      Found in Web.Admin/AdminApp/Controllers/controller.centres.js - About 1 hr to fix

        Function editDivisions has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function editDivisions(teams) {
                    var modalPromise = modalFactory.Divisions(teams);
        
                    modalPromise.then(function (data) {
                        //var currentTeams = $scope.model.Teams;
        Severity: Minor
        Found in Web.Admin/AdminApp/Controllers/controller.contingent.js - About 1 hr to fix

          Function practiceController has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var practiceController = function ($scope, $http, $q, $location, dataService) {
                  var url = $location.absUrl();
                  var lastSlash = url.lastIndexOf('/');
                  var province = url.slice(lastSlash + 1);
                  var year = url.slice(lastSlash - 4, lastSlash);
          Severity: Minor
          Found in Web.Admin/AdminApp/Controllers/controller.practice.js - About 1 hr to fix

            Function load has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Galleria.prototype.load = function() {
            
                // pass if no data is provided or flickr option not found
                if ( arguments.length || typeof this._options.flickr !== 'string' ) {
                    load.apply( this, Galleria.utils.array( arguments ) );
            Severity: Minor
            Found in Web.Admin/2015/js/galleria/plugins/flickr/galleria.flickr.js - About 1 hr to fix

              Function initialize has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  initialize: function( options ) {
                      var self = this;
              
                      // Set up parent
                      this.parent = options.parent;
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/js/theme.js - About 1 hr to fix

                Function paintElement has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        paintElement: function( $element, colorType ) {
                            var xml, encoded, color;
                
                            if ( ! colorType || ! colorscheme.hasOwnProperty( colorType ) ) {
                                return;
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/js/svg-painter.js - About 1 hr to fix

                  Function cb has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function cb() {
                              if (cbInvoked++) return;
                  
                              io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false);
                  
                  
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.form.dev.js - About 1 hr to fix

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

                            render: function() {
                                var options = _.defaults( this.model.toJSON(), {
                                        orientation:   'landscape',
                                        uploading:     false,
                                        type:          '',
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix

                      Function load has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      Galleria.prototype.load = function() {
                      
                          // pass if no data is provided or flickr option not found
                          if ( arguments.length || typeof this._options.flickr !== 'string' ) {
                              load.apply( this, Galleria.utils.array( arguments ) );
                      Severity: Minor
                      Found in Web.Admin/Content/galleria/plugins/flickr/galleria.flickr.js - About 1 hr to fix

                        Function setOptions has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          setOptions: function(options) {
                            this.options = Object.extend({
                              choices: 10,
                              partialSearch: true,
                              partialChars: 2,
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/controls.js - About 1 hr to fix

                          Method PclZipUtilPathReduction has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function PclZipUtilPathReduction($p_dir)
                            {
                              $v_result = "";
                          
                              // ----- Look for not empty path
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

                            Method PclZipUtilPathInclusion has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function PclZipUtilPathInclusion($p_dir, $p_path)
                              {
                                $v_result = 1;
                            
                                // ----- Look for path beginning by ./
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

                              Method privExtractFileUsingTempFile has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function privExtractFileUsingTempFile(&$p_entry, &$p_options)
                                {
                                  $v_result=1;
                              
                                  // ----- Creates a temporary file
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

                                Method inline_edit has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function inline_edit() {
                                        $tax = get_taxonomy( $this->screen->taxonomy );
                                
                                        if ( ! current_user_can( $tax->cap->edit_terms ) )
                                            return;

                                  Method make_site_theme_from_default has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function make_site_theme_from_default($theme_name, $template) {
                                      $site_dir = WP_CONTENT_DIR . "/themes/$template";
                                      $default_dir = WP_CONTENT_DIR . '/themes/default';
                                  
                                      // Copy files from the default theme to the site theme.
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 hr to fix

                                    Method wp_iframe has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function wp_iframe($content_func /* ... */) {
                                    ?>
                                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                                    <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
                                    <head>
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

                                      Method link_submit_meta_box has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function link_submit_meta_box($link) {
                                      ?>
                                      <div class="submitbox" id="submitlink">
                                      
                                      <div id="minor-publishing">
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-admin/includes/meta-boxes.php - About 1 hr to fix

                                        Method wp_getComment has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function wp_getComment($args) {
                                                $this->escape($args);
                                        
                                                $blog_id    = (int) $args[0];
                                                $username    = $args[1];
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language