YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function registerSelectAllModulesEvent has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    registerSelectAllModulesEvent: function () {
        var moduleCheckBoxes = jQuery('.modulesCheckBox');
        var viewAction = jQuery('#mainAction4CheckBox');
        var editAction = jQuery('#mainAction1CheckBox');
        var deleteAction = jQuery('#mainAction2CheckBox');

    Function onValidationComplete has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                                    params.onValidationComplete = function (form, valid) {
                                        if (valid) {
                                            var progressInstance = jQuery.progressIndicator({
                                                position: 'html',
                                                blockInfo: {
    Severity: Minor
    Found in public_html/layouts/basic/modules/Users/resources/List.js - About 1 hr to fix

      Function registerDragDropEvent has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              registerDragDropEvent: function (contentData) {
                  if (contentData == undefined) {
                      return;
                  }
                  const thisInstance = this;

        Function updateSequenceRelatedModule has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                updateSequenceRelatedModule: function () {
                    var modules = [];
                    var relatedModulesContainer = $('.relatedModulesList');
                    var params = {};
                    var progressIndicatorElement = $.progressIndicator({

          Function registerCheckVerificationCode has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  registerCheckVerificationCode: function () {
                      this.container.find('button.js-email-verification-modal__back').on('click', () => {
                          this.container.find('input:visible').val('');
                          this.toggleForms();
                      });

            Function updateBlockStatus has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    updateBlockStatus: function (currentTarget) {
                        var blockStatus = currentTarget.data('visible');
                        var progressIndicatorElement = $.progressIndicator({
                            position: 'html',
                            blockInfo: {

              Function registerModulePickListChangeEvent has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      registerModulePickListChangeEvent: function () {
                          var thisInstance = this;
                          var container = jQuery('.picklistViewContentDiv');
                          container.find('.modulePickList').on('change', function (e) {
                              var progressIndicatorElement = jQuery.progressIndicator({

                Function registerStatsEvent has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    registerStatsEvent: function () {
                        var thisInstance = this;
                        jQuery('.statsData .btn').on('click', function (e) {
                            var progress = $.progressIndicator({
                                position: 'html',

                  Function registerUploadButton has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      registerUploadButton: function (form) {
                          form.on('submit', function (e) {
                              e.preventDefault();
                              if (form.validationEngine('validate') === true) {
                                  app.removeEmptyFilesInput(form[0]);
                  Severity: Minor
                  Found in public_html/layouts/basic/modules/Settings/Roles/resources/Roles.js - About 1 hr to fix

                    Function registerSaveEvent has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            registerSaveEvent: function (mode, data, reload) {
                                var params = {};
                                params.data = {
                                    module: app.getModuleName(),
                                    parent: app.getParentModuleName(),
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Settings/Dav/resources/Dav.js - About 1 hr to fix

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

                              registerSave: function (container) {
                                  container.validationEngine(app.validationEngineOptions);
                                  container.find('.saveGlobal').on('click', (e) => {
                                      if (!container.validationEngine('validate')) {
                                          app.formAlignmentAfterValidation(container);

                        Function LoadEditLang has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            LoadEditLang: function (e) {
                                var element = jQuery(e);
                                var position = element.attr('href');
                                if (typeof position === 'undefined') {
                                    position = '#' + element.attr('id');

                          Function registerAdvancedConditionsEvents has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              static registerAdvancedConditionsEvents(container) {
                                  const self = this;
                                  const builder = container.find('.js-adv-condition-builder-view');
                                  const relationSelect = container.find('.js-relation-select');
                                  if (relationSelect.val() != 0) {

                            Function registerRssButtonClickEvent has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    registerRssButtonClickEvent: function (container) {
                                        var thisInstance = this;
                                        container.on('click', '.rssAddButton', function (e) {
                                            thisInstance.showRssModal('getRssAddForm').done(function (data) {
                                                var callBackFunction = function (data) {
                            Severity: Minor
                            Found in public_html/layouts/basic/modules/Rss/resources/List.js - About 1 hr to fix

                              Function registerDelBtnClick has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      registerDelBtnClick(container) {
                                          container.find('.js-delete-row-action').on('click', (e) => {
                                              e.preventDefault();
                                              e.stopPropagation();
                                              const row = $(e.target).closest('.js-custom-row');

                                Function select has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                select: (event, ui) => {
                                                    let selected = ui.item;
                                                    //To stop selection if no results is selected
                                                    if (typeof selected.type !== 'undefined' && selected.type == 'no results') {
                                                        return false;
                                Severity: Minor
                                Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                                  Function triggerTransferOwnership has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          triggerTransferOwnership: function (massActionUrl) {
                                              let thisInstance = this;
                                              thisInstance.getRelatedModulesContainer = false;
                                              let actionParams = {
                                                  type: 'POST',
                                  Severity: Minor
                                  Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                                    Function saveComment has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            saveComment: function (e) {
                                                let aDeferred = jQuery.Deferred(),
                                                    currentTarget = jQuery(e.currentTarget),
                                                    commentMode = currentTarget.data('mode'),
                                                    closestCommentBlock = currentTarget.closest('.js-add-comment-block'),
                                    Severity: Minor
                                    Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                                      Function _search has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              _search: function (params) {
                                                  let aDeferred = jQuery.Deferred();
                                                  if (typeof params === 'undefined') {
                                                      params = {};
                                                  }
                                      Severity: Minor
                                      Found in public_html/layouts/basic/modules/Vtiger/resources/BasicSearch.js - About 1 hr to fix

                                        Function registerMenu has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            registerMenu: function () {
                                                const self = this;
                                                self.keyboard = { DOWN: 40, ESCAPE: 27, LEFT: 37, RIGHT: 39, SPACE: 32, UP: 38 };
                                                self.sidebarBtn = $('.js-sidebar-btn').first();
                                                self.sidebar = $('.js-sidebar').first();
                                        Severity: Minor
                                        Found in public_html/layouts/resources/app.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language