Showing 5,781 of 10,536 total issues

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          function dropZone() {
                              return {
                                  restrict: 'C',
                                  link: function(scope, element, attrs) {
                          
                          
                          Severity: Minor
                          Found in myems-admin/app/directives/directives.js - About 1 hr to fix

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

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

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

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

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

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

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

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

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

                                        $scope.login = function (user, captcha, captchaText, refreshCaptcha) {
                                            if(captcha.toLowerCase() !== captchaText.toLowerCase()){
                                                $scope.captcha = '';
                                                refreshCaptcha();
                                                toaster.pop({
                                    Severity: Minor
                                    Found in myems-admin/app/controllers/login/login.controller.js - About 1 hr to fix

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

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

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

                                        const ReactBootstrapTable2 = () => {
                                          return (
                                            <Fragment>
                                              <PageHeader
                                                title="React Bootstrap Table2"
                                        Severity: Minor
                                        Found in myems-web/src/components/plugins/ReactBootstrapTable2.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language