Showing 65 of 154 total issues
Function PointcloudService
has 618 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PointcloudService(THREE, Potree, $window, $rootScope, $location,
DrivemapService,
CameraService, SceneService,
PathControls, MeasuringService, EarthcontrolsService,
RailService, ExtractionDrawingService, PointcloudExtractionSelectionService,
Function GradientsService
has 516 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function GradientsService() {
Potree.Gradients.VIRIDIS = [
[0, new THREE.Color(0.267, 0.0049, 0.3294)],
[0.0039, new THREE.Color(0.2685, 0.0096, 0.3354)],
[0.0078, new THREE.Color(0.2699, 0.0146, 0.3414)],
Function MeasuringTool
has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring. Open
Open
Potree.MeasuringTool = function(scene, camera, renderer){
var scope = this;
this.enabled = false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function exports
has 423 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
Function MeasuringTool
has 313 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Potree.MeasuringTool = function(scene, camera, renderer){
var scope = this;
this.enabled = false;
File pointcloud.service.js
has 630 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global requestAnimationFrame:false */
(function() {
'use strict';
File MeasuringTool.js
has 558 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
/* global THREE:false, Potree:false */
Potree.Measure = function(){
File gradients.service.js
has 522 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function () {
'use strict';
/* global THREE:false, Potree:false */
function GradientsService() {
Function Measure
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Potree.Measure = function(){
var scope = this;
THREE.Object3D.call( this );
File Gruntfile.js
has 426 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Generated on 2015-01-07 using generator-angular 0.10.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
Function MeasuringService
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MeasuringService($rootScope, Potree, THREE, $window) {
this.tools = {
measuring: null,
volume: null,
heightprofile: null,
Function RailService
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function RailService(CameraService, SceneService, THREE, toastr, $window) {
/**
* A waypoint is a user picked camera location and look at location.
* Format of one waypoint is [camX,camY,camZ,lookatX,lookatY, lookatZ]
* Positions are in geospatial coordinate system.
Function HighQualityRenderer
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var HighQualityRenderer = function() {
var depthMaterial = null;
var attributeMaterial = null;
var normalizationMaterial = null;
Function MinimapExtractionSelectionService
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MinimapExtractionSelectionService(ExtractionSelectionService, ol, Messagebus) {
this.source = new ol.source.Vector({
wrapX: false
});
Function MinimapController
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MinimapController(ol, proj4, CamFrustumService, Messagebus, MinimapExtractionSelectionService) {
proj4.defs('EPSG:28992','+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs');
var projection = ol.proj.get('EPSG:28992');
var projectionExtent = [-285401.92,22598.08,595401.9199999999,903401.9199999999];
Function CameraService
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CameraService($rootScope, $window, $log, $location, THREE, Messagebus, SceneService) {
var me = this;
var fov = 75;
var width = $window.innerWidth;
var height = $window.innerHeight;
Function MeasuringController
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MeasuringController(MeasuringService, Messagebus) {
this.showToolboxTray = false;
this.showTransformationToolboxTray = false;
this.distanceActive = false;
Function Measure
has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring. Open
Open
Potree.Measure = function(){
var scope = this;
THREE.Object3D.call( this );
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File path.controls.js
has 341 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* PathControls
* by Ben van Werkhoven (Netherlands eScience Center)
*
* free look around with mouse drag
Function EDLRenderer
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var EDLRenderer = function() {
var edlMaterial = null;
var attributeMaterial = null;