NLeSC/Cesium-NcWMS

View on GitHub

Showing 32 of 81 total issues

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

    function CesiumViewerService(Cesium) {
        return {
            init: function(element) {      
                this.clock = new Cesium.Clock({
                    multiplier : 500.0
Severity: Minor
Found in app/scripts/cesiumviewer/cesium-viewer.service.js - About 1 hr to fix

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

        function DecimalAdjust() {
            /**
             * Decimal adjustment of a number.
             * 
             * @param {String}
    Severity: Minor
    Found in app/scripts/util/decimaladjust.service.js - About 1 hr to fix

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

                  init: function(element) {      
                      this.clock = new Cesium.Clock({
                          multiplier : 500.0
                      });
                      this.clockViewModel = new Cesium.ClockViewModel(this.clock);
      Severity: Minor
      Found in app/scripts/cesiumviewer/cesium-viewer.service.js - About 1 hr to fix

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

          function PaletteController(NcwmsService, Messagebus, UserAgent) {
            this.mobile = UserAgent.mobile;
            this.getNcWMSdata = function() {
              return NcwmsService.ncWMSdata;
            };
        Severity: Minor
        Found in app/scripts/palette/palette.controller.js - About 1 hr to fix

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

                      this.addAxesAndLegend = function(svg, xAxis, yAxis, margin, chartWidth, chartHeight) {
                        var legendWidth = 0,
                          legendHeight = 0;
          
                        svg.append('clipPath')
          Severity: Minor
          Found in app/scripts/customgraph/customgraph.controller.js - About 1 hr to fix

            Function CustomGraphController has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              function CustomGraphController($scope, $window, $timeout, $http, d3Service, NcwmsService, Messagebus, UserAgent) {
            Severity: Major
            Found in app/scripts/customgraph/customgraph.controller.js - About 1 hr to fix

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

                          this.addAxesAndLegend = function(svg, xAxis, yAxis, margin, chartWidth, chartHeight) {
              Severity: Minor
              Found in app/scripts/customgraph/customgraph.controller.js - About 45 mins to fix

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

                  function OutlinesController($scope, $http, Cesium, CesiumViewerService, Messagebus, UserAgent) {
                Severity: Minor
                Found in app/scripts/outlines/outlines.controller.js - About 45 mins to fix

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

                    function CesiumNcwmsLayerController($q, $http, Cesium, CesiumViewerService, NcwmsService, Messagebus) {
                  Severity: Minor
                  Found in app/scripts/cesiumncwmslayer/cesium.ncwms.layer.controller.js - About 45 mins to fix

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

                                this.drawPaths = function(svg, data, x, y, chartWidth, chartHeight) {
                    Severity: Minor
                    Found in app/scripts/customgraph/customgraph.controller.js - About 45 mins to fix

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

                        function CesiumViewerController($scope, $http, Cesium, CesiumViewerService, Messagebus) {
                      Severity: Minor
                      Found in app/scripts/cesiumviewer/cesium-viewer.controller.js - About 35 mins to fix

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

                            this.getFeatureInfoSeries = function(selectedDataset, selectedPalette, boundingRect, callbackSuccess, callbackFailure) {
                        Severity: Minor
                        Found in app/scripts/ncwmsservice/ncwms.service.js - About 35 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language