NLeSC/PattyVis

View on GitHub

Showing 34 of 91 total issues

Function loadPointcloud has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    this.loadPointcloud = function() {
      // load pointcloud
      var pointcloudPath = DrivemapService.getPointcloudUrl();
      me.stats.lasCoordinates.crs = DrivemapService.getCrs();

Severity: Minor
Found in app/scripts/pointcloud/pointcloud.service.js - About 1 hr to fix

    Function DrivemapService has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function DrivemapService($http, $q, $log, proj4, pattyConf) {
        var me = this;
        this.data = {};
        var deferred = $q.defer();
    
    
    Severity: Minor
    Found in app/scripts/core/drivemap.service.js - About 1 hr 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 update has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            this.update = function() {
              if (this.initialized) {
                this.tools.volume.update();
                this.tools.transformation.update();
                this.tools.heightprofile.update();
        Severity: Minor
        Found in app/scripts/measuring/measuring.service.js - About 1 hr to fix

          Function getMousePointCloudIntersection has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function getMousePointCloudIntersection() {
                var vector = new THREE.Vector3(mouse.x, mouse.y, 0.5);
                vector.unproject(camera);
                var direction = vector.sub(camera.position).normalize();
                var ray = new THREE.Ray(camera.position, direction);
          Severity: Minor
          Found in app/scripts/pointcloud/pointcloud.service.js - About 1 hr to fix

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

              function KeyboardController($rootScope, PathControls, PointcloudService, CameraService) {
                this.up = false;
                this.left = false;
                this.down = false;
                this.right = false;
            Severity: Minor
            Found in app/scripts/keyboard/keyboard.controller.js - About 1 hr to fix

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

                    getBoundingBoxOfFootprint: function(site) {
                      var minlon = Number.POSITIVE_INFINITY;
                      var minlat = Number.POSITIVE_INFINITY;
                      var minalt = site.footprint_altitude[0]; // jshint ignore:line
                      var maxlon = Number.NEGATIVE_INFINITY;
              Severity: Minor
              Found in app/scripts/core/sites.service.js - About 1 hr to fix

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

                    PathControls.prototype.createPath = function() {
                        var tube = new THREE.TubeGeometry(path, 1024, 0.25, 8, false);
                        var lookTube = new THREE.TubeGeometry(lookatPath, 1024, 0.25, 8, false);
                
                        var tubeMesh = THREE.SceneUtils.createMultiMaterialObject( tube, [
                Severity: Minor
                Found in app/scripts/pointcloud/path.controls.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

                      Function SiteBoxService has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        function SiteBoxService(THREE, SitesService, CameraService, SceneService, Messagebus) {
                      Severity: Minor
                      Found in app/scripts/pointcloud/site-box.service.js - About 35 mins to fix

                        Function CameraService has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          function CameraService($window, $log, THREE, Messagebus, SceneService) {
                        Severity: Minor
                        Found in app/scripts/pointcloud/camera.service.js - About 35 mins to fix

                          Function SitesService has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                            function SitesService($http, $q, $rootScope, pattyConf, Messagebus) {
                          Severity: Minor
                          Found in app/scripts/core/sites.service.js - About 35 mins to fix

                            Function DrivemapService has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              function DrivemapService($http, $q, $log, proj4, pattyConf) {
                            Severity: Minor
                            Found in app/scripts/core/drivemap.service.js - About 35 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language