Showing 32 of 81 total issues
Function CustomGraphController
has 374 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CustomGraphController($scope, $window, $timeout, $http, d3Service, NcwmsService, Messagebus, UserAgent) {
this.mobile = UserAgent.mobile;
this.selectedLabel = '';
this.selectedUnits = '';
Function exports
has 362 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
Function init
has 299 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function(element, attrs) {
this.dragging = false;
var container = element.children[0].children[1];
var hoverContainer, hoverLine, hoverLineXOffset, hoverLineYOffset, hoverLineGroup,
Function NcwmsService
has 273 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function render
has 259 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.render = function(data) {
// remove all previous items before render
d3.select(container).selectAll('*').remove();
if (!this.activated) {
File customgraph.controller.js
has 380 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
/*
source: D3 example @ http://bl.ocks.org/rkirsling/33a9e350516da54a5d4f
*/
Function CesiumNcwmsLayerController
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
File Gruntfile.js
has 365 lines of code (exceeds 250 allowed). Consider refactoring. Open
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:
Function CesiumViewerController
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CesiumViewerController($scope, $http, Cesium, CesiumViewerService, Messagebus) {
this.lastClicked = {
'latitude': '',
'longitude': '',
'meanValue': '',
Function getFeatureInfoSeries
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getFeatureInfoSeries = function(selectedDataset, selectedPalette, boundingRect, callbackSuccess, callbackFailure) {
if (this.datasets.length === 0) {
return;
}
Function drawPaths
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.drawPaths = function(svg, data, x, y, chartWidth, chartHeight) {
var pathContainer = svg.append('g');
var upperOuterArea = d3.svg.area()
.interpolate('basis')
Function makeChart
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.makeChart = function(data) {
var svgWidth = width;
var svgHeight = width / 2;
var margin = {
top: 20,
Function init
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function() {
// load JSON data
$http.get('serverconfig.json').then(function(res) {
if (res.data.id === 'ncWMS') {
this.ncWMSURL = res.data.url;
File ncwms.service.js
has 279 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
function NcwmsService($q, $http, Messagebus) {
this.ncWMSURL = 'http://localhost:8080/ncWMS-2.0-rc1-maartenvm/wms?';
Function success
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
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--)
Function BigLegendController
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BigLegendController($scope, DecimalAdjust, Messagebus, UserAgent) {
this.mobile = UserAgent.mobile;
this.logarithmic = false;
Messagebus.subscribe('logarithmicChange', function(event, value) {
Function repaintColorMap
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.repaintColorMap = function() {
if (!NcwmsService.initialized) {
return;
}
Function loadMenu
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.loadMenu = function(menuPromiseResolve) {
var result = [];
this.ncWMSdata.metadata = menuPromiseResolve.data.children;
menuPromiseResolve.data.children.forEach(function(dataset) {
Function addPicking
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.addPicking = function() {
var ellipsoid = CesiumViewerService.viewer.scene.globe.ellipsoid;
//var labels = new Cesium.LabelCollection();
//labels.add();
//CesiumViewerService.viewer.scene.primitives.add(labels);
Function OutlinesController
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function OutlinesController($scope, $http, Cesium, CesiumViewerService, Messagebus, UserAgent) {
this.mobile = UserAgent.mobile;
this.outlines = false;
this.values = [];