Showing 25 of 27 total issues
Function timeHistogram
has 228 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function timeHistogram($rootScope, HeatMapSourceGenerator,
searchFilter, DateTimeService, NumberService) {
var directive = {
templateUrl: 'components/histogram/histogram.tpl.html',
restrict: 'EA',
File Map.js
has 537 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*eslint angular/di: [2,"array"]*/
/*eslint angular/document-service: 2*/
/*eslint max-len: [2,100]*/
/**
* Map service
Function link
has 219 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function link(scope, element, attr) {
var HistogramBars;
var vm = scope;
vm.barId = attr.barid;
Function exports
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.loadNpmTasks('grunt-contrib-watch');
Function keywordInput
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keywordInput(HeatMapSourceGenerator, searchFilter, $window, filterKeywordService) {
return {
link: keywordInputLink,
restrict: 'EA',
Function keywordInputLink
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keywordInputLink(scope) {
var vm = scope;
var numberKeywords = vm.numberKeywords || 5;
vm.filter = searchFilter;
Function datePickerFilterLink
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function datePickerFilterLink(scope) {
var vm = scope;
vm.dateOptions = searchFilter;
Function buildMapLayers
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildMapLayers(layerConfig) {
var layer,
layers = [];
if (angular.isArray(layerConfig)) {
Function createHeatMapSource
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createHeatMapSource(hmParams) {
var counts_ints2D = hmParams.counts_ints2D,
gridLevel = hmParams.gridLevel,
gridColumns = hmParams.columns,
gridRows = hmParams.rows,
Function init
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
service.init = function(config) {
var viewConfig = angular.extend(defaults.view,
config.mapConfig.view),
rendererConfig = config.mapConfig.renderer ?
config.mapConfig.renderer : defaults.renderer,
Function makeHistogram
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeHistogram(histogram) {
var barsheight = 54;
var histogrambarsWidth = 350;
var paddingBar = 8;
Function tweetlist
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tweetlist(Map, HeightModule, PanelInformationService) {
var MapService = Map;
return {
link: tweetlistLink,
restrict: 'EA',
Function exports
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( config ) {
config.set({
basePath: '.',
files: [
'assets/lib/angular/angular.min.js',
Function compactInteger
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compactInteger(input, decimals) {
decimals = decimals || 0;
decimals = Math.max(decimals, 0);
var number = parseInt(input, 10);
var signString = number < 0 ? '-' : '';
Function tweetlistLink
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tweetlistLink(scope) {
var vm = scope;
vm.tweetList = [];
vm.tweetList.exist = false;
Function modalLink
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function modalLink(scope) {
var vm = scope;
var MapService = Map;
vm.closestTweets = [];
vm.coordinate = [];
Function setupEvents
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.setupEvents = function() {
MapService.getMap().getView().on('change:center', function(evt){
mapIsMoved = !mapIsMoved ? true : false;
});
MapService.getMap().getView()
Function getCurrentExtent
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
service.getCurrentExtent = function(){
var viewProj = service.getMapProjection(),
extent = service.getMapView().calculateExtent(service.getMapSize()),
extentWgs84 = ol.proj.transformExtent(extent, viewProj, 'EPSG:4326'),
transformInteractionLayer = service.
Function createOrUpdateHeatMapLayer
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
service.createOrUpdateHeatMapLayer = function(hmData) {
var existingHeatMapLayers, transformInteractionLayer, olVecSrc, newHeatMapLayer;
hmData.heatmapRadius = 20;
hmData.blur = 6;
Function startCsvExport
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function startCsvExport(numberOfDocuments){
var config,
params = createParamsForGeospatialSearch();
if (params) {
params['d.docs.limit'] = angular.isNumber(numberOfDocuments) ?