Showing 5,781 of 10,536 total issues

Function editOfflineMeter has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $scope.editOfflineMeter = function(offlinemeter) {
        var modalInstance = $uibModal.open({
            windowClass: "animated fadeIn",
            templateUrl: 'views/settings/meter/offlinemeter.model.html',
            controller: 'ModalEditOfflineMeterCtrl',

    Function editEnergyFlowDiagramLink has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Function addEnergyFlowDiagramLink has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          $scope.addEnergyFlowDiagramLink = function() {
      
              var modalInstance = $uibModal.open({
                  templateUrl: 'views/settings/energyflowdiagram/energyflowdiagramlink.model.html',
                  controller: 'ModalAddEnergyFlowDiagramLinkCtrl',

        Function getProductionListData has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          const getProductionListData = async () => {
            let isResponseOK = false;
            await fetch(
              APIBaseURL +
              '/reports/enterproduction?' +
        Severity: Minor
        Found in myems-web/src/components/MyEMS/Space/EnterProduction.js - About 1 hr to fix

          Function on_post has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              def on_post(req, resp, id_):
                  """Handles POST requests"""
                  admin_control(req)
                  if not id_.isdigit() or int(id_) <= 0:
                      raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST',
          Severity: Minor
          Found in myems-api/core/energyflowdiagram.py - About 1 hr to fix

            Function on_post has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                def on_post(req, resp):
                    """Handles POST requests"""
                    admin_control(req)
                    try:
                        raw_json = req.stream.read().decode('utf-8')
            Severity: Minor
            Found in myems-api/core/microgrid.py - About 1 hr to fix

              Function on_post has 47 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  def on_post(req, resp):
                      """Handles POST requests"""
                      admin_control(req)
                      try:
                          raw_json = req.stream.read().decode('utf-8')
              Severity: Minor
              Found in myems-api/core/space.py - About 1 hr to fix

                Function UrlRouterProvider has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var UrlRouterProvider = /** @class */ (function () {
                        /** @hidden */
                        function UrlRouterProvider(/** @hidden */ router) {
                            this.router = router;
                        }
                Severity: Minor
                Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                  Function $$AnimateJsDriverProvider has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var $$AnimateJsDriverProvider = ['$$animationProvider', /** @this */ function($$animationProvider) {
                    $$animationProvider.drivers.push('$$animateJsDriver');
                    this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
                      return function initDriverFn(animationDetails) {
                        if (animationDetails.from && animationDetails.to) {
                  Severity: Minor
                  Found in myems-admin/js/angular/angular-animate.js - About 1 hr to fix

                    Function setupGrid has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function setupGrid() {
                                var i, axes = allAxes(), showGrid = options.grid.show;
                    
                                // Initialize the plot's offset from the edge of the canvas
                    
                    
                    Severity: Minor
                    Found in myems-admin/js/plugins/flot/jquery.flot.js - About 1 hr to fix

                      Function setValues has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        setValues: function(values) {
                          var max = -Number.MAX_VALUE,
                              min = Number.MAX_VALUE,
                              val,
                              cc,
                      Severity: Minor
                      Found in myems-admin/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js - About 1 hr to fix

                        Function getColumnData has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                }, r.getColumnData = function(t) {
                                    var a = e(t),
                                        i = a.data("hide"),
                                        o = a.index();
                                    i = i || "", i = jQuery.map(i.split(","), function(e) {
                        Severity: Minor
                        Found in myems-admin/js/plugins/footable/footable.all.min.js - About 1 hr to fix

                          Function editCombinedEquipmentParameter has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              $scope.editCombinedEquipmentParameter = function (combinedequipmentparameter) {
                                  var modalInstance = $uibModal.open({
                                      templateUrl: 'views/settings/combinedequipment/combinedequipmentparameter.model.html',
                                      controller: 'ModalEditCombinedEquipmentParameterCtrl',
                                      windowClass: "animated fadeIn",

                            Function addCombinedEquipmentParameter has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                $scope.addCombinedEquipmentParameter = function () {
                                    var modalInstance = $uibModal.open({
                                        templateUrl: 'views/settings/combinedequipment/combinedequipmentparameter.model.html',
                                        controller: 'ModalAddCombinedEquipmentParameterCtrl',
                                        windowClass: "animated fadeIn",

                              Function addEquipmentParameter has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  $scope.addEquipmentParameter = function() {
                              
                                      var modalInstance = $uibModal.open({
                                          templateUrl: 'views/settings/equipment/equipmentparameter.model.html',
                                          controller: 'ModalAddEquipmentParameterCtrl',

                                Function addOfflineMeter has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $scope.addOfflineMeter = function() {
                                        var modalInstance = $uibModal.open({
                                            templateUrl: 'views/settings/meter/offlinemeter.model.html',
                                            controller: 'ModalAddOfflineMeterCtrl',
                                            windowClass: "animated fadeIn",

                                  Function slide has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    Carousel.prototype.slide = function (type, next) {
                                      var $active   = this.$element.find('.item.active')
                                      var $next     = next || this.getItemForDirection(type, $active)
                                      var isCycling = this.interval
                                      var direction = type == 'next' ? 'left' : 'right'
                                  Severity: Minor
                                  Found in myems-admin/js/bootstrap/bootstrap.js - About 1 hr to fix

                                    Function BillingAside has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    const BillingAside = () => {
                                      const [plan, setPlan] = useState('monthly');
                                    
                                      return (
                                        <Card className="h-100">
                                    Severity: Minor
                                    Found in myems-web/src/components/page/Billing.js - About 1 hr to fix

                                      Function NavbarTop has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      const NavbarTop = () => {
                                        const {
                                          showBurgerMenu,
                                          setShowBurgerMenu,
                                          isTopNav,
                                      Severity: Minor
                                      Found in myems-web/src/components/navbar/NavbarTop.js - About 1 hr to fix

                                        Function getmeterslistdata has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          const getmeterslistdata = async () => {
                                            let isResponseOK = false;
                                            await fetch(
                                              APIBaseURL +
                                              '/reports/offlinemeterdaily?' +
                                        Severity: Minor
                                        Found in myems-web/src/components/MyEMS/Meter/OfflineMeterInput.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language