NLeSC/Cesium-NcWMS

View on GitHub

Showing 32 of 81 total issues

Function CustomGraphController has 374 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function CustomGraphController($scope, $window, $timeout, $http, d3Service, NcwmsService, Messagebus, UserAgent) {
    this.mobile = UserAgent.mobile;
    
    this.selectedLabel = '';
    this.selectedUnits = '';
Severity: Major
Found in app/scripts/customgraph/customgraph.controller.js - About 1 day to fix

    Function exports has 362 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 init has 299 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          this.init = function(element, attrs) {
            this.dragging = false;
      
            var container = element.children[0].children[1];
            var hoverContainer, hoverLine, hoverLineXOffset, hoverLineYOffset, hoverLineGroup,
      Severity: Major
      Found in app/scripts/customgraph/customgraph.controller.js - About 1 day to fix

        Function NcwmsService has 273 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function NcwmsService($q, $http, Messagebus) {
            this.ncWMSURL = 'http://localhost:8080/ncWMS-2.0-rc1-maartenvm/wms?';
        
            var deferred = $q.defer();
            this.ready = deferred.promise;
        Severity: Major
        Found in app/scripts/ncwmsservice/ncwms.service.js - About 1 day to fix

          Function render has 259 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  this.render = function(data) {
                    // remove all previous items before render
                    d3.select(container).selectAll('*').remove();
          
                    if (!this.activated) {
          Severity: Major
          Found in app/scripts/customgraph/customgraph.controller.js - About 1 day to fix

            File customgraph.controller.js has 380 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            (function() {
              'use strict';
              /*
                source: D3 example @ http://bl.ocks.org/rkirsling/33a9e350516da54a5d4f
              */
            Severity: Minor
            Found in app/scripts/customgraph/customgraph.controller.js - About 5 hrs to fix

              Function CesiumNcwmsLayerController has 122 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function CesiumNcwmsLayerController($q, $http, Cesium, CesiumViewerService, NcwmsService, Messagebus) {
                  this.selectedTime = new Date(Date.UTC(1960, 0, 31, 0, 0, 0));
                  Messagebus.subscribe('ncwmsTimeSelected', function(event, value) {
                    if (this.selectedTime !== value) {
                      this.selectedTime = value;
              Severity: Major
              Found in app/scripts/cesiumncwmslayer/cesium.ncwms.layer.controller.js - About 4 hrs to fix

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

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

                  Function CesiumViewerController has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function CesiumViewerController($scope, $http, Cesium, CesiumViewerService, Messagebus) {
                      this.lastClicked = {
                        'latitude': '',
                        'longitude': '',
                        'meanValue': '',
                  Severity: Major
                  Found in app/scripts/cesiumviewer/cesium-viewer.controller.js - About 3 hrs to fix

                    Function getFeatureInfoSeries has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        this.getFeatureInfoSeries = function(selectedDataset, selectedPalette, boundingRect, callbackSuccess, callbackFailure) {
                          if (this.datasets.length === 0) {
                            return;
                          }
                    
                    
                    Severity: Major
                    Found in app/scripts/ncwmsservice/ncwms.service.js - About 3 hrs to fix

                      Function drawPaths has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  this.drawPaths = function(svg, data, x, y, chartWidth, chartHeight) {
                                    var pathContainer = svg.append('g');
                      
                                    var upperOuterArea = d3.svg.area()
                                      .interpolate('basis')
                      Severity: Major
                      Found in app/scripts/customgraph/customgraph.controller.js - About 3 hrs to fix

                        Function makeChart has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    this.makeChart = function(data) {
                                      var svgWidth = width;
                                      var svgHeight = width / 2;
                                      var margin = {
                                        top: 20,
                        Severity: Major
                        Found in app/scripts/customgraph/customgraph.controller.js - About 3 hrs to fix

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

                              this.init = function() {
                                // load JSON data
                                $http.get('serverconfig.json').then(function(res) {
                                  if (res.data.id === 'ncWMS') {
                                    this.ncWMSURL = res.data.url;
                          Severity: Major
                          Found in app/scripts/ncwmsservice/ncwms.service.js - About 3 hrs to fix

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

                            (function() {
                              'use strict';
                            
                              function NcwmsService($q, $http, Messagebus) {
                                this.ncWMSURL = 'http://localhost:8080/ncWMS-2.0-rc1-maartenvm/wms?';
                            Severity: Minor
                            Found in app/scripts/ncwmsservice/ncwms.service.js - About 2 hrs to fix

                              Function success has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      this.getMenu().then(function success(menuPromise) {
                                        // Build an array containing our datasets (--NG--)
                                        this.datasets = this.loadMenu(menuPromise);
                                        // Store the first dataset as our 'currently selected' dataset
                                        // (--NG--)
                              Severity: Major
                              Found in app/scripts/ncwmsservice/ncwms.service.js - About 2 hrs to fix

                                Function BigLegendController has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function BigLegendController($scope, DecimalAdjust, Messagebus, UserAgent) {
                                    this.mobile = UserAgent.mobile;
                                
                                    this.logarithmic = false;
                                    Messagebus.subscribe('logarithmicChange', function(event, value) {
                                Severity: Major
                                Found in app/scripts/biglegend/biglegend.controller.js - About 2 hrs to fix

                                  Function repaintColorMap has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      this.repaintColorMap = function() {
                                        if (!NcwmsService.initialized) {
                                          return;
                                        }
                                  
                                  
                                  Severity: Major
                                  Found in app/scripts/cesiumncwmslayer/cesium.ncwms.layer.controller.js - About 2 hrs to fix

                                    Function loadMenu has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        this.loadMenu = function(menuPromiseResolve) {
                                          var result = [];
                                    
                                          this.ncWMSdata.metadata = menuPromiseResolve.data.children;
                                          menuPromiseResolve.data.children.forEach(function(dataset) {
                                    Severity: Major
                                    Found in app/scripts/ncwmsservice/ncwms.service.js - About 2 hrs to fix

                                      Function addPicking has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          this.addPicking = function() {
                                            var ellipsoid = CesiumViewerService.viewer.scene.globe.ellipsoid;
                                            //var labels = new Cesium.LabelCollection();
                                            //labels.add();
                                            //CesiumViewerService.viewer.scene.primitives.add(labels);
                                      Severity: Minor
                                      Found in app/scripts/cesiumviewer/cesium-viewer.controller.js - About 1 hr to fix

                                        Function OutlinesController has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function OutlinesController($scope, $http, Cesium, CesiumViewerService, Messagebus, UserAgent) {
                                            this.mobile = UserAgent.mobile;
                                            this.outlines = false;
                                            this.values = [];
                                        
                                        
                                        Severity: Minor
                                        Found in app/scripts/outlines/outlines.controller.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language