terranodo/angular-search

View on GitHub

Showing 25 of 27 total issues

Function timeHistogram has 228 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function timeHistogram($rootScope, HeatMapSourceGenerator,
            searchFilter, DateTimeService, NumberService) {
            var directive = {
                templateUrl: 'components/histogram/histogram.tpl.html',
                restrict: 'EA',
Severity: Major
Found in app/components/histogram/HistogramDirective.js - About 1 day to fix

    File Map.js has 537 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*eslint angular/di: [2,"array"]*/
    /*eslint angular/document-service: 2*/
    /*eslint max-len: [2,100]*/
    /**
     * Map service
    Severity: Major
    Found in app/service/Map.js - About 1 day to fix

      Function link has 219 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  function link(scope, element, attr) {
                      var HistogramBars;
                      var vm = scope;
      
                      vm.barId = attr.barid;
      Severity: Major
      Found in app/components/histogram/HistogramDirective.js - About 1 day to fix

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

        module.exports = function(grunt) {
        
            grunt.loadNpmTasks('grunt-contrib-clean');
            grunt.loadNpmTasks('grunt-gh-pages');
            grunt.loadNpmTasks('grunt-contrib-watch');
        Severity: Major
        Found in Gruntfile.js - About 4 hrs to fix

          Function keywordInput has 116 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function keywordInput(HeatMapSourceGenerator, searchFilter, $window, filterKeywordService) {
          
                      return {
                          link: keywordInputLink,
                          restrict: 'EA',
          Severity: Major
          Found in app/components/keywordInput/keywordInputDirective.js - About 4 hrs to fix

            Function keywordInputLink has 102 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        function keywordInputLink(scope) {
                            var vm = scope;
                            var numberKeywords = vm.numberKeywords || 5;
            
                            vm.filter = searchFilter;
            Severity: Major
            Found in app/components/keywordInput/keywordInputDirective.js - About 4 hrs to fix

              Function datePickerFilterLink has 80 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          function datePickerFilterLink(scope) {
              
                              var vm = scope;
              
                              vm.dateOptions = searchFilter;
              Severity: Major
              Found in app/components/datepicker/DatepickerDirective.js - About 3 hrs to fix

                Function buildMapLayers has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            function buildMapLayers(layerConfig) {
                                var layer,
                                    layers = [];
                
                                if (angular.isArray(layerConfig)) {
                Severity: Major
                Found in app/service/Map.js - About 2 hrs to fix

                  Function createHeatMapSource has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              function createHeatMapSource(hmParams) {
                                  var counts_ints2D = hmParams.counts_ints2D,
                                      gridLevel = hmParams.gridLevel,
                                      gridColumns = hmParams.columns,
                                      gridRows = hmParams.rows,
                  Severity: Major
                  Found in app/service/Map.js - About 2 hrs to fix

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

                                service.init = function(config) {
                                    var viewConfig = angular.extend(defaults.view,
                                                                        config.mapConfig.view),
                                        rendererConfig = config.mapConfig.renderer ?
                                            config.mapConfig.renderer : defaults.renderer,
                    Severity: Major
                    Found in app/service/Map.js - About 2 hrs to fix

                      Function makeHistogram has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                      function makeHistogram(histogram) {
                      
                                          var barsheight = 54;
                                          var histogrambarsWidth = 350;
                                          var paddingBar = 8;
                      Severity: Minor
                      Found in app/components/histogram/HistogramDirective.js - About 2 hrs to fix

                        Function tweetlist has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function tweetlist(Map, HeightModule, PanelInformationService) {
                                    var MapService = Map;
                                    return {
                                        link: tweetlistLink,
                                        restrict: 'EA',
                        Severity: Minor
                        Found in app/components/tweetlist/tweetlistDirective.js - About 1 hr to fix

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

                          module.exports = function ( config ) {
                            config.set({
                              basePath: '.',
                              files: [
                                'assets/lib/angular/angular.min.js',
                          Severity: Minor
                          Found in karma.conf.js - About 1 hr to fix

                            Function compactInteger has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function compactInteger(input, decimals) {
                                        decimals = decimals || 0;
                                        decimals = Math.max(decimals, 0);
                                        var number = parseInt(input, 10);
                                        var signString = number < 0 ? '-' : '';
                            Severity: Minor
                            Found in app/service/numberService.js - About 1 hr to fix

                              Function tweetlistLink has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          function tweetlistLink(scope) {
                                              var vm = scope;
                                              vm.tweetList = [];
                                              vm.tweetList.exist = false;
                              
                              
                              Severity: Minor
                              Found in app/components/tweetlist/tweetlistDirective.js - About 1 hr to fix

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

                                            function modalLink(scope) {
                                                var vm = scope;
                                                var MapService = Map;
                                                vm.closestTweets = [];
                                                vm.coordinate = [];
                                Severity: Minor
                                Found in app/components/modalTweets/modalTweetsDirective.js - About 1 hr to fix

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

                                              vm.setupEvents = function() {
                                                  MapService.getMap().getView().on('change:center', function(evt){
                                                      mapIsMoved = !mapIsMoved ? true : false;
                                                  });
                                                  MapService.getMap().getView()
                                  Severity: Minor
                                  Found in app/controller/Main.js - About 1 hr to fix

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

                                                service.getCurrentExtent = function(){
                                                    var viewProj = service.getMapProjection(),
                                                        extent = service.getMapView().calculateExtent(service.getMapSize()),
                                                        extentWgs84 = ol.proj.transformExtent(extent, viewProj, 'EPSG:4326'),
                                                        transformInteractionLayer = service.
                                    Severity: Minor
                                    Found in app/service/Map.js - About 1 hr to fix

                                      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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language