YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function registerDeleteWidgetEvent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        registerDeleteWidgetEvent: function (contents) {
            if (typeof contents === 'undefined') {
                contents = jQuery('#layoutDashBoards');
            }
            contents.find('.js-delete-widget').on('click', (e) => {

    Function registerFieldChange has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            registerFieldChange() {
                $('#saveTask').on('change', 'select[name="fieldname"]', (e) => {
                    const selectedElement = $(e.currentTarget);
                    const conditionRow = selectedElement.closest('.js-conditions-row');
                    if (selectedElement.val() !== 'none' && selectedElement.val()) {

      Function validateTaxName has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              validateTaxName: function (data) {
                  var thisInstance = this;
                  var aDeferred = jQuery.Deferred();
      
                  var taxName = data.taxlabel;
      Severity: Minor
      Found in public_html/layouts/basic/modules/Settings/Vtiger/resources/Tax.js - About 1 hr to fix

        Function copyMenu has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                copyMenu: function (fromRole) {
                    var thisInstance = this;
                    var aDeferred = jQuery.Deferred();
                    var progressIndicatorElement = jQuery.progressIndicator({
                        position: 'html',
        Severity: Minor
        Found in public_html/layouts/basic/modules/Settings/Menu/resources/Menu.js - About 1 hr to fix

          Function registerSummationEvent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  registerSummationEvent: function () {
                      let thisInstance = this;
                      this.content.on('click', '.listViewSummation button', function () {
                          let button = $(this);
                          let calculateValue = button.closest('td').find('.calculateValue');
          Severity: Minor
          Found in public_html/layouts/basic/modules/Vtiger/resources/RelatedList.js - About 1 hr to fix

            Function setCalendarModuleOptions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                setCalendarModuleOptions() {
                    const self = this;
                    return {
                        allDaySlot: app.getMainParams('allDaySlot'),
                        dateClick: (args) => {

              Function registerSave has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      registerSave: function () {
                          this.container.find('.js-modal__save').on('click', (e) => {
                              e.preventDefault();
                              let form = this.container.find('form');
                              if (form.validationEngine('validate')) {
              Severity: Minor
              Found in public_html/layouts/basic/modules/SMSNotifier/resources/MassSMS.js - About 1 hr to fix

                Function getSelectedUsersCalendar has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    getSelectedUsersCalendar() {
                        const sidebar = this.getSidebarView();
                        let selectedUsers = sidebar.find('.js-input-user-owner-id:checked'),
                            notSelectedUsers = sidebar.find('.js-input-user-owner-id:not(:checked)'),
                            selectedUsersAjax = sidebar.find('.js-input-user-owner-id-ajax'),
                Severity: Minor
                Found in public_html/layouts/basic/modules/Vtiger/resources/CalendarView.js - About 1 hr to fix

                  Function getInstance has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          getInstance: function () {
                              if (Vtiger_List_Js.listInstance === false) {
                                  let module = app.getModuleName(),
                                      parentModule = app.getParentModuleName(),
                                      moduleClassName,
                  Severity: Minor
                  Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix

                    Function registerAccountName has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            registerAccountName: function (container) {
                                let first = container.find('.js-first-name');
                                let firstInput = first.find('input');
                                let last = container.find('.js-last-name');
                                let lastInput = last.find('input');
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

                      Function source has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                      source: function (request, response) {
                                          //element will be array of dom elements
                                          //here this refers to auto complete instance
                                          let inputElement = $(this.element[0]);
                                          let searchValue = request.term;
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

                        Function enableCopyAddressFromModule has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                enableCopyAddressFromModule: function (moduleName, formElement, className, fieldName, label) {
                                    let thisInstance = this;
                                    formElement
                                        .find('.' + className)
                                        .removeClass('d-none')
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

                          Function registerSelectField has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  registerSelectField: function () {
                                      let editInstance = Vtiger_Edit_Js.getInstance(this.module);
                                      let form = this.container.find('form');
                                      this.container.find('.js-changesjson-select').on('change', (e) => {
                                          let element = $(e.currentTarget);

                            Function requestReminder has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                requestReminder: function () {
                                    let thisInstance = this;
                                    let content = $('.remindersNoticeContainer');
                                    let element = $('.remindersNotice');
                                    let url = 'index.php?module=Calendar&view=Reminders&type_remainder=true';
                            Severity: Minor
                            Found in public_html/layouts/basic/modules/Vtiger/resources/Vtiger.js - About 1 hr to fix

                              Function getUi has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      getUi: function () {
                                          let comparatorSelectedOptionVal = this.get('comparatorElementVal'),
                                              html,
                                              element;
                                          if (this._specialDateTimeComparator(comparatorSelectedOptionVal)) {

                                Function loadWidgetsEvents has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        loadWidgetsEvents: function () {
                                            const thisInstance = this;
                                            app.event.on('DetailView.Widget.AfterLoad', function (e, widgetContent, relatedModuleName, instance) {
                                                if (relatedModuleName === 'Calendar') {
                                                    thisInstance.reloadWidgetActivitesStats(widgetContent.closest('.activityWidgetContainer'));
                                Severity: Minor
                                Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                                  Function registerSetReadRecord has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          registerSetReadRecord: function (detailContentsHolder) {
                                              let thisInstance = this;
                                              detailContentsHolder.on('click', '.setReadRecord', function (e) {
                                                  let currentElement = jQuery(e.currentTarget);
                                                  currentElement.closest('.btn-group').addClass('d-none');
                                  Severity: Minor
                                  Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                                    Function parseOptionsObject has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            parseOptionsObject: function parseOptionsObject(options, original, afterInit = false) {
                                                let result = {};
                                                for (let propertyName in options) {
                                                    let value = options[propertyName];
                                                    if (afterInit) {

                                      Function registerChangeConditions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          registerChangeConditions(container) {
                                              let self = this;
                                              container.on('change', '.js-conditions-fields, .js-conditions-operator', (e) => {
                                                  let progress = $.progressIndicator({
                                                      position: 'html',

                                        Function registerHeaderActions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            registerHeaderActions() {
                                                this.headerContainer.find('.js-gantt-header__btn-filter').on('click', (e) => {
                                                    e.preventDefault();
                                                    this.showFiltersModal();
                                                });
                                        Severity: Minor
                                        Found in public_html/layouts/basic/modules/Project/resources/Gantt.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language