terranodo/angular-search

View on GitHub

Showing 27 of 27 total issues

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

            service.createOrUpdateHeatMapLayer = function(hmData) {
                var existingHeatMapLayers, transformInteractionLayer, olVecSrc, newHeatMapLayer;

                hmData.heatmapRadius = 20;
                hmData.blur = 6;
Severity: Minor
Found in app/service/Map.js - About 1 hr to fix

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

                function startCsvExport(numberOfDocuments){
                    var config,
                        params = createParamsForGeospatialSearch();
                    if (params) {
                        params['d.docs.limit'] = angular.isNumber(numberOfDocuments) ?
    Severity: Minor
    Found in app/service/HeatMapSourceGenerator.js - About 1 hr to fix

      Function search has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  function search(changeUrl){
                      var config, params = createParamsForGeospatialSearch();
                      changeUrl = angular.isUndefined(changeUrl) || changeUrl ? true : false;
                      if (params) {
                          canceler.resolve();
      Severity: Minor
      Found in app/service/HeatMapSourceGenerator.js - About 1 hr to fix

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

                        function setHistogram(event, dataHistogram) {
                            if (!dataHistogram.counts.length) {
                                disableSlider(true);
                                return;
                            }
        Severity: Minor
        Found in app/components/histogram/HistogramDirective.js - About 1 hr to fix

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

                      vm.response = function(response) {
                          var data = response ? response.data : undefined;
                          if (data && data.mapConfig) {
                              var mapConf = data.mapConfig,
                                  appConf = data.appConfig,
          Severity: Minor
          Found in app/controller/Main.js - About 1 hr to fix

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

                        var rangeCheck = function(min,max, rangeFunc, clampFunc, extra) {
            Severity: Minor
            Found in app/service/Normalize.js - About 35 mins to fix

              Avoid too many return statements within this function.
              Open

                              return scaledValue;
              Severity: Major
              Found in app/service/Map.js - About 30 mins to fix
                Severity
                Category
                Status
                Source
                Language