sentilo/sentilo

View on GitHub

Showing 627 of 1,220 total issues

Function drawGrid has 173 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function drawGrid() {
            var i, axes, bw, bc;

            ctx.save();
            ctx.translate(plotOffset.left, plotOffset.top);
Severity: Major
Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.flot.js - About 6 hrs to fix

    Function _fnCalculateColumnWidths has 169 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function _fnCalculateColumnWidths ( oSettings )
            {
                var iTableWidth = oSettings.nTable.offsetWidth;
                var iUserInputs = 0;
                var iTmpWidth;
    Severity: Major
    Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.dataTables.js - About 6 hrs to fix

      CatalogSensor has 48 methods (exceeds 20 allowed). Consider refactoring.
      Open

      public class CatalogSensor implements MutableCatalogElement {
      
        private String sensor;
        @JsonInclude(value = Include.NON_NULL)
        private String provider;

        Function processData has 166 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function processData() {
                    var topSentry = Number.POSITIVE_INFINITY,
                        bottomSentry = Number.NEGATIVE_INFINITY,
                        fakeInfinity = Number.MAX_VALUE,
                        i, j, k, m, length,
        Severity: Major
        Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.flot.js - About 6 hrs to fix

          AbstractBaseCrudServiceImpl has 47 methods (exceeds 20 allowed). Consider refactoring.
          Open

          public abstract class AbstractBaseCrudServiceImpl<T extends CatalogDocument> extends AbstractBaseServiceImpl implements CrudService<T>, ApplicationContextAware {
          
            protected static final Logger LOGGER = LoggerFactory.getLogger(AbstractBaseCrudServiceImpl.class);
          
            private ApplicationContext context;

            Function treejs has 155 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                $.fn.treejs = function( options ) {
            
                    // get the reference of target element
                    targetElement = this;
            
            
            Severity: Major
            Found in sentilo-catalog-web/src/main/webapp/static/js/treejs.js - About 6 hrs to fix

              Provider has 45 methods (exceeds 20 allowed). Consider refactoring.
              Open

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

                Function legend has 152 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    Chartist.plugins.legend = function (options) {
                
                        // Catch invalid options
                        if (options && options.position) {
                            if (!(options.position === 'top' || options.position === 'bottom' || options.position instanceof HTMLElement)) {

                  Function _fnDraw has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function _fnDraw( oSettings )
                          {
                              /* Provide a pre-callback function which can be used to cancel the draw is false is returned */
                              var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
                              if ( $.inArray( false, aPreDraw ) !== -1 )
                  Severity: Major
                  Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.dataTables.js - About 5 hrs to fix

                    Function DateRangePicker has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var DateRangePicker = function (element, options, cb) {
                            var hasOptions = typeof options == 'object'
                            var localeObject;
                    
                            //state
                    Severity: Major
                    Found in sentilo-catalog-web/src/main/webapp/static/js/daterangepicker.js - About 5 hrs to fix

                      Alert has 43 methods (exceeds 20 allowed). Consider refactoring.
                      Open

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

                        SensorController has 41 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        @Controller
                        @RequestMapping("/admin/sensor")
                        public class SensorController extends CrudController<Sensor> {
                        
                          @Autowired

                          File daterangepicker.js has 395 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /**
                          * @version: 1.0
                          * @author: Dan Grossman http://www.dangrossman.info/
                          * @date: 2012-08-20
                          * @copyright: Copyright (c) 2012 Dan Grossman. All rights reserved.
                          Severity: Minor
                          Found in sentilo-catalog-web/src/main/webapp/static/js/daterangepicker.js - About 5 hrs to fix

                            Function legend has 137 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    return function legend(chart) {
                            
                                        function removeLegendElement() {
                                            var legendElement = chart.container.querySelector('.ct-legend');
                                            if (legendElement) {

                              AlertRule has 40 methods (exceeds 20 allowed). Consider refactoring.
                              Open

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

                                Application has 40 methods (exceeds 20 allowed). Consider refactoring.
                                Open

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

                                  PlatformActivity has 40 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  public class PlatformActivity {
                                  
                                    @JsonInclude(value = Include.NON_NULL)
                                    private String tenant;
                                    private long totalRequests;

                                    Function _fnGatherData has 131 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function _fnGatherData( oSettings )
                                            {
                                                var iLoop, i, iLen, j, jLen, jInner,
                                                     nTds, nTrs, nTd, nTr, aLocalData, iThisIndex,
                                                    iRow, iRows, iColumn, iColumns, sNodeName,
                                    Severity: Major
                                    Found in sentilo-catalog-web/src/main/webapp/static/js/jquery.dataTables.js - About 5 hrs to fix

                                      ActiveSubscription has 39 methods (exceeds 20 allowed). Consider refactoring.
                                      Open

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

                                        EventMessage has 39 methods (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        public class EventMessage {
                                        
                                          protected String message;
                                          protected String timestamp;
                                          @JsonInclude(value = Include.NON_NULL)
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language