NLeSC/PattyVis

View on GitHub
app/scripts/minimap/minimap.controller.js

Summary

Maintainability
C
1 day
Test Coverage

Function MinimapController has 195 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function MinimapController(ol, proj4, SitesService, CamFrustumService, Messagebus, DrivemapService) {
    var me = this;

    var olProjectionCode = 'EPSG:3857';
    var siteProjectionCode = null;
Severity: Major
Found in app/scripts/minimap/minimap.controller.js - About 7 hrs to fix

    Function setupResizeControl has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        this.setupResizeControl = function() {
          function ResizeControl(optOptions) {
            var options = optOptions || {};
    
            var button = document.createElement('button');
    Severity: Minor
    Found in app/scripts/minimap/minimap.controller.js - About 1 hr to fix

      Function ResizeControl has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            function ResizeControl(optOptions) {
              var options = optOptions || {};
      
              var button = document.createElement('button');
              button.innerHTML = '<span class="glyphicon glyphicon-resize-full"></span>';
      Severity: Minor
      Found in app/scripts/minimap/minimap.controller.js - About 1 hr to fix

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

          function MinimapController(ol, proj4, SitesService, CamFrustumService, Messagebus, DrivemapService) {
        Severity: Minor
        Found in app/scripts/minimap/minimap.controller.js - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status