Showing 481 of 922 total issues
Function rowkeydown
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
rowkeydown: function (grid, record, tr, rowIndex, e)
Function callCollectionAction
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
callCollectionAction: function (action, method, parameters, callback, ignoreException)
Function processCallActionResponse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
processCallActionResponse: function (options, success, response, ignoreException, action)
Function onBeforeDrop
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
onBeforeDrop: function (node, data, overModel, dropPosition, dropHandlers)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
DataProviderInterface $dataProvider,
IriConverter $iriConverter,
EntityManager $em,
AdvancedSearchFilter $advancedSearchFilter,
ReflectionService $reflectionService
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
TokenStorage $tokenStorage,
EntityManager $entityManager,
UserManipulator $userManipulator,
UserManagerInterface $userManager,
$userLimit = false
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
UploadedFileService $uploadedFileService,
ImageService $imageService,
Reader $reader,
PropertyAccessorInterface $propertyAccessor,
IriConverterInterface $iriConverter
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
UserService $userService,
UserManipulator $userManipulator,
EncoderFactory $encoderFactory,
UserManagerInterface $userManager,
ContainerInterface $container
Function savePreset
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
savePreset: function (presetName)
{
var presetRecord = this.getSelectedRecord();
if (presetRecord === 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
Function encode_base64
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
bCrypt.prototype.encode_base64 = function(d, len) {
var off = 0;
var rs = [];
var c1;
var c2;
- 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 a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
initComponent: function () {
var target, menuItemIterator;
this.ui = "mainmenu";
- 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 a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
initComponent: function ()
{
var modelFieldSelector = Ext.create({
xtype: 'modelFieldSelector',
border: 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 getErrors
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
getErrors: function(value) {
var me = this,
errors = [], // This is a hack because of the strange class layout...
format = Ext.String.format,
num;
- 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 a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
initComponent: function ()
{
if (this.imageUpload) {
this.uploadURL = PartKeepr.getBasePath() + "/api/temp_images/upload";
- 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 _onFilterRemove
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
_onFilterRemove: function ()
{
var filterPlugin;
if (this.suspendRemovals) {
return;
- 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 getUserPreference
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
getUserPreference: function (key, defaultValue)
{
var record = this.userPreferenceStore.findRecord("preferenceKey", key);
if (record) {
- 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 a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
initComponent: function () {
/**
* Create the store with the default sorter "name ASC"
*/
- 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 a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
initComponent: function ()
{
// Defines the overall height of all fields, used to calculate the anchoring for the description field
var overallHeight = (this.partMode == "create") ? 320: 265;
- 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 onEdit
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
onEdit: function (editor, context)
{
if (context.field === "distributor" && context.record.getDistributor() !== null)
{
var partDistributors = context.record.getPart().distributors();
- 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 getFilters
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
getFilters: function ()
{
var enableFilters = [],
disableFilters = [],
filterPlugin;
- 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"