Showing 5,781 of 10,536 total issues

Function editUser has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Function bindContainerEvents has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      bindContainerEvents: function(){
        var mouseDown = false,
            oldPageX,
            oldPageY,
            map = this;
    Severity: Minor
    Found in myems-admin/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js - About 1 hr to fix

      Function editPrivilege has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Function editContact has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Function addProtocol has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Function addSensor has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function editEmailServer has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function editMenu has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Function addEnergyItem has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    Function addTariff has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Function addDistributionCircuit has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            $scope.addDistributionCircuit = function() {
                      
                                var modalInstance = $uibModal.open({
                                    templateUrl: 'views/settings/distributionsystem/distributioncircuit.model.html',
                                    controller: 'ModalAddDistributionCircuitCtrl',

                        Function addCategory has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Function addWorkingCalendar has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Function deps has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                                            function ($ocLazyLoad) {
                                                                return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'daterangepicker', 'toaster']).then(
                                                                    function () {
                                                                        return $ocLazyLoad.load([{
                                                                            serie: true,
                            Severity: Minor
                            Found in myems-admin/app/config.router.js - About 1 hr to fix

                              Function vectorMap has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function vectorMap() {
                                  return {
                                      restrict: 'A',
                                      scope: {
                                          myMapData: '=',
                              Severity: Minor
                              Found in myems-admin/app/directives/directives.js - About 1 hr to fix

                                Function editEnergyFlowDiagramNode has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      $scope.editEnergyFlowDiagramNode = function(energyflowdiagramnode) {
                                          var modalInstance = $uibModal.open({
                                              templateUrl: 'views/settings/energyflowdiagram/energyflowdiagramnode.model.html',
                                              controller: 'ModalEditEnergyFlowDiagramNodeCtrl',
                                            windowClass: "animated fadeIn",

                                  Function addNonWorkingDay has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Function editNonWorkingDay has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Function editEnergyFlowDiagram has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

                                        Function addEnergyFlowDiagramNode has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                              $scope.addEnergyFlowDiagramNode = function() {
                                        
                                                  var modalInstance = $uibModal.open({
                                                      templateUrl: 'views/settings/energyflowdiagram/energyflowdiagramnode.model.html',
                                                      controller: 'ModalAddEnergyFlowDiagramNodeCtrl',
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language