Showing 481 of 922 total issues
Function getScrollingTabs
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
getScrollingTabs: function () {
return this.applySizing('scrollingTabs', this.getTabs({
enableTabScroll: true,
plain: true,
items: [{
Function encode_base64
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
bCrypt.prototype.encode_base64 = function(d, len) {
var off = 0;
var rs = [];
var c1;
var c2;
Function onEditComplete
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
onEditComplete: function (ed, value, startValue)
{
var me = this,
context = ed.context,
view, record;
Method testOrFilterJoin
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function testOrFilterJoin()
{
$client = static::makeClient(true);
$filter = [
Method testOrFilter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function testOrFilter()
{
$client = static::makeClient(true);
$filter = [
Method extractJSONSorters
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function extractJSONSorters(
$data
) {
$sorter = new Sorter();
Method getPartsByQueryAction
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getPartsByQueryAction(Request $request)
{
$start = 1;
$responseData = [];
Method theme_image
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
def theme_image(theme, path, without_url = false, relative = false)
path = path.value
theme = theme.value
without_url = (without_url.class == FalseClass) ? without_url : without_url.value
Function initComponent
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
initComponent: function ()
{
this.rendererStore = Ext.create("Ext.data.Store");
this.columns = [{
- 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 selectTheme
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
selectTheme: function (theme) {
var i, j, menuItem;
for (i = 0; i < this.items.getCount(); i++) {
if (this.items.getAt(i).type === "themes") {
- 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 toIntArray
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
String.prototype.toIntArray = function() {
var w1, w2, u, r4 = [], r = [], i = 0;
var s = this + '\0\0\0'; // pad string to avoid discarding last chars
var l = s.length - 1;
- 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 setActiveItem
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
setActiveItem : function(item){
item = this.container.getComponent(item);
if(this.activeItem != item){
if(this.activeItem){
this.activeItem.hide();
- 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 extractJSONSorters
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
private function extractJSONSorters(
$data
) {
$sorter = new Sorter();
- 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 import
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function import($row, $obj = null)
{
if ($obj === null) {
$obj = new $this->baseEntity();
$this->persist($obj);
- 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 import
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function import($row, $obj = null)
{
$descriptions = [];
switch ($this->importBehaviour) {
case self::IMPORTBEHAVIOUR_ALWAYSSETTO:
- 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 createPicker
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
createPicker: function ()
{
this.fireEvent("beforeSelect", this);
this.modelFieldSelector = Ext.create({
Function initComponent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
console.log(this.markedAsDefaultProperty);
if (this.allowMarkAsDefault) {
this.tpl = Ext.create('Ext.XTemplate',
Function getProgressBar
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
getProgressBar: function () {
var progressbar = Ext.widget('progressbar', {
value: 0.5
});
Function reconfigureGrid
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
reconfigureGrid: function (data)
{
var columns = [];
var fieldConfig = [];
var header = data[0];
Function getFilterFn
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
getFilterFn: function ()
{
if (this.partManager !== null) {
if (this.categoryFilter.getValue().category === "all") {
if (this.partManager.getSelectedCategory() !== null) {