Showing 5,781 of 10,536 total issues

File ThreadInfo.js has 257 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React, { useState, useContext } from 'react';
import PropTypes from 'prop-types';
import Scrollbar from 'react-scrollbars-custom';
import {
  Media,
Severity: Minor
Found in myems-web/src/components/chat/content/ThreadInfo.js - About 2 hrs to fix

    Function bind has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        bind: function(element, eventHandlers, pointerTypes) {
          // Absolute total movement, used to control swipe vs. scroll.
          var totalX, totalY;
          // Coordinates of the start position.
          var startCoords;
    Severity: Major
    Found in myems-admin/js/angular/angular-touch.js - About 2 hrs to fix

      Function mutateEvents has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function mutateEvents(events, clearEnd, forceAllDay, dateDelta, durationDelta) {
              var isAmbigTimezone = t.getIsAmbigTimezone();
              var undoFunctions = [];
      
              $.each(events, function(i, event) {
      Severity: Major
      Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 2 hrs to fix

        Function renderSegHtml has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            renderSegHtml: function(seg, disableResizing) {
                var view = this.view;
                var event = seg.event;
                var isDraggable = view.isEventDraggable(event);
                var isResizable = !disableResizing && seg.isEnd && view.isEventResizable(event);
        Severity: Major
        Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 2 hrs to fix

          Function mousedown has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function mousedown(e, space) {
                      var offset = plate.offset(),
                          isTouch = /^touch/.test(e.type),
                          x0 = offset.left + dialRadius,
                          y0 = offset.top + dialRadius,
          Severity: Major
          Found in myems-admin/js/plugins/clockpicker/clockpicker.js - About 2 hrs to fix

            Function DateRangePicker has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var DateRangePicker = function (element, options, cb) {
            
                    // by default, the daterangepicker element is placed at the bottom of HTML body
                    this.parentEl = 'body';
            
            
            Severity: Major
            Found in myems-admin/js/plugins/daterangepicker/daterangepicker.js - About 2 hrs to fix

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

                      link: function ($scope, $elem) {
                          var ctx = $elem[0].getContext("2d");
                          var autosize = false;
              
                          $scope.size = function () {
              Severity: Major
              Found in myems-admin/js/plugins/chartJs/angles.js - About 2 hrs to fix

                Function winnow_results has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        AbstractChosen.prototype.winnow_results = function() {
                            var escapedSearchText, option, regex, regexAnchor, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
                            this.no_results_clear();
                            results = 0;
                            searchText = this.get_search_text();
                Severity: Major
                Found in myems-admin/js/plugins/chosen/chosen.jquery.js - About 2 hrs to fix

                  Function show has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    Tooltip.prototype.show = function () {
                      var e = $.Event('show.bs.' + this.type)
                  
                      if (this.hasContent() && this.enabled) {
                        this.$element.trigger(e)
                  Severity: Major
                  Found in myems-admin/js/bootstrap/bootstrap.js - About 2 hrs to fix

                    Function EventDetailAside has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    const EventDetailAside = () => {
                      const { loading, data: events } = useFakeFetch(rawEvents.slice(2));
                    
                      const scrollToEventMap = e => {
                        e.preventDefault();
                    Severity: Major
                    Found in myems-web/src/components/page/EventDetail.js - About 2 hrs to fix

                      Function DashboardAlt has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      const DashboardAlt = () => {
                        const resolveUsers = users.slice(0, 5);
                        return (
                          <Fragment>
                            <Row noGutters>
                      Severity: Major
                      Found in myems-web/src/components/dashboard-alt/DashboardAlt.js - About 2 hrs to fix

                        Function generate_excel has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        def generate_excel(report,
                                           name,
                                           base_period_start_datetime_local,
                                           base_period_end_datetime_local,
                                           reporting_start_datetime_local,
                        Severity: Major
                        Found in myems-api/excelexporters/combinedequipmentenergyitem.py - About 2 hrs to fix

                          Function generate_excel has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          def generate_excel(report,
                                             name,
                                             base_period_start_datetime_local,
                                             base_period_end_datetime_local,
                                             reporting_start_datetime_local,
                          Severity: Major
                          Found in myems-api/excelexporters/combinedequipmentefficiency.py - About 2 hrs to fix

                            Function StateMatcher has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                var StateMatcher = /** @class */ (function () {
                                    function StateMatcher(_states) {
                                        this._states = _states;
                                    }
                                    StateMatcher.prototype.isRelative = function (stateName) {
                            Severity: Major
                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                              Function areAnimationsAllowed has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function areAnimationsAllowed(node, parentNode, event) {
                                    var bodyNode = $document[0].body;
                                    var rootNode = getDomNode($rootElement);
                              
                                    var bodyNodeDetected = (node === bodyNode) || node.nodeName === 'HTML';
                              Severity: Major
                              Found in myems-admin/js/angular/angular-animate.js - About 2 hrs to fix

                                Function move has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        move: function () {
                                            var parentOffset = { top: 0, left: 0 },
                                                containerTop;
                                            var parentRightEdge = $(window).width();
                                            if (!this.parentEl.is('body')) {
                                Severity: Major
                                Found in myems-admin/js/plugins/daterangepicker/daterangepicker.js - About 2 hrs to fix

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

                                                  link: function (scope, element, attrs, ctrl) {
                                                      if (!ctrl) {
                                                          return;
                                                      }
                                  
                                  
                                  Severity: Major
                                  Found in myems-admin/js/plugins/uiMask/masks.js - About 2 hrs to fix

                                    Function o has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function o() {
                                            var e = this;
                                            e.name = "Footable LucidBookmarkable", e.init = function(e) {
                                                e.options.bookmarkable.enabled && t(e.table).bind({
                                                    footable_initialized: function() {
                                    Severity: Major
                                    Found in myems-admin/js/plugins/footable/footable.all.min.js - About 2 hrs to fix

                                      Function editMeter has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          $scope.editMeter = function(meter) {
                                              var modalInstance = $uibModal.open({
                                                  windowClass: "animated fadeIn",
                                                  templateUrl: 'views/settings/meter/meter.model.html',
                                                  controller: 'ModalEditMeterCtrl',
                                      Severity: Major
                                      Found in myems-admin/app/controllers/settings/meter/meter.controller.js - About 2 hrs to fix

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

                                                                        function ($ocLazyLoad) {
                                                                            return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'daterangepicker', 'toaster']).then(
                                                                                function () {
                                                                                    return $ocLazyLoad.load([{
                                                                                        serie: true,
                                        Severity: Major
                                        Found in myems-admin/app/config.router.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language