Showing 5,781 of 10,536 total issues

Function importVirtualPowerPlant has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $scope.importVirtualPowerPlant = function() {
        var modalInstance = $uibModal.open({
            templateUrl: 'views/common/import.html',
            controller: 'ModalImportCtrl',
            windowClass: "animated fadeIn",

    Function importRule has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $scope.importRule = function() {
            var modalInstance = $uibModal.open({
                templateUrl: 'views/common/import.html',
                controller: 'ModalImportCtrl',
                windowClass: "animated fadeIn",
    Severity: Minor
    Found in myems-admin/app/controllers/fdd/rule/rule.controller.js - About 1 hr to fix

      Function importAdvancedReport has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          $scope.importAdvancedReport = function() {
              var modalInstance = $uibModal.open({
                  templateUrl: 'views/common/import.html',
                  controller: 'ModalImportCtrl',
                  windowClass: "animated fadeIn",

        Function deleteWechatMessage has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $scope.deleteWechatMessage = function(wechatmessage) {
                SweetAlert.swal({
                        title: $translate.instant("SWEET.TITLE"),
                        text: $translate.instant("SWEET.TEXT"),
                        type: "warning",

          Function moveItem has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    a.moveItem = function(b, c, d, e) {
                      if (b) {
                        a.allowUpdate = !1;
                        var g = -1;
                        switch (d) {
          Severity: Minor
          Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

            Function pairMeter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                $scope.pairMeter = function (dragEl, dropEl) {
                    var tem_uuid = angular.element('#' + dragEl);
                    if (angular.isDefined(tem_uuid.scope().combinedequipmentmeter)) {
                        return;
                    }

              Function addContact has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function importCommand has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Function importEquipment has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      $scope.importEquipment = function() {
                          var modalInstance = $uibModal.open({
                              templateUrl: 'views/common/import.html',
                              controller: 'ModalImportCtrl',
                              windowClass: "animated fadeIn",

                    Function deleteDistributionSystem has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $scope.deleteDistributionSystem=function(distributionsystem){
                            SweetAlert.swal({
                                title: $translate.instant("SWEET.TITLE"),
                                text: $translate.instant("SWEET.TEXT"),
                                type: "warning",

                      Function addPrivilege has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Function deleteGateway has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            $scope.deleteGateway = function(gateway) {
                                SweetAlert.swal({
                                    title: $translate.instant("SWEET.TITLE"),
                                    text: $translate.instant("SWEET.TEXT"),
                                    type: "warning",
                        Severity: Minor
                        Found in myems-admin/app/controllers/settings/gateway/gateway.controller.js - About 1 hr to fix

                          Function deleteSVG has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              $scope.deleteSVG=function(svg){
                                  SweetAlert.swal({
                                      title: $translate.instant("SWEET.TITLE"),
                                      text: $translate.instant("SWEET.TEXT"),
                                      type: "warning",
                          Severity: Minor
                          Found in myems-admin/app/controllers/settings/svg/svg.controller.js - About 1 hr to fix

                            Function getCurrentItemContentStyle has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  this.getCurrentItemContentStyle = function(a, c) {
                                    var d = b.options.controlStyle.item.content;
                                    if (a)
                                      switch (a.style) {
                                        case "initial":
                            Severity: Minor
                            Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                              Function addUser has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Function deleteEmailMessage has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $scope.deleteEmailMessage = function(emailmessage) {
                                        SweetAlert.swal({
                                                title: $translate.instant("SWEET.TITLE"),
                                                text: $translate.instant("SWEET.TEXT"),
                                                type: "warning",

                                  Function deleteCombinedEquipment has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      $scope.deleteCombinedEquipment = function (combinedequipment) {
                                          SweetAlert.swal({
                                              title: $translate.instant("SWEET.TITLE"),
                                              text: $translate.instant("SWEET.TEXT"),
                                              type: "warning",

                                    Function importSVG has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Function importPhotovoltaicPowerStation has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          $scope.importPhotovoltaicPowerStation = function() {
                                              var modalInstance = $uibModal.open({
                                                  templateUrl: 'views/common/import.html',
                                                  controller: 'ModalImportCtrl',
                                                  windowClass: "animated fadeIn",

                                        Function addEmailServer has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

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