Showing 5,781 of 10,536 total issues

Function PathNode has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var PathNode = /** @class */ (function () {
        function PathNode(stateOrNode) {
            if (stateOrNode instanceof PathNode) {
                var node = stateOrNode;
                this.state = node.state;
Severity: Minor
Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

    Function makeSwipeDirective has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function makeSwipeDirective(directiveName, direction, eventName) {
      ngTouch.directive(directiveName, ['$parse', '$swipe', function($parse, $swipe) {
        // The maximum vertical delta for a swipe should be less than 75px.
        var MAX_VERTICAL_DISTANCE = 75;
        // Vertical distance should not be more than a fraction of the horizontal distance.
    Severity: Minor
    Found in myems-admin/js/angular/angular-touch.js - About 1 hr to fix

      Function UrlMatcherFactory has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var UrlMatcherFactory = /** @class */ (function () {
              // TODO: move implementations to UrlConfig (urlService.config)
              function UrlMatcherFactory(/** @internal */ router) {
                  var _this = this;
                  this.router = router;
      Severity: Minor
      Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

        Function packageAnimations has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              function packageAnimations(element, event, options, animations, fnName) {
                var operations = groupEventedAnimations(element, event, options, animations, fnName);
                if (operations.length === 0) {
                  var a, b;
                  if (fnName === 'beforeSetClass') {
        Severity: Minor
        Found in myems-admin/js/angular/angular-animate.js - About 1 hr to fix

          Function buildCellHTML has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function buildCellHTML(date) {
                      var contentClass = tm + "-widget-content";
                      var month = t.start.getMonth();
                      var today = clearTime(new Date());
                      var html = '';
          Severity: Minor
          Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

            Function createMarkers has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              createMarkers: function(markers) {
                var i,
                    marker,
                    point,
                    markerConfig,
            Severity: Minor
            Found in myems-admin/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js - About 1 hr to fix

              Function addVirtualPowerPlant has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function editVirtualPowerPlant has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Function addWindFarm has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    Function editMicrogridGenerator has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          $scope.editMicrogridGenerator = function(microgridgenerator) {
                              var modalInstance = $uibModal.open({
                                  templateUrl: 'views/settings/microgrid/microgridgenerator.model.html',
                                  controller: 'ModalEditMicrogridGeneratorCtrl',
                                windowClass: "animated fadeIn",

                      Function editMicrogridLoad has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            $scope.editMicrogridLoad = function(microgridload) {
                                var modalInstance = $uibModal.open({
                                    templateUrl: 'views/settings/microgrid/microgridload.model.html',
                                    controller: 'ModalEditMicrogridLoadCtrl',
                                  windowClass: "animated fadeIn",

                        Function addPhotovoltaicPowerStation has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Function editMicrogridEVCharger has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                $scope.editMicrogridEVCharger = function(microgridevcharger) {
                                    var modalInstance = $uibModal.open({
                                        templateUrl: 'views/settings/microgrid/microgridevcharger.model.html',
                                        controller: 'ModalEditMicrogridEVChargerCtrl',
                                      windowClass: "animated fadeIn",

                            Function Plyr has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            const Plyr = () => {
                              return (
                                <Fragment>
                                  <PageHeader
                                    title="Falcon Player"
                            Severity: Minor
                            Found in myems-web/src/components/plugins/Plyr.js - About 1 hr to fix

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

                                                              function ($ocLazyLoad) {
                                                                  return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'toaster']).then(
                                                                      function () {
                                                                          return $ocLazyLoad.load([{
                                                                              files: ['js/plugins/footable/footable.all.min.js', 'css/plugins/footable/footable.core.css']
                              Severity: Minor
                              Found in myems-admin/app/config.router.js - About 1 hr to fix

                                Function editMicrogridPhotovoltaic has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      $scope.editMicrogridPhotovoltaic = function(microgridphotovoltaic) {
                                          var modalInstance = $uibModal.open({
                                              templateUrl: 'views/settings/microgrid/microgridphotovoltaic.model.html',
                                              controller: 'ModalEditMicrogridPhotovoltaicCtrl',
                                            windowClass: "animated fadeIn",

                                  Function addMicrogridGrid has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        $scope.addMicrogridGrid = function() {
                                  
                                            var modalInstance = $uibModal.open({
                                                templateUrl: 'views/settings/microgrid/microgridgrid.model.html',
                                                controller: 'ModalAddMicrogridGridCtrl',

                                    Function refreshSVGData has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      const refreshSVGData = () => {
                                        let isResponseOK = false;
                                        fetch(APIBaseURL + '/reports/pointrealtime', {
                                          method: 'GET',
                                          headers: {

                                      Function getmeterslist has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        const getmeterslist = async () => {
                                          let isResponseOK = false;
                                          await fetch(APIBaseURL + '/offlinemeters', {
                                            method: 'GET',
                                            headers: {
                                      Severity: Minor
                                      Found in myems-web/src/components/MyEMS/Meter/OfflineMeterInput.js - About 1 hr to fix

                                        Function Banner has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        const Banner = () => {
                                          const { isDark } = useContext(AppContext);
                                          return (
                                            <Section className="py-0 overflow-hidden" image={bg1} position="center bottom" overlay>
                                              <Row className="justify-content-center align-items-center pt-8 pt-lg-10 pb-lg-9 pb-xl-0">
                                        Severity: Minor
                                        Found in myems-web/src/components/landing/Banner.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language