sentilo/sentilo

View on GitHub

Showing 627 of 1,220 total issues

Function DataTable has 4213 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var DataTable = function( oInit )
    {
        
        
        /**
Severity: Major
Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.dataTables.js - About 3 wks to fix

    File jquery-1.9.0.js has 6540 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery JavaScript Library v1.9.0
     * http://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in sentilo-catalog-web/src/main/webapp/static/js/jquery-1.9.0.js - About 2 wks to fix

      File jquery.dataTables.js has 5000 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /**
       * @summary     DataTables
       * @description Paginate, search and sort HTML tables
       * @version     1.9.4
       * @file        jquery.dataTables.js
      Severity: Major
      Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.dataTables.js - About 2 wks to fix

        Function Plot has 1941 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function Plot(placeholder, data_, options_, plugins) {
                // data is on the form:
                //   [ series1, series2 ... ]
                // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
                // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
        Severity: Major
        Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.flot.js - About 1 wk to fix

          File jquery.flot.js has 1955 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* Javascript plotting library for jQuery, version 0.8 alpha.
          
          Copyright (c) 2007-2012 IOLA and Ole Laursen.
          Licensed under the MIT license.
          
          
          Severity: Major
          Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.flot.js - About 5 days to fix

            Function layerFactory has 516 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function layerFactory(L) {
            
                const CanvasIconLayer = (L.Layer ? L.Layer : L.Class).extend({
            
                    //Add event listeners to initialized section.

              File universal_map.js has 929 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              
              var sensorsLastObsMap = [];
              var defaultChartObsLimit = 10;
              var maxChartObsLimit = 200;
              var componentDetailUrl;
              Severity: Major
              Found in sentilo-catalog-web/src/main/webapp/static/js/sentilo/universal_map.js - About 2 days to fix

                File bootstrap-datepicker.js has 908 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /* =========================================================
                 * bootstrap-datepicker.js
                 * http://www.eyecon.ro/bootstrap-datepicker
                 * =========================================================
                 * Copyright 2012 Stefan Petre
                Severity: Major
                Found in sentilo-catalog-web/src/main/webapp/static/js/bootstrap-datepicker.js - About 2 days to fix

                  File markerclusterer.js has 711 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /**
                   * @name MarkerClustererPlus for Google Maps V3
                   * @version 2.1.1 [November 4, 2013]
                   * @author Gary Little
                   * @fileoverview
                  Severity: Major
                  Found in sentilo-catalog-web/src/main/webapp/static/js/markerclusterer.js - About 1 day to fix

                    File ExcelGeneratorUtils.java has 671 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*
                     * Sentilo
                     *
                     * Original version 1.4 Copyright (C) 2013 Institut Municipal d’Informàtica, Ajuntament de
                     * Barcelona. Modified by Opentrends adding support for multitenant deployments and SaaS.

                      Component has 71 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      @Document
                      public class Component implements FederatedResource, CatalogDocument, SectorResourceGranted, EntityResource, AlphabeticalSortable {
                      
                        private static final long serialVersionUID = 1L;
                      
                      

                        Sensor has 68 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        @Document
                        public class Sensor implements FederatedResource, CatalogDocument, SectorResourceGranted, EntityResource, SyncResource, AlphabeticalSortable {
                        
                          private static final long serialVersionUID = 1L;
                        
                        

                          Activity has 68 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          public class Activity implements CatalogDocument, Comparable<Activity> {
                          
                            private static final long serialVersionUID = 1L;
                          
                            @JsonIgnore

                            Function ajax has 237 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                ajax: function( url, options ) {
                            
                                    // If url is an object, simulate pre-1.5 signature
                                    if ( typeof url === "object" ) {
                                        options = url;
                            Severity: Major
                            Found in sentilo-catalog-web/src/main/webapp/static/js/jquery-1.9.0.js - About 1 day to fix

                              Function setDocument has 232 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              setDocument = Sizzle.setDocument = function( node ) {
                                  var doc = node ? node.ownerDocument || node : preferredDoc;
                              
                                  // If no document and documentElement is available, return
                                  if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
                              Severity: Major
                              Found in sentilo-catalog-web/src/main/webapp/static/js/jquery-1.9.0.js - About 1 day to fix

                                File leaflet.canvas-markers.js has 528 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /******/ (() => { // webpackBootstrap
                                /******/     var __webpack_modules__ = ([
                                /* 0 */,
                                /* 1 */
                                /***/ (function(module) {

                                  Function drawSeriesLines has 187 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          function drawSeriesLines(series) {
                                              function plotLine(datapoints, xoffset, yoffset, axisx, axisy) {
                                                  var points = datapoints.points,
                                                      ps = datapoints.pointsize,
                                                      prevx = null, prevy = null;
                                  Severity: Major
                                  Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.flot.js - About 7 hrs to fix

                                    File oms.js has 477 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    // Generated by CoffeeScript 1.6.2
                                    /** @preserve OverlappingMarkerSpiderfier
                                    https://github.com/jawj/OverlappingMarkerSpiderfier
                                    Copyright (c) 2011 - 2012 George MacKerron
                                    Released under the MIT licence: http://opensource.org/licenses/mit-license
                                    Severity: Minor
                                    Found in sentilo-catalog-web/src/main/webapp/static/js/oms.js - About 7 hrs to fix

                                      Function _fnScrollDraw has 182 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              function _fnScrollDraw ( o )
                                              {
                                                  var
                                                      nScrollHeadInner = o.nScrollHead.getElementsByTagName('div')[0],
                                                      nScrollHeadTable = nScrollHeadInner.getElementsByTagName('table')[0],
                                      Severity: Major
                                      Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.dataTables.js - About 7 hrs to fix

                                        File metrics.js has 461 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        /**
                                         * Dashboard functions
                                         */
                                        
                                        //config
                                        Severity: Minor
                                        Found in sentilo-catalog-web/src/main/webapp/static/js/sentilo/metrics.js - About 7 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language