ocadotechnology/rapid-router

View on GitHub

Showing 697 of 1,371 total issues

Function renderRoad has 183 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  this.renderRoad = function (nodes) {
    for (let i = 0; i < roadImages.length; i++) {
      let image = roadImages[i]
      if (image) {
        image.remove()
Severity: Major
Found in game/static/game/js/drawing.js - About 7 hrs to fix

    File character.js has 465 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    'use strict';
    
    var ocargo = ocargo || {};
    
    ocargo.circumference = function (radius) {
    Severity: Minor
    Found in game/static/game/js/character.js - About 7 hrs to fix

      File foundation.clearing.js has 462 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      ;(function ($, window, document, undefined) {
        'use strict';
      
        Foundation.libs.clearing = {
          name : 'clearing',
      Severity: Minor
      Found in game/static/game/js/foundation/foundation/foundation.clearing.js - About 7 hrs to fix

        File foundation.js has 460 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
         * Foundation Responsive Library
         * http://foundation.zurb.com
         * Copyright 2014, ZURB
         * Free to use under the MIT license.
        Severity: Minor
        Found in game/static/game/js/foundation/foundation/foundation.js - About 7 hrs to fix

          Function _fnClone has 169 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              "_fnClone": function ( oClone, oGrid, aiColumns, bAll )
              {
                  var that = this,
                      i, iLen, j, jLen, jq, nTarget, iColumn, nClone, iIndex, aoCloneLayout,
                      jqCloneThead, aoFixedHeader,
          Severity: Major
          Found in game/static/game/js/dataTables.fixedColumns.js - About 6 hrs to fix

            File 0086_loop_levels.py has 446 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            import json
            
            from django.apps.registry import Apps
            from django.db import migrations
            
            
            Severity: Minor
            Found in game/migrations/0086_loop_levels.py - About 6 hrs to fix

              Function template has 167 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function template(templateSpec, env) {
                    /* istanbul ignore next */
                    if (!env) {
                      throw new _exception2['default']('No environment passed to template');
                    }
              Severity: Major
              Found in game/static/game/js/handlebars.runtime-v4.7.7.js - About 6 hrs to fix

                Function performAnimation has 161 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                ocargo.Animation.prototype.performAnimation = function(animation) {
                    // Duration is either custom set (for each element) or generic
                    var duration = animation.animationLength || this.animationDuration;
                
                    switch (animation.type) {
                Severity: Major
                Found in game/static/game/js/animation.js - About 6 hrs to fix

                  File oc.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  // This file was automatically generated.  Do not modify.
                  
                  'use strict';
                  
                  goog.provide('Blockly.Msg.oc');
                  Severity: Minor
                  Found in game/static/game/js/blockly/msg/js/oc.js - About 6 hrs to fix

                    File fa.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    // This file was automatically generated.  Do not modify.
                    
                    'use strict';
                    
                    goog.provide('Blockly.Msg.fa');
                    Severity: Minor
                    Found in game/static/game/js/blockly/msg/js/fa.js - About 6 hrs to fix

                      File da.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      // This file was automatically generated.  Do not modify.
                      
                      'use strict';
                      
                      goog.provide('Blockly.Msg.da');
                      Severity: Minor
                      Found in game/static/game/js/blockly/msg/js/da.js - About 6 hrs to fix

                        File mk.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        // This file was automatically generated.  Do not modify.
                        
                        'use strict';
                        
                        goog.provide('Blockly.Msg.mk');
                        Severity: Minor
                        Found in game/static/game/js/blockly/msg/js/mk.js - About 6 hrs to fix

                          File he.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          // This file was automatically generated.  Do not modify.
                          
                          'use strict';
                          
                          goog.provide('Blockly.Msg.he');
                          Severity: Minor
                          Found in game/static/game/js/blockly/msg/js/he.js - About 6 hrs to fix

                            File ig.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            // This file was automatically generated.  Do not modify.
                            
                            'use strict';
                            
                            goog.provide('Blockly.Msg.ig');
                            Severity: Minor
                            Found in game/static/game/js/blockly/msg/js/ig.js - About 6 hrs to fix

                              File nb.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              // This file was automatically generated.  Do not modify.
                              
                              'use strict';
                              
                              goog.provide('Blockly.Msg.nb');
                              Severity: Minor
                              Found in game/static/game/js/blockly/msg/js/nb.js - About 6 hrs to fix

                                File be.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                // This file was automatically generated.  Do not modify.
                                
                                'use strict';
                                
                                goog.provide('Blockly.Msg.be');
                                Severity: Minor
                                Found in game/static/game/js/blockly/msg/js/be.js - About 6 hrs to fix

                                  File ru.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  // This file was automatically generated.  Do not modify.
                                  
                                  'use strict';
                                  
                                  goog.provide('Blockly.Msg.ru');
                                  Severity: Minor
                                  Found in game/static/game/js/blockly/msg/js/ru.js - About 6 hrs to fix

                                    File de.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    // This file was automatically generated.  Do not modify.
                                    
                                    'use strict';
                                    
                                    goog.provide('Blockly.Msg.de');
                                    Severity: Minor
                                    Found in game/static/game/js/blockly/msg/js/de.js - About 6 hrs to fix

                                      File ab.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      // This file was automatically generated.  Do not modify.
                                      
                                      'use strict';
                                      
                                      goog.provide('Blockly.Msg.ab');
                                      Severity: Minor
                                      Found in game/static/game/js/blockly/msg/js/ab.js - About 6 hrs to fix

                                        File es.js has 430 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        // This file was automatically generated.  Do not modify.
                                        
                                        'use strict';
                                        
                                        goog.provide('Blockly.Msg.es');
                                        Severity: Minor
                                        Found in game/static/game/js/blockly/msg/js/es.js - About 6 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language