Showing 481 of 922 total issues
Function startSearch
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
startSearch: function ()
{
var me = this,
store = me.store,
searchValue = me.getValue(),
- 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
Function initComponent
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.on("startEdit", Ext.bind(this.onEditStart, this));
this.tpl = new Ext.XTemplate(
Function configure
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
configure: function (configuration)
{
configuration = Ext.applyIf(configuration, {
searchFields: [],
searchMode: 'fixed'
Function initComponent
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.quantityField = Ext.create("Ext.form.field.Number", {
value: 0, // The initial value is 0, to indicate that this is a number field
Function configure
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
configure: function (configuration)
{
configuration = Ext.applyIf(configuration, {
searchFields: [],
searchMode: 'fixed'
Function configure
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
configure: function (configuration)
{
configuration = Ext.applyIf(configuration, {
searchFields: [],
searchMode: 'fixed'
Function initComponent
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function () {
/**
* The prefix represents the first part of the storage location name,
* e.g. "A" for storage locations "A0001".
Function initComponent
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
var me = this,
breadCrumbComponents = [],
cardItems = [],
Function isWritableRecursive
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
protected function isWritableRecursive($dir)
{
if (!is_writable($dir)) {
throw new \Exception($dir.' is not writable.');
}
- 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 ReflectionService.php
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace PartKeepr\DoctrineReflectionBundle\Services;
use Doctrine\Bundle\DoctrineBundle\Registry;
Function treeMaker
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
treeMaker: function (node, model, prefix, callback, originalVisitedModels)
{
var fields = model.getFields();
var checked;
var newNode;
Function getPanelWithToolbars
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
getPanelWithToolbars: function () {
/**
* Toolbar with a menu
*/
return this.applySizing('panelWithToolbars', {
Function initComponent
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.store = Ext.create("Ext.data.Store", {
model: this.model,
proxy: {
Function initComponent
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.username = Ext.create("Ext.form.field.Text", {
fieldLabel: 'Username',
labelWidth: this.defaults.labelWidth,
Method __construct
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct()
{
parent::__construct();
$this->addRequirement(
Function appendFieldData
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
appendFieldData: function (field, node)
{
var fieldData = {};
fieldData.data = node.get("data");
- 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
Function hashpw
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
bCrypt.prototype.hashpw = function(password, salt, callback, progress) {
var real_salt;
var passwordb = [];
var saltb = [];
var hashed = [];
- 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
Function importUnits
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public function importUnits($updateExisting = false)
{
$path = $this->kernel->locateResource(self::UNIT_PATH.self::UNIT_DATA);
$yaml = new Parser();
- 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
Function initComponent
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.rendererStore = Ext.create("Ext.data.Store");
this.columns = [{
Function addFormWindow
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
addFormWindow: function () {
Ext.widget('window', {
x: 660,
y: 1230,