NLeSC/PattyVis

View on GitHub

Showing 34 of 91 total issues

Function exports has 397 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(grunt) {

  // Load grunt tasks automatically
  require('load-grunt-tasks')(grunt);

Severity: Major
Found in Gruntfile.js - About 1 day to fix

    Function PointcloudService has 390 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function PointcloudService(THREE, Potree, $window, $rootScope,
        DrivemapService,
        SitesService, CameraService, SceneService,
        PathControls, SiteBoxService, MeasuringService, Messagebus) {
    
    
    Severity: Major
    Found in app/scripts/pointcloud/pointcloud.service.js - About 1 day to fix

      Function SiteBoxService has 211 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function SiteBoxService(THREE, SitesService, CameraService, SceneService, Messagebus) {
          var me = this;
      
          var raycaster = new THREE.Raycaster();
          raycaster.params = {
      Severity: Major
      Found in app/scripts/pointcloud/site-box.service.js - About 1 day to fix

        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 SitesService has 171 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function SitesService($http, $q, $rootScope, pattyConf, Messagebus) {
          
              function onLoad(data) {
                service.all = data;
                service.filtered = data;
          Severity: Major
          Found in app/scripts/core/sites.service.js - About 6 hrs to fix

            Function MeasuringService has 159 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function MeasuringService($rootScope, Potree, THREE, $window) {
                this.tools = {
                  distance: null,
                  angle: null,
                  area: null,
            Severity: Major
            Found in app/scripts/measuring/measuring.service.js - About 6 hrs to fix

              File Gruntfile.js has 400 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              // Generated on 2015-01-07 using generator-angular 0.10.0
              'use strict';
              
              // # Globbing
              // for performance reasons we're only matching one level down:
              Severity: Minor
              Found in Gruntfile.js - About 5 hrs to fix

                File pointcloud.service.js has 400 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /* global requestAnimationFrame:false */
                (function() {
                  'use strict';
                
                  function PointcloudService(THREE, Potree, $window, $rootScope,
                Severity: Minor
                Found in app/scripts/pointcloud/pointcloud.service.js - About 5 hrs to fix

                  Function MeasuringController has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function MeasuringController(MeasuringService) {
                      this.showToolboxTray = false;
                      this.showTransformationToolboxTray = false;
                  
                      this.distanceActive = false;
                  Severity: Major
                  Found in app/scripts/measuring/measuring.controller.js - About 4 hrs to fix

                    File path.controls.js has 371 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*
                     *  PathControls
                     *  by Ben van Werkhoven (Netherlands eScience Center)
                     *
                     *  free look around with mouse drag
                    Severity: Minor
                    Found in app/scripts/pointcloud/path.controls.js - About 4 hrs to fix

                      Function SearchPanelController has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function SearchPanelController(SitesService, PointcloudService, NexusService, Messagebus) {
                          this.pageSize = 2;
                          this.currentPage = 1;
                          this.SitesService = SitesService;
                          this.Messagebus = Messagebus;
                      Severity: Major
                      Found in app/scripts/searchbox/searchbox.controller.js - About 3 hrs to fix

                        Function set has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              set: function(query) {
                                if (this._query === query) {
                                  return;
                                }
                                this._query = query;
                        Severity: Major
                        Found in app/scripts/core/sites.service.js - About 2 hrs to fix

                          Function NexusService has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function NexusService(Presenter, SphereTrackball) {
                              var service = {};
                              service.siteShown = false;
                              service.setTarget = function(element) {
                                this.presenter = new Presenter(element);
                          Severity: Major
                          Found in app/scripts/nexus/nexus.service.js - About 2 hrs to fix

                            Function searched has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                      this.filtered = this.searched = this.all.filter(function(site) {
                                        var descriptionSite = site.description_site; // jshint ignore:line
                                        var siteInterpretation = site.site_interpretation; // jshint ignore:line
                                        var siteContext = site.site_context; // jshint ignore:line
                                        var allText = descriptionSite +
                            Severity: Major
                            Found in app/scripts/core/sites.service.js - About 2 hrs to fix

                              Function CameraService has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function CameraService($window, $log, THREE, Messagebus, SceneService) {
                                  var me = this;
                                  var fov = 75;
                                  var width = $window.innerWidth;
                                  var height = $window.innerHeight;
                              Severity: Major
                              Found in app/scripts/pointcloud/camera.service.js - About 2 hrs to fix

                                Function createSiteBox has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    this.createSiteBox = function(site) {
                                      var bBox;
                                
                                      var siteCenter = SitesService.centerOfSite(site);
                                      //var boxSize = SitesService.getBoundingBoxSize(site);
                                Severity: Major
                                Found in app/scripts/pointcloud/site-box.service.js - About 2 hrs to fix

                                  Function addTextLabel has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      this.addTextLabel = function(siteBox) {
                                        // parameters
                                        var canvasSize = 1000; // pt != on-screen pixels
                                        var fontsize = 40; // pt (same as canvas size)
                                        var textBoxPadding = fontsize / 2; // pt
                                  Severity: Minor
                                  Found in app/scripts/pointcloud/site-box.service.js - About 1 hr to fix

                                    Function update has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        this.update = function() {
                                          if (pointcloud) {
                                            pointcloud.material.clipMode = me.settings.clipMode;
                                            pointcloud.material.size = me.settings.pointSize;
                                            pointcloud.visiblePointsTarget = me.settings.pointCountTarget * 1000 * 1000;
                                    Severity: Minor
                                    Found in app/scripts/pointcloud/pointcloud.service.js - About 1 hr to fix

                                      Function PointcloudService has 12 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                        function PointcloudService(THREE, Potree, $window, $rootScope,
                                          DrivemapService,
                                          SitesService, CameraService, SceneService,
                                          PathControls, SiteBoxService, MeasuringService, Messagebus) {
                                      Severity: Major
                                      Found in app/scripts/pointcloud/pointcloud.service.js - About 1 hr to fix

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

                                          function CamFrustumService(ol, proj4, DrivemapService) {
                                            var olProjectionCode = 'EPSG:3857';
                                            var siteProjectionCode = null;
                                        
                                            DrivemapService.ready.then(function() {
                                        Severity: Minor
                                        Found in app/scripts/minimap/cam-frustum.service.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language