YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function registerEmptyRecycle has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        registerEmptyRecycle: function () {
            const self = this,
                container = this.getListViewContainer();
            container.find('.js-recycle-empty').on('click', function () {
                app.showConfirmModal({
Severity: Minor
Found in public_html/layouts/basic/modules/RecycleBin/resources/List.js - About 1 hr to fix

    Function registerListViewSelect has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            registerListViewSelect: function () {
                let self = this,
                    listViewContainer = this.getContainer();
                listViewContainer.find('.listViewEntriesTable .select2noactive').each((index, domElement) => {
                    let select = $(domElement);
    Severity: Minor
    Found in public_html/layouts/basic/modules/Vtiger/resources/ListSearch.js - About 1 hr to fix

      Function getDefaultParams has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              getDefaultParams: function () {
                  let container = this.getRelatedContainer();
                  let params = Object.assign({}, this.defaultParams);
                  params['page'] = this.getCurrentPageNum();
                  params['orderby'] = this.getOrderBy();
      Severity: Minor
      Found in public_html/layouts/basic/modules/Vtiger/resources/RelatedList.js - About 1 hr to fix

        Function getDefaultParams has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                getDefaultParams: function () {
                    let params = {
                        module: app.getModuleName(),
                        view: app.getViewName(),
                        viewname: this.getCurrentCvId(),
        Severity: Minor
        Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix

          Function registerEventForCopyBlockAddress has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  registerEventForCopyBlockAddress: function (moduleName, fieldName) {
                      const self = this;
                      if (moduleName == 'Accounts') {
                          self.enableCopyAddressFromModule(
                              moduleName,
          Severity: Minor
          Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

            Function initDiscountsParameters has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    initDiscountsParameters: function (parentRow, modal) {
                        let parameters = parentRow.find('.discountParam').val();
                        if (parameters == '' || parameters == undefined) {
                            return;
                        }
            Severity: Minor
            Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

              Function getTax has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      getTax: function (row) {
                          const self = this;
                          let taxParams = row.find('.taxParam').val();
                          if (taxParams == '' || taxParams == '[]' || taxParams == undefined) return 0;
                          taxParams = JSON.parse(taxParams);
              Severity: Minor
              Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                Function loadSubProducts has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        loadSubProducts: function (parentRow, indicator) {
                            let thisInstance = this;
                            let progressInstace;
                            let recordId = $('input.sourceField', parentRow).val();
                            let recordModule = parentRow.find('.rowName input[name="popupReferenceModule"]').val();
                Severity: Minor
                Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                  Function getAllTaxes has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          getAllTaxes: function () {
                              let thisInstance = this;
                              let tax = [];
                              let typeSummary = $('.aggregationTypeTax').val();
                              this.getInventoryItemsContainer()
                  Severity: Minor
                  Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                    Function registerSortableItems has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            registerSortableItems: function () {
                                let thisInstance = this;
                                let items = thisInstance.getInventoryItemsContainer();
                                items.sortable({
                                    handle: '.dragHandle',
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                      Function registerStep2 has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              registerStep2(stepContainer) {
                                  this.step2.append(stepContainer);
                                  this.stepNumber.val(2);
                                  this.footer.hide();
                                  let filtersIdElement = this.step2.find('.filtersId');

                        Function saveCurrencies has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                saveCurrencies(modalContainer) {
                                    let enabledBaseCurrency = modalContainer.find('.js-enable-currency').filter(':checked');
                                    if (enabledBaseCurrency.length < 1) {
                                        Vtiger_Helper_Js.showMessage({
                                            text: app.vtranslate('JS_PLEASE_SELECT_BASE_CURRENCY_FOR_PRODUCT'),
                        Severity: Minor
                        Found in public_html/layouts/resources/Fields.js - About 1 hr to fix

                          Function openListInModal has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  openListInModal: function () {
                                      $('.js-open-list-in-modal').on('click', function () {
                                          let element = $(this),
                                              moduleName = element.data('module-name'),
                                              type = '',
                          Severity: Minor
                          Found in public_html/layouts/basic/modules/Import/resources/Import.js - About 1 hr to fix

                            Function registerMentions has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        registerMentions() {
                                            let minSerchTextLength = app.getMainParams('gsMinLength');
                                            return [
                                                {
                                                    feed: this.getMentionUsersData.bind(this),
                            Severity: Minor
                            Found in public_html/layouts/resources/Fields.js - About 1 hr to fix

                              Function init has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      init() {
                                          let addButton = $('.js-meeting-add', this.container);
                                          if (!addButton.length) {
                                              return false;
                                          }
                              Severity: Minor
                              Found in public_html/layouts/resources/Fields.js - About 1 hr to fix

                                Function registerPopoverManualTrigger has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    registerPopoverManualTrigger(element, manualTriggerDelay) {
                                        const hideDelay = 500;
                                        element.on('mouseleave', (e) => {
                                            setTimeout(() => {
                                                let currentPopover = this.getBindedPopover(element);
                                Severity: Minor
                                Found in public_html/layouts/resources/app.js - About 1 hr to fix

                                  Function registerBlockAnimationEvent has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      registerBlockAnimationEvent: function (container = false) {
                                          let detailViewContentHolder = $('div.details div.contents');
                                          let blockHeader = detailViewContentHolder.find('.blockHeader');
                                          if (container !== false) {
                                              blockHeader = container.find('.blockHeader');
                                  Severity: Minor
                                  Found in public_html/layouts/resources/app.js - About 1 hr to fix

                                    Method testCreateTemplate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function testCreateTemplate()
                                        {
                                            $this->fileName = uniqid() . '.pdf';
                                            $pdfModel = \Settings_PDF_Record_Model::getCleanInstance(self::MODULE_NAME);
                                            $pdfModel->set('module_name', self::MODULE_NAME);
                                    Severity: Minor
                                    Found in tests/Settings/Pdf.php - About 1 hr to fix

                                      Method testDeleteNewField has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function testDeleteNewField($type, $param, $suffix = '')
                                          {
                                              $key = $type . $suffix;
                                              $fieldInstance = \Settings_LayoutEditor_Field_Model::getInstance(self::$fieldsId[$key]);
                                              $uitype = $fieldInstance->getUIType();
                                      Severity: Minor
                                      Found in tests/Settings/ModuleManager.php - About 1 hr to fix

                                        Method testResetPassword has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function testResetPassword(): void
                                            {
                                                $request = $this->httpClient->post('Users/ResetPassword', \App\Utils::merge(
                                                    [
                                                        'json' => [
                                        Severity: Minor
                                        Found in tests/Integrations/WebservicePremiumTest.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language