Showing 5,781 of 10,536 total issues

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

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

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

          def on_put(req, resp, id_):
              """Handles PUT requests"""
              admin_control(req)
      
              if not id_.isdigit() or int(id_) <= 0:
      Severity: Minor
      Found in myems-api/core/textmessage.py - About 1 hr to fix

        Function $get has 11 arguments (exceeds 4 allowed). Consider refactoring.
        Open

               function($$rAF,   $rootScope,   $rootElement,   $document,   $$Map,
                        $$animation,   $$AnimateRunner,   $templateRequest,   $$jqLite,   $$forceReflow,
                        $$isDocumentHidden) {
        Severity: Major
        Found in myems-admin/js/angular/angular-animate.js - About 1 hr to fix

          Function drawBar has 11 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  function drawBar(x, y, b, barLeft, barRight, fillStyleCallback, axisx, axisy, c, horizontal, lineWidth) {
          Severity: Major
          Found in myems-admin/js/plugins/flot/jquery.flot.js - About 1 hr to fix

            Function ParamType has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var ParamType = /** @class */ (function () {
                    /**
                     * @param def  A configuration object which contains the custom type definition.  The object's
                     *        properties will override the default methods and/or pattern in `ParamType`'s public interface.
                     * @returns a new ParamType object
            Severity: Minor
            Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

              Function run has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      Transition.prototype.run = function () {
                          var _this = this;
                          var runAllHooks = TransitionHook.runAllHooks;
                          // Gets transition hooks array for the given phase
                          var getHooksFor = function (phase) { return _this._hookBuilder.buildHooksForPhase(phase); };
              Severity: Minor
              Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                Function link has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                link: function (scope, element, attrs, uiSrefActive) {
                                    var type = getTypeInfo(element);
                                    var active = uiSrefActive[1] || uiSrefActive[0];
                                    var unlinkInfoFn = null;
                                    var hookFn;
                Severity: Minor
                Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                  Function mapData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      var mapData = function(data, maskPattern) {
                  
                        var inc = -1;
                        var row = _moduleCount - 1;
                        var bitIndex = 7;
                  Severity: Minor
                  Found in myems-admin/js/angular/qrcode.js - About 1 hr to fix

                    Function initDriverFn has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        return function initDriverFn(animationDetails) {
                          if (animationDetails.from && animationDetails.to) {
                            var fromAnimation = prepareAnimation(animationDetails.from);
                            var toAnimation = prepareAnimation(animationDetails.to);
                            if (!fromAnimation && !toAnimation) return;
                    Severity: Minor
                    Found in myems-admin/js/angular/angular-animate.js - About 1 hr to fix

                      Function WorkFn has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function WorkFn() {
                            var modules = currentSpec.$modules || [];
                            var strictDi = !!currentSpec.$injectorStrict;
                            modules.unshift(['$injector', function($injector) {
                              currentSpec.$providerInjector = $injector;
                      Severity: Minor
                      Found in myems-admin/js/angular/angular-mocks.js - About 1 hr to fix

                        Function commitRoute has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function commitRoute() {
                              var lastRoute = $route.current;
                              var nextRoute = preparedRoute;
                        
                              if (preparedRouteIsUpdateOnly) {
                        Severity: Minor
                        Found in myems-admin/js/angular/angular-route.js - About 1 hr to fix

                          Function getEventSkinCss has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              getEventSkinCss: function(event) {
                                  var view = this.view;
                                  var source = event.source || {};
                                  var eventColor = event.color;
                                  var sourceColor = source.color;
                          Severity: Minor
                          Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

                            Function sliceSegs has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function sliceSegs(events, visEventEnds, start, end) {
                                        var segs = [],
                                            i, len=events.length, event,
                                            eventStart, eventEnd,
                                            segStart, segEnd,
                            Severity: Minor
                            Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

                              Function pushFile has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                              var pushFile = function pushFile(path) {
                                                  var file_type = null,
                                                      m;
                                                  if (angular.isObject(path)) {
                                                      file_type = path.type;
                              Severity: Minor
                              Found in myems-admin/js/plugins/oclazyload/ocLazyLoad.js - About 1 hr to fix

                                Function processRawData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function processRawData(plot, series, datapoints) {
                                        // we normalize the area of each symbol so it is approximately the
                                        // same as a circle of the given radius
                                
                                        var handlers = {
                                Severity: Minor
                                Found in myems-admin/js/plugins/flot/jquery.flot.symbol.js - About 1 hr to fix

                                  Function updateCheckMark has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                            a.updateCheckMark = function() {
                                              if (e) {
                                                var b = getComputedStyle(e[0])["background-image"];
                                                if (b && "none" != b) k();
                                                else if ("CANVAS" == e[0].tagName) {
                                  Severity: Minor
                                  Found in myems-admin/js/jcui/angular.integralui.checkbox.min.js - About 1 hr to fix

                                    Function init has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            var init = function() {
                                                this.el = el;
                                                this.options = options;
                                    
                                                // merge user options into default options
                                    Severity: Minor
                                    Found in myems-admin/js/plugins/easypiechart/easypiechart.js - About 1 hr to fix

                                      Function isDropAllowed has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                            this.isDropAllowed = function(a, c, u) {
                                              var d = b.options.allowDrop;
                                              if (
                                                d &&
                                                a &&
                                      Severity: Minor
                                      Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                                        Function init has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                var init = function() {
                                                    this.el = el;
                                                    this.options = options;
                                        
                                                    // merge user options into default options
                                        Severity: Minor
                                        Found in myems-admin/js/plugins/easypiechart/angular.easypiechart.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language