Showing 5,781 of 10,536 total issues

Function on_put has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Function on_post has 33 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/datasource.py - About 1 hr to fix

      Function on_get has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def on_get(req, resp, id_):
              if 'API-KEY' not in req.headers or \
                      not isinstance(req.headers['API-KEY'], str) or \
                      len(str.strip(req.headers['API-KEY'])) == 0:
                  access_control(req)
      Severity: Minor
      Found in myems-api/core/combinedequipment.py - About 1 hr to fix

        Function on_post has 33 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/equipment.py - About 1 hr to fix

          Function on_get has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              def on_get(req, resp, id_):
                  if 'API-KEY' not in req.headers or \
                          not isinstance(req.headers['API-KEY'], str) or \
                          len(str.strip(req.headers['API-KEY'])) == 0:
                      access_control(req)
          Severity: Minor
          Found in myems-api/core/equipment.py - About 1 hr to fix

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

                def on_post(req, resp):
                    """Handles POST requests"""
                    admin_control(req)
            
                    try:
            Severity: Minor
            Found in myems-api/core/textmessage.py - About 1 hr to fix

              Function _equals has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _equals(o1, o2) {
                      if (o1 === o2)
                          return true;
                      if (o1 === null || o2 === null)
                          return false;
              Severity: Minor
              Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                Function $RootScopeDecorator has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
                
                  var $rootScopePrototype = Object.getPrototypeOf($delegate);
                
                  $rootScopePrototype.$countChildScopes = countChildScopes;
                Severity: Minor
                Found in myems-admin/js/angular/angular-mocks.js - About 1 hr to fix

                  Function getRedirectionData has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function getRedirectionData(route) {
                        var data = {
                          route: route,
                          hasRedirection: false
                        };
                  Severity: Minor
                  Found in myems-admin/js/angular/angular-route.js - About 1 hr to fix

                    Function getColorpickerTemplatePosition has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    var getColorpickerTemplatePosition = function() {
                                        var
                                            positionValue,
                                            positionOffset = Helper.getOffset(elem[0]);
                    
                    
                    Severity: Minor
                    Found in myems-admin/js/plugins/colorpicker/bootstrap-colorpicker-module.js - About 1 hr to fix

                      Function setHeight has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          setHeight: function(totalHeight, isAuto) {
                              var eventLimit;
                              var scrollerHeight;
                      
                              if (this.bottomRuleHeight === null) {
                      Severity: Minor
                      Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

                        Function buildEventSource has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function buildEventSource(sourceInput) { // will return undefined if invalid source
                                var normalizers = fc.sourceNormalizers;
                                var source;
                                var i;
                        
                        
                        Severity: Minor
                        Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

                          Function HoverListener has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function HoverListener(coordinateGrid) {
                          
                          
                                  var t = this;
                                  var bindType;
                          Severity: Minor
                          Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

                            Function showSegPopover has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                showSegPopover: function(date, cell, moreLink, segs) {
                                    var _this = this;
                                    var view = this.view;
                                    var moreWrap = moreLink.parent(); // the <div> wrapper around the <a>
                                    var topEl; // the element we want to match the top coordinate of
                            Severity: Minor
                            Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

                              Function setLang has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      return $scope.lang = "English", $scope.setLang = function (lang) {
                                          switch (lang) {
                                              case"English":
                                                  localize.setLanguage("EN-US");
                                                  break;
                              Severity: Minor
                              Found in myems-admin/js/plugins/validate/jquery.validate.min.js - About 1 hr to fix

                                Function resize has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        }, r.resize = function() {
                                            var t = e(r.table);
                                            if (t.is(":visible")) {
                                                if (!r.hasAnyBreakpointColumn()) return t.trigger(u.redraw), undefined;
                                                var a = {
                                Severity: Minor
                                Found in myems-admin/js/plugins/footable/footable.all.min.js - About 1 hr to fix

                                  Function uiBrCnpjMask has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function uiBrCnpjMask() {
                                          function applyCnpjMask (value) {
                                              if(!value) {
                                                  return value;
                                              }
                                  Severity: Minor
                                  Found in myems-admin/js/plugins/uiMask/masks.js - About 1 hr to fix

                                    Function uiBrCpfMask has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function uiBrCpfMask() {
                                            function applyCpfMask (value) {
                                                if(!value) {
                                                    return value;
                                                }
                                    Severity: Minor
                                    Found in myems-admin/js/plugins/uiMask/masks.js - About 1 hr to fix

                                      Function X has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function X() {
                                            function b(f) {
                                              T = f.pageX;
                                              if (!I) {
                                                E();
                                      Severity: Minor
                                      Found in myems-admin/js/jquery/jquery.carousel.min.js - About 1 hr to fix

                                        Function applyAttr has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        jvm.VMLShapeElement.prototype.applyAttr = function(attr, value){
                                          switch (attr) {
                                            case 'fill':
                                              this.node.fillcolor = value;
                                              break;
                                        Severity: Minor
                                        Found in myems-admin/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language