Showing 5,781 of 10,536 total issues

Function decode64 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    value: function decode64(input) {
      var output = '';
      var chr1 = undefined;
      var chr2 = undefined;
      var chr3 = '';
Severity: Minor
Found in myems-admin/js/plugins/dropzone/dropzone.js - About 1 hr to fix

    Function setWidth has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function setWidth(width) {
                viewWidth = width;
                colPositions.clear();
                colContentPositions.clear();
    
    
    Severity: Minor
    Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

      Function draggableDayEvent has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function draggableDayEvent(event, eventElement) {
                  var hoverListener = getHoverListener();
                  var dayDelta;
                  eventElement.draggable({
                      delay: 50,
      Severity: Minor
      Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

        Function buildDayTableHeadHTML has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function buildDayTableHeadHTML() {
                    var headerClass = tm + "-widget-header";
                    var date;
                    var html = '';
                    var weekText;
        Severity: Minor
        Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

          Function processDatapoints has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function processDatapoints(plot, series, datapoints) {
                      var nrPoints = datapoints.points.length / datapoints.pointsize;
                      var EPSILON = 0.5; //pretty large epsilon but save
          
                      if (series.curvedLines.apply == true && series.originSeries === undefined && nrPoints > (1 + EPSILON)) {
          Severity: Minor
          Found in myems-admin/js/plugins/flot/curvedLines.js - About 1 hr to fix

            Function drawSpline has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function drawSpline(plot, ctx, series) {
                    // Not interested if spline is not requested
                    if (series.splines.show !== true) {
                        return;
                    }
            Severity: Minor
            Found in myems-admin/js/plugins/flot/jquery.flot.spline.js - About 1 hr to fix

              Function N has 37 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function N(b) {
                    var d = j[b].path,
                      e = Z[b];
                    c("<img/>").load(function() {
                      var h = parseInt(c(this).attr("width") || c(this).prop("width")),
              Severity: Minor
              Found in myems-admin/js/jquery/jquery.carousel.min.js - About 1 hr to fix

                Function addDistributionSystem has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $scope.addDistributionSystem = function() {
                        var modalInstance = $uibModal.open({
                            templateUrl: 'views/settings/distributionsystem/distributionsystem.model.html',
                            controller: 'ModalAddDistributionSystemCtrl',
                            windowClass: "animated fadeIn",

                  Function addDataSource has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      $scope.addDataSource = function() {
                          var modalInstance = $uibModal.open({
                              templateUrl: 'views/settings/datasource/datasource.model.html',
                              controller: 'ModalAddDataSourceCtrl',
                              windowClass: "animated fadeIn",

                    Function editCommand has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $scope.editCommand=function(command){
                            var modalInstance = $uibModal.open({
                                windowClass: "animated fadeIn",
                                templateUrl: 'views/settings/command/command.model.html',
                                controller: 'ModalEditCommandCtrl',
                    Severity: Minor
                    Found in myems-admin/app/controllers/settings/command/command.controller.js - About 1 hr to fix

                      Function addAdvancedReport has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          $scope.addAdvancedReport = function() {
                      
                              var modalInstance = $uibModal.open({
                                  templateUrl: 'views/settings/advancedreport/advancedreport.model.html',
                                  controller: 'ModalAddAdvancedReportCtrl',

                        Function editGateway has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            $scope.editGateway = function(gateway) {
                                var modalInstance = $uibModal.open({
                                    windowClass: "animated fadeIn",
                                    templateUrl: 'views/settings/gateway/gateway.model.html',
                                    controller: 'ModalEditGatewayCtrl',
                        Severity: Minor
                        Found in myems-admin/app/controllers/settings/gateway/gateway.controller.js - About 1 hr to fix

                          Function editDistributionCircuit has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                $scope.editDistributionCircuit = function(distributioncircuit) {
                                    var modalInstance = $uibModal.open({
                                        templateUrl: 'views/settings/distributionsystem/distributioncircuit.model.html',
                                        controller: 'ModalEditDistributionCircuitCtrl',
                                      windowClass: "animated fadeIn",

                            Function editSensor has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                $scope.editSensor = function(sensor) {
                                    var modalInstance = $uibModal.open({
                                        windowClass: "animated fadeIn",
                                        templateUrl: 'views/settings/sensor/sensor.model.html',
                                        controller: 'ModalEditSensorCtrl',
                            Severity: Minor
                            Found in myems-admin/app/controllers/settings/sensor/sensor.controller.js - About 1 hr to fix

                              Function editEnergyItem has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  $scope.editEnergyItem=function(energyItem){
                                      var modalInstance = $uibModal.open({
                                          windowClass: "animated fadeIn",
                                          templateUrl: 'views/settings/category/energyitem.model.html',
                                          controller: 'ModalEditEnergyItemCtrl',

                                Function editCategory has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $scope.editCategory=function(category){
                                        var modalInstance = $uibModal.open({
                                            windowClass: "animated fadeIn",
                                            templateUrl: 'views/settings/category/category.model.html',
                                            controller: 'ModalEditCategoryCtrl',

                                  Function editTariff has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      $scope.editTariff = function(tariff) {
                                          var modalInstance = $uibModal.open({
                                              windowClass: "animated fadeIn",
                                              templateUrl: 'views/settings/tariff/tariff.model.html',
                                              controller: 'ModalEditTariffCtrl',
                                  Severity: Minor
                                  Found in myems-admin/app/controllers/settings/tariff/tariff.controller.js - About 1 hr to fix

                                    Function editProtocol has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        $scope.editProtocol = function(protocol) {
                                            var modalInstance = $uibModal.open({
                                                windowClass: "animated fadeIn",
                                                templateUrl: 'views/settings/protocol/protocol.model.html',
                                                controller: 'ModalEditProtocolCtrl',

                                      Function editWorkingCalendar has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          $scope.editWorkingCalendar = function(workingcalendar) {
                                              var modalInstance = $uibModal.open({
                                                  windowClass: "animated fadeIn",
                                                  templateUrl: 'views/settings/workingcalendar/workingcalendar.model.html',
                                                  controller: 'ModalEditWorkingCalendarCtrl',

                                        Function editCostCenter has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            $scope.editCostCenter=function(costcenter){
                                                var modalInstance = $uibModal.open({
                                                    windowClass: "animated fadeIn",
                                                    templateUrl: 'views/settings/costcenter/costcenter.model.html',
                                                    controller: 'ModalEditCostCenterCtrl',
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language