YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function saveAndViewFilter has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    saveAndViewFilter() {
        this.saveFilter()
            .done(function (data) {
                let response = data.result;
                if (response && response.success) {

    Function sendMailWindow has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        sendMailWindow: function (url, popup, postData) {
            if (popup) {
                let width = screen.width - 15;
                let height = screen.height - 150;
                let left = 0;
    Severity: Minor
    Found in public_html/layouts/basic/modules/Vtiger/resources/Vtiger.js - About 1 hr to fix

      Function registerDayClickEvent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          registerDayClickEvent(info) {
              const self = this,
                  userFormat = App.Fields.Date.dateToUserFormat(info.date);
              if (!CONFIG.isQuickCreateSupported) {
                  app.openUrl(
      Severity: Minor
      Found in public_html/layouts/basic/modules/Vtiger/resources/CalendarView.js - About 1 hr to fix

        Function registerReferenceFields has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                registerReferenceFields: function (container) {
                    let thisInstance = this;
                    if (!CONFIG.fieldsReferencesDependent) {
                        return false;
                    }
        Severity: Minor
        Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

          Function registerCheckBoxClickEvent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  registerCheckBoxClickEvent: function () {
                      let listViewPageDiv = this.getListViewContainer();
                      let thisInstance = this;
                      listViewPageDiv.on('click', '.listViewEntriesCheckBox', function (e) {
                          let selectedIds = thisInstance.readSelectedIds();
          Severity: Minor
          Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix

            Function registerEditQty has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                registerEditQty: function () {
                    let thisInstance = this;
                    let element = this.content.find('.js-edit-qtyproductinstock');
                    element.validationEngine(app.validationEngineOptions);
                    element.on('change', (e) => {

              Function registerRowChangeEvent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      registerRowChangeEvent: function (container) {
                          container.on('focusout', '.qty', (e) => {
                              let element = $(e.currentTarget);
                              element.formatNumber();
                              this.quantityChangeActions(this.getClosestRow(element));
              Severity: Minor
              Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                Function readCondition has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    readCondition(container, skipEmpty) {
                        let self = this;
                        let condition = container.find('> .js-condition-switch .js-condition-switch-value').hasClass('active')
                            ? 'AND'
                            : 'OR';

                  Function cb has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                      cb: (modalContainer) => {
                                          modalContainer.find('.js-modal__save').on('click', (e) => {
                                              let element = modalContainer.find('.js-margin');
                                              let resultOfValidation = Vtiger_NumberUserFormat_Validator_Js.invokeValidation(element);
                                              if (typeof resultOfValidation !== 'undefined') {

                    Function registerEditListPrice has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            registerEditListPrice: function () {
                                let thisInstance = this;
                                let element = this.content.find('.js-edit-listprice');
                                element.validationEngine(app.validationEngineOptions);
                                element.on('change', (e) => {

                      Function addItem has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              addItem(module, baseTableId, rowData = false) {
                                  const items = this.getInventoryItemsContainer();
                                  let newRow = this.getBasicRow();
                                  const sequenceNumber = this.getNextLineItemRowNumber();
                                  const replaced = newRow.html().replace(/\_NUM_/g, sequenceNumber);
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                        Function registerRowAutoComplete has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                registerRowAutoComplete: function (container) {
                                    const thisInstance = this;
                                    let sourceFieldElement = container.find('.sourceField.js-name');
                                    sourceFieldElement.on(Vtiger_Edit_Js.referenceSelectionEvent, function (e, params) {
                                        let record = params.record;
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                          Function registerStep4 has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  registerStep4(stepContainer) {
                                      this.step4.append(stepContainer);
                                      this.stepNumber.val(4);
                                      App.Fields.Picklist.showSelect2ElementView(this.step4.find('select'));
                                      let dividingField = this.step4.find('[name="dividingField"]');

                            Function loadScrollbar has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    loadScrollbar: function loadScrollbar() {
                                        let container = $(this.getChartContainer(false));
                                        if (!container.length) {
                                            container = this.getContainerContent();
                                        }

                              Function registerAutocomplete has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  registerAutocomplete() {
                                      return this.container.find('.js-search-input').autocomplete({
                                          delay: '600',
                                          minLength: '3',
                                          classes: {

                                Function constructor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    constructor(container = $('.js-base-container'), readonly = false, browserHistory = true) {
                                        this.calendarCreateView = false;
                                        this.container = container;
                                        this.calendarView = container.find('.js-calendar__container');
                                        this.readonly = readonly;
                                Severity: Minor
                                Found in public_html/layouts/resources/Calendar.js - About 1 hr to fix

                                  Function constructor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              constructor(inputDiv = $('.js-completions').eq(0), params = {}) {
                                                  if (typeof inputDiv === 'undefined' || inputDiv.length === 0) {
                                                      return;
                                                  } else if (inputDiv.length === undefined) {
                                                      inputDiv = $(inputDiv);
                                  Severity: Minor
                                  Found in public_html/layouts/resources/Fields.js - About 1 hr to fix

                                    Function showModalHtml has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        showModalHtml: function (params) {
                                            let data = '',
                                                icon = '';
                                            let footer = params['footer'] ?? '';
                                            if (params['header']) {
                                    Severity: Minor
                                    Found in public_html/layouts/resources/app.js - About 1 hr to fix

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

                                              validate: function () {
                                                  let response = this._super();
                                                  if (response === true) {
                                                      let fieldValue = this.getFieldValue();
                                                      let doubleRegex = /(^[-+]?\d+)(\.\d+)?$/;
                                      Severity: Minor
                                      Found in public_html/layouts/resources/validator/FieldValidator.js - About 1 hr to fix

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

                                                validate: function () {
                                                    var field = this.getElement();
                                                    var fieldData = field.data();
                                                    var fieldDateFormat = fieldData.dateFormat;
                                                    var fieldInfo = fieldData.fieldinfo;
                                        Severity: Minor
                                        Found in public_html/layouts/resources/validator/FieldValidator.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language