YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function getFreeTime has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getFreeTime: function (container) {
            let ownerId = container.find('[name="assigned_user_id"], [data-element-name="assigned_user_id"]');
            if (ownerId.length === 0 || !ownerId.val()) {
                return;
            }
Severity: Minor
Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

    Function getParams has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            getParams: function () {
                let params = {
                    module: this.moduleName,
                    view: this.container.data('view'),
                    src_module: this.container.find('.js-parent-module').val(),
    Severity: Minor
    Found in public_html/layouts/basic/modules/Vtiger/resources/RecordsList.js - About 1 hr to fix

      Function registerBasicEvents has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              registerBasicEvents: function (container) {
                  this.registerEventForEditor();
                  this.stretchCKEditor();
                  this.referenceModulePopupRegisterEvent(container);
                  this.registerAutoCompleteFields(container);
      Severity: Minor
      Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

        Function generateDaysList has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            generateDaysList() {
                const datesView = this.container.find('.js-dates-row'),
                    activeDays = moment(this.fullCalendar.view.currentStart).format('DDD'),
                    nextDays = moment(this.fullCalendar.view.currentStart).add(7, 'days');
                let prevDays = moment(this.fullCalendar.view.currentStart).subtract(5, 'days'),
        Severity: Minor
        Found in public_html/layouts/basic/modules/Vtiger/resources/CalendarView.js - About 1 hr to fix

          Function saveWidget has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  saveWidget: function (form, mode, sourceModule, linkid, type) {
                      let aDeferred = $.Deferred();
                      let progressIndicatorElement = $.progressIndicator({
                          position: 'html',
                          blockInfo: {
          Severity: Minor
          Found in public_html/layouts/basic/modules/Vtiger/resources/DashBoard.js - About 1 hr to fix

            Function registerBlockStatusCheckOnLoad has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    registerBlockStatusCheckOnLoad: function () {
                        let blocks = this.getForm().find('.js-toggle-panel');
                        let module = this.moduleName;
                        blocks.each(function (index, block) {
                            let currentBlock = $(block);
            Severity: Minor
            Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

              Function registerEventForActivityWidget has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      registerEventForActivityWidget: function () {
                          let thisInstance = this;
              
                          /*
                           * Register click event for add button in Related Activities widget
              Severity: Minor
              Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                Function generateChartData has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        generateChartData: function () {
                            const thisInstance = this,
                                container = this.getContainer(),
                                jData = container.find('.widgetData').val(),
                                data = JSON.parse(jData);

                  Function timeCounter has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          timeCounter: function () {
                              if (this.counter === false) {
                                  this.sec = parseInt(this.sec);
                                  this.min = parseInt(this.min);
                                  this.hr = parseInt(this.hr);

                    Function getFieldSpecificUi has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            getFieldSpecificUi: function (fieldSelectElement) {
                                let fieldModel = this.fieldModelInstance,
                                    html;
                                if (fieldModel.get('comparatorElementVal') === 'd') {
                                    html = '<div class="checkbox"><label><input type="checkbox" name="' + fieldModel.getName() + '" value="0" ';
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Vtiger/resources/AdvanceFilter.js - About 1 hr to fix

                      Function jumpToPage has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              jumpToPage(e) {
                                  const self = this,
                                      listViewPageDiv = this.getListViewContainer();
                                  if (13 === e.which) {
                                      e.stopImmediatePropagation();
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix

                        Function registerSortable has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                registerSortable: function () {
                                    const boards = this.container.find('.js-kanban-records');
                                    boards.sortable({
                                        containment: this.container,
                                        items: boards.find('.js-kanban-record'),
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Vtiger/resources/Kanban.js - About 1 hr to fix

                          Function checkLimits has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  checkLimits: function () {
                                      const account = this.getAccountId(),
                                          limit = parseInt(app.getMainParams('inventoryLimit'));
                                      let response = true;
                                      if (account == '' || this.limitEnableSave || !limit) {
                          Severity: Minor
                          Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                            Function generateTree has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    generateTree: function (container) {
                                        let thisInstance = this;
                                        if (thisInstance.treeInstance == false) {
                                            thisInstance.treeInstance = container.find('#treePopupContents');
                                            let plugins = ['search', 'category'];

                              Function updateEvent has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  updateEvent(info) {
                                      const progressInstance = jQuery.progressIndicator({ blockInfo: { enabled: true } });
                                      AppConnector.request({
                                          module: this.module ? this.module : CONFIG.module,
                                          action: 'Calendar',
                              Severity: Minor
                              Found in public_html/layouts/resources/Calendar.js - About 1 hr to fix

                                Function itemRenderer has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                itemRenderer: function (li, value) {
                                                    if (value.message_html) {
                                                        var val = $('<span />').addClass(csscls('value')).html(value.message_html).appendTo(li);
                                                    } else {
                                                        var m = value.message;
                                Severity: Minor
                                Found in public_html/layouts/resources/debugbar/logs.js - About 1 hr to fix

                                  Function initEditView has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          initEditView() {
                                              this.fileInput.detach();
                                              this.container.on('mouseup', this.openBrowser.bind(this));
                                              this.fileInput.fileupload({
                                                  dataType: 'json',
                                  Severity: Minor
                                  Found in public_html/layouts/resources/Fields.js - About 1 hr to fix

                                    Function registerPopover has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        registerPopover(container = $(document)) {
                                            window.popoverCache = {};
                                            container.on('mousemove', (e) => {
                                                app.mousePosition = { x: e.pageX, y: e.pageY };
                                            });
                                    Severity: Minor
                                    Found in public_html/layouts/resources/app.js - About 1 hr to fix

                                      Function validate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              validate: function (dependentFieldList) {
                                                  let thisInstance = this;
                                                  let field = this.getElement();
                                                  let fieldDateTime = '';
                                                  let fieldDateTimeInstance = [];
                                      Severity: Minor
                                      Found in public_html/layouts/resources/validator/FieldValidator.js - About 1 hr to fix

                                        Function requestForm has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            requestForm: function (url, postData = {}, formAttr = {}) {
                                                $.extend(formAttr, {
                                                    method: 'post',
                                                    action: url,
                                                    style: 'display:none;'
                                        Severity: Minor
                                        Found in public_html/layouts/resources/Connector.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language