isikyus/aeldardin-rooms

View on GitHub

Showing 7 of 35 total issues

Function addListeners has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var addListeners = function(container, store) {
    var $container = $(container);

    $container.on('click', '.js-select-checkbox', function(event) {
      var $checkbox = $(this),
Severity: Major
Found in text_renderer.js - About 3 hrs to fix

    Function hitRegions has 77 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var hitRegions = function(canvas) {
    
        /*
         * The mouse events hit regions are sensitive to.
         *
    Severity: Major
    Found in hit_regions.js - About 3 hrs to fix

      Function addListeners has 68 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        var addListeners = function(canvas, store) {
          var regions = hitRegions(canvas);
      
          regions.reset();
          var map = store.getState().map.state;
      Severity: Major
      Found in canvas_renderer.js - About 2 hrs to fix

        Function buildSymbols has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          var buildSymbols = function(options) {
            var o = options;
            var base = baseSymbols(options);
        
            return {
        Severity: Minor
        Found in symbols/dnd.js - About 1 hr to fix

          Function renderAddDoor has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            var renderAddDoor = function(pendingState, container) {
              var $container = $(container),
                  doorDetails = pendingState.action.payload,
                  map = pendingState.state;
          
          
          Severity: Minor
          Found in text_renderer.js - About 1 hr to fix

            Function buildSymbols has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              var buildSymbols = function(options) {
                var o = options;
            
                return {
                  blankDoorArea : function(context, offset) {
            Severity: Minor
            Found in symbols/base.js - About 1 hr to fix

              Function dashedLine has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                    dashedLine : function(context, x1, length, y, dashLength, spacing) {
              Severity: Minor
              Found in symbols/base.js - About 45 mins to fix
                Severity
                Category
                Status
                Source
                Language