Showing 481 of 922 total issues
Function initComponent
has 184 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.subGrid = {
xtype: 'gridfoo',
File ProjectReportResultGrid.js
has 471 lines of code (exceeds 250 allowed). Consider refactoring. Open
Ext.define("PartKeepr.Components.Project.ProjectReportResultGrid", {
extend: "PartKeepr.BaseGrid",
features: [
{
Function checkRequirements
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
checkRequirements: function ()
{
var i, unit, file, image, distributor;
var manufacturer = PartKeepr.getApplication().getManufacturerStore().findRecord("name",
- 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 PartsGrid.js
has 456 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* This class is the main part list grid.
*
*/
Ext.define('PartKeepr.PartsGrid', {
Function getAssociatedData
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
getAssociatedData: function (result, options)
{
var me = this,
associations = me.associations,
deep, i, item, items, itemData, length,
- 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 170 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
var modifierItems = [
{
xtype: 'checkbox',
File DataApplicator.js
has 437 lines of code (exceeds 250 allowed). Consider refactoring. Open
Ext.define("PartKeepr.Components.OctoPart.DataApplicator", {
extend: "Ext.Base",
mixins: ['Ext.mixin.Observable'],
import: {},
Function isaac
has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring. Open
var isaac = (function(){
/* private: internal states */
var m = Array(256), // internal memory
acc = 0, // accumulator
- 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 PartEditor.js
has 423 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* @class PartKeepr.PartEditor
* <p>The PartEditor provides an editing form for a part. It contains multiple tabs, one for each nested record.</p>
*/
Function getFormWidgets
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
getFormWidgets: function () {
return this.applySizing('formWidgets', {
xtype: 'form',
id: 'form-widgets',
title: 'Form Widgets',
Function checkRequirements
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
checkRequirements: function ()
{
var i, unit, file, image, distributor;
var manufacturer = PartKeepr.getApplication().getManufacturerStore().findRecord("name",
Function BlobBuilder
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) {
var
get_class = function(object) {
return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1];
}
Function initComponent
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.store = Ext.create("Ext.data.Store", {
model: 'PartKeepr.PartBundle.Entity.PartDistributor',
proxy: {
File Part.php
has 408 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace PartKeepr\PartBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
Function initComponent
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.store = Ext.create("Ext.data.Store", {
fields: [
{name: 'title', type: 'string'},
Function applyData
has 136 lines of code (exceeds 25 allowed). Consider refactoring. Open
applyData: function ()
{
var spec, i, unit, value, siPrefix, distributor, j, partDistributor, currency, k, found;
if (this.waitMessage instanceof Ext.window.MessageBox)
Function validateConfigNode
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
validateConfigNode: function (node)
{
var configuration = node.data.data.configuration;
var recurse = false;
- 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 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.createHintTemplate = Ext.create("Ext.Template", [
"CREATE DATABASE {name} CHARACTER SET UTF8;\nGRANT USAGE ON *.* TO {user}@{localhost} IDENTIFIED BY '{password}';\nGRANT ALL PRIVILEGES ON {name}.* TO {user}@{localhost};"
]);
Function initComponent
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.createHintTemplate = Ext.create("Ext.Template", [
"<code>CREATE USER {user} WITH UNENCRYPTED PASSWORD '{password}'; CREATE DATABASE {dbname}; GRANT ALL PRIVILEGES ON DATABASE {dbname} TO {user};<br/><br/></code>"
]);
Function _doProcessBlock
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
_doProcessBlock: function (M, offset) {
// Shortcuts
var H = this._hash.words;
var H0 = H[0];