YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function basicSearch has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        basicSearch: function () {
            let thisInstance = this;
            $('.js-global-search__value').on('keypress', function (e) {
                let currentTarget = $(e.currentTarget);
                if (e.which == 13) {
Severity: Major
Found in public_html/layouts/basic/modules/Vtiger/resources/Header.js - About 3 hrs to fix

    Function setReferenceFieldValue has 76 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            setReferenceFieldValue: function (container, params) {
                const thisInstance = this;
                let sourceFieldElement = container.find('input.sourceField');
                let sourceField = sourceFieldElement.attr('name');
                let fieldElement = container.find('input[name="' + sourceField + '"]');
    Severity: Major
    Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 3 hrs to fix

      Function render has 76 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              render: function () {
                  var self = this;
      
                  this.$list = new ListWidget({
                      itemRenderer: function (li, value) {
      Severity: Major
      Found in public_html/layouts/resources/debugbar/logs.js - About 3 hrs to fix

        Method exportRelatedLists has 76 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function exportRelatedLists(ModuleBasic $moduleInstance)
            {
                if (!$moduleInstance->isentitytype) {
                    return;
                }
        Severity: Major
        Found in vtlib/Vtiger/PackageExport.php - About 3 hrs to fix

          Method save has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function save()
              {
                  $db = App\Db::getInstance();
                  $profileName = $this->get('profilename');
                  $description = $this->get('description');
          Severity: Major
          Found in modules/Settings/Profiles/models/Record.php - About 3 hrs to fix

            Method step2 has 76 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function step2(App\Request $request)
                {
                    $viewer = $this->getViewer($request);
                    $moduleName = $request->getModule();
                    $qualifiedModuleName = $request->getModule(false);
            Severity: Major
            Found in modules/Settings/Workflows/views/Edit.php - About 3 hrs to fix

              Method getQuery has 76 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getQuery()
                  {
                      $queryGenerator = new App\QueryGenerator($this->getModuleName());
                      if ($this->has('customFilter')) {
                          $queryGenerator->initForCustomViewById($this->get('customFilter'));
              Severity: Major
              Found in modules/Calendar/models/Calendar.php - About 3 hrs to fix

                Method get has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function get(): array
                    {
                        $this->loadResponseParams();
                        $moduleName = $this->controller->request->get('module');
                        $module = \Vtiger_Module_Model::getInstance($moduleName);
                Severity: Major
                Found in api/webservice/WebserviceStandard/BaseModule/Fields.php - About 3 hrs to fix

                  File Detail.js has 293 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
                  'use strict';
                  
                  Vtiger_Detail_Js(
                      'HelpDesk_Detail_Js',
                  Severity: Minor
                  Found in public_html/layouts/basic/modules/HelpDesk/resources/Detail.js - About 3 hrs to fix

                    File Record.php has 293 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    /**
                     * Record Model.
                     *
                    Severity: Minor
                    Found in modules/Settings/WebserviceUsers/models/Record.php - About 3 hrs to fix

                      Function registerEditors has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              registerEditors(container, fonts = ['DejaVu Sans']) {
                                  container.find('.js-editor').each(function () {
                                      const editor = $(this);
                                      if (typeof CONFIG.fonts !== 'undefined' && fonts.length === 1) {
                                          fonts = CONFIG.fonts.map((font) => font);
                      Severity: Major
                      Found in public_html/layouts/basic/modules/Settings/PDF/resources/Edit.js - About 3 hrs to fix

                        `` has 26 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                            {
                                moduleName: false,
                                container: false,
                                reletedInstance: false,
                                viewName: false,
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Vtiger/resources/ListSearch.js - About 3 hrs to fix

                          Function registerFilterForAddingModuleRelatedRecordFromSummaryWidget has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  registerFilterForAddingModuleRelatedRecordFromSummaryWidget: function (container) {
                                      let thisInstance = this;
                                      container
                                          .find('.createRecordFromFilter')
                                          .off()
                          Severity: Major
                          Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 3 hrs to fix

                            Function loadConditions has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    loadConditions: function (fieldSelect) {
                                        var row = fieldSelect.closest('div.js-conditions-row');
                                        var conditionSelectElement = row.find('select[name="comparator"]');
                                        var group = row.find('[name="column_condition"]');
                                        var conditionSelected = conditionSelectElement.val();
                            Severity: Major
                            Found in public_html/layouts/basic/modules/Vtiger/resources/AdvanceFilter.js - About 3 hrs to fix

                              Function onOk has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      onOk: function () {
                                          /* Get image source */
                                          let src = '';
                                          try {
                                              src = CKEDITOR.document.getById(editor.id + 'previewimage').$.src;

                                MailIntegration_Iframe has 26 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                window.MailIntegration_Iframe = {
                                    mailId: 0,
                                    container: {},
                                    iframe: {},
                                    iframeWindow: {},
                                Severity: Minor
                                Found in public_html/layouts/basic/modules/MailIntegration/resources/Iframe.js - About 3 hrs to fix

                                  Function registerFormsEvents has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      registerFormsEvents: function (container) {
                                          let forms = container.find('form.js-form-ajax-submit,form.js-form-single-save');
                                          forms.each((i, form) => {
                                              form = $(form);
                                              let validationForm = false;
                                  Severity: Major
                                  Found in public_html/layouts/resources/app.js - About 3 hrs to fix

                                    Method __create has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function __create($blockInstance)
                                        {
                                            $db = \App\Db::getInstance();
                                            $this->block = $blockInstance;
                                            $moduleInstance = $this->getModuleInstance();
                                    Severity: Major
                                    Found in vtlib/Vtiger/FieldBasic.php - About 3 hrs to fix

                                      TextParser has 26 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class TextParser extends \Tests\Base
                                      {
                                          /**
                                           * Test record instance.
                                           *
                                      Severity: Minor
                                      Found in tests/App/TextParser.php - About 3 hrs to fix

                                        Rbl has 26 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class Rbl extends \App\Base
                                        {
                                            /**
                                             * Request statuses.
                                             *
                                        Severity: Minor
                                        Found in app/Mail/Rbl.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language