YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function initEditView has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    initEditView: function () {
        function applyMoveChanges(roleid, parent_roleid) {
            var params = {
                module: 'Roles',
                action: 'MoveAjax',
Severity: Major
Found in public_html/layouts/basic/modules/Settings/Roles/resources/Roles.js - About 3 hrs to fix

    Function showWorkflowTriggerView has 80 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            showWorkflowTriggerView: function (instance) {
                $(instance).popover('hide');
                const detailInstance = Vtiger_Detail_Js.getInstance(),
                    callback = function (data) {
                        let treeInstance = data.find('#treeWorkflowContents');
    Severity: Major
    Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 3 hrs to fix

      Function fixXAxisLabels has 80 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      fixXAxisLabels: function fixXAxisLabels(chart) {
                          let shortenXTicks = function shortenXTicks(data, options) {
                              if (typeof options.scales === 'undefined') {
                                  options.scales = {};
                              }

        Function _undetermined has 80 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                this._undetermined = function () {
                    if (this.element === null) {
                        return;
                    }
                    var i,
        Severity: Major
        Found in public_html/layouts/resources/libraries/jstree.checkbox.js - About 3 hrs to fix

          File ModuleManager.php has 300 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * ModuleManager test class.
           *
           * @package   Tests
          Severity: Minor
          Found in tests/Settings/ModuleManager.php - About 3 hrs to fix

            File CurrencyField.php has 300 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /* +**********************************************************************************
             * The contents of this file are subject to the vtiger CRM Public License Version 1.0
             * ("License"); You may not use this file except in compliance with the License
             * The Original Code is:  vtiger CRM Open Source
            Severity: Minor
            Found in include/fields/CurrencyField.php - About 3 hrs to fix

              File EventHandler.php has 300 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              namespace App;
              
              /**
              Severity: Minor
              Found in app/EventHandler.php - About 3 hrs to fix

                Method process has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function process(): string
                    {
                        $html = '';
                        $moduleName = $this->params[0];
                        if (!empty($textParserParams = $this->textParser->getParam('textParserParams')) && isset($textParserParams['userId'])
                Severity: Major
                Found in app/TextParser/UserRecordsList.php - About 3 hrs to fix

                  Method getConditions has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function getConditions(\App\Db\Query $query, string $moduleName, $user = false, $relatedRecord = null)
                      {
                          if (!($user && $user instanceof \App\User)) {
                              $user = \App\User::getCurrentUserModel();
                          }
                  Severity: Major
                  Found in api/webservice/WebservicePremium/PrivilegeQuery.php - About 3 hrs to fix

                    Settings_Roles_Record_Model has 27 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Settings_Roles_Record_Model extends Settings_Vtiger_Record_Model
                    {
                        /**
                         * Function to get the Id.
                         *
                    Severity: Minor
                    Found in modules/Settings/Roles/models/Record.php - About 3 hrs to fix

                      Settings_WidgetsManagement_Module_Model has 27 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Settings_WidgetsManagement_Module_Model extends Settings_Vtiger_Module_Model
                      {
                          /** {@inheritdoc} */
                          public $name = 'WidgetsManagement';
                      
                      
                      Severity: Minor
                      Found in modules/Settings/WidgetsManagement/models/Module.php - About 3 hrs to fix

                        Function registerPaginationEvents has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                registerPaginationEvents: function () {
                                    const self = this;
                                    this.container.find('.js-next-page').on('click', function () {
                                        if ($(this).hasClass('disabled')) {
                                            return;
                        Severity: Major
                        Found in public_html/layouts/basic/modules/Vtiger/resources/RecordsList.js - About 3 hrs to fix

                          Function registerFilter has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  registerFilter: function registerFilter() {
                                      const container = this.getContainer();
                                      const search = container.find('.listSearchContributor');
                                      const refreshBtn = container.find('.js-widget-refresh');
                                      const originalUrl = refreshBtn.data('url');

                            Method setSmtp has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function setSmtp(): void
                                {
                                    if (!$this->smtp) {
                                        throw new \App\Exceptions\AppException('ERR_NO_SMTP_CONFIGURATION');
                                    }
                            Severity: Major
                            Found in app/Mailer.php - About 3 hrs to fix

                              Method search has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function search(): array
                                  {
                                      if (!$this->isActive()) {
                                          return [];
                                      }
                              Severity: Major
                              Found in app/RecordCollectors/Gus.php - About 3 hrs to fix

                                Method getLinks has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getLinks(): array
                                    {
                                        $parentRecordModel = $this->getParentRecordModel();
                                        $relationModelInstance = $this->getRelationModel();
                                        $relatedModuleModel = $relationModelInstance->getRelationModuleModel();
                                Severity: Major
                                Found in modules/Vtiger/models/RelationListView.php - About 3 hrs to fix

                                  File Benchmarks.php has 297 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  
                                  /**
                                   * Benchmarks file.
                                   *
                                  Severity: Minor
                                  Found in app/Utils/Benchmarks.php - About 3 hrs to fix

                                    Function preSaveValidation has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            preSaveValidation: function (form) {
                                                const aDeferred = $.Deferred();
                                                if (form.find('#preSaveValidation').val()) {
                                                    document.progressLoader = $.progressIndicator({
                                                        message: app.vtranslate('JS_SAVE_LOADER_INFO'),
                                    Severity: Major
                                    Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 3 hrs to fix

                                      Function registerCacheEvents has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              registerCacheEvents: function (container) {
                                                  var thisInstance = this;
                                                  container.find('.showRecordsFromCache').on('change', (e) => {
                                                      const currentTarget = $(e.currentTarget),
                                                          moduleName = currentTarget.data('module');
                                      Severity: Major
                                      Found in public_html/layouts/basic/modules/OpenStreetMap/resources/Map.js - About 3 hrs to fix

                                        Function edit has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            $.jstree.plugins.edit = function (options, parent) {
                                                this.bind = function () {
                                                    parent.bind.call(this);
                                                    this.element.on(
                                                        'select_node.jstree',
                                        Severity: Major
                                        Found in public_html/layouts/resources/libraries/jstree.edit.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language