Showing 4,652 of 306,333 total issues
Function getUserModuleSharingObjects
has a Cognitive Complexity of 540 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function getUserModuleSharingObjects($module, $userid, $defOrgShare, $currentUserRoles, $parentRoles, $currentUserGroups)
{
$modTabId = Module::getModuleId($module);
$modShareWritePermission = $modShareReadPermission = ['ROLE' => [], 'GROUP' => []];
$modDefOrgShare = null;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File Widget.js
has 3214 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File Fields.js
has 3161 lines of code (exceeds 250 allowed). Consider refactoring. Open
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';
window.App.Fields = {
Date: {
File app.js
has 3102 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File Detail.js
has 2678 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File LayoutEditor.js
has 2106 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File List.js
has 1941 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File Inventory.js
has 1747 lines of code (exceeds 250 allowed). Consider refactoring. Open
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';
$.Class(
'Vtiger_Inventory_Js',
File Edit.js
has 1608 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File RelatedList.js
has 1549 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
Function checkbox
has 823 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jstree.plugins.checkbox = function (options, parent) {
this.bind = function () {
parent.bind.call(this);
this._data.checkbox.uto = false;
this._data.checkbox.selected = [];
Function getRelatedModuleSharingArray
has a Cognitive Complexity of 191 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function getRelatedModuleSharingArray($par_mod, $share_mod, $mod_sharingrule_members, $mod_share_read_per, $mod_share_write_per, $def_org_share)
{
$relatedModSharingPermission = [];
$modShareReadPermission = [];
$modShareWritePermission = [];
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File FieldValidator.js
has 1369 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File ConfigTemplates.php
has 1319 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Main config.
*
* @copyright YetiForce S.A.
File TextParser.php
has 1292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Text parser file.
*
* @package App
File Record.php
has 1283 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File ConfReport.php
has 1266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Conf report class.
*
File Field.php
has 1260 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Function getGlobalDefaultChartsOptions
has 649 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getGlobalDefaultChartsOptions: function getGlobalDefaultChartsOptions(chartSubType, chartData) {
const options = {
bar: {
basic: {
maintainAspectRatio: false,
File PrivilegeUtil.php
has 1195 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Privilege Util basic class.
*
* @package App