Showing 2,438 of 4,261 total issues
Function MessageBox
has 338 lines of code (exceeds 25 allowed). Consider refactoring. Open
Ext.MessageBox = function(){
var dlg, opt, mask, waitTimer,
bodyEl, msgEl, textboxEl, textareaEl, progressBar, pp, iconEl, spacerEl,
buttons, activeTextEl, bwidth, bufferIcon = '', iconCls = '',
buttonNames = ['ok', 'yes', 'no', 'cancel'];
Method findGL
has a Cognitive Complexity of 83 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void findGL(Definitions diagram) {
StringBuilder temp = new StringBuilder();
Collection<FlowElement> elementsBPMNtemp = new ArrayList<FlowElement>();
Collection<ElementID> Elementstemp = new ArrayList<ElementID>();
- 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
Method findGL
has a Cognitive Complexity of 83 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void findGL(Definitions diagram) {
/*StringBuilder temp = new StringBuilder();
Collection<FlowElement> elementsBPMNtemp = new ArrayList<FlowElement>();
Collection<ElementID> Elementstemp = new ArrayList<ElementID>();
- 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
Method findGL
has a Cognitive Complexity of 82 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void findGL(Definitions diagram) {
StringBuilder temp = new StringBuilder();
int num = 0;
- 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 ScrollManager
has a Cognitive Complexity of 82 (exceeds 5 allowed). Consider refactoring. Open
Ext.dd.ScrollManager = function(){
var ddm = Ext.dd.DragDropMgr;
var els = {};
var dragEl = null;
var proc = {};
- 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 XwikiPackage.java
has 707 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
*/
package eu.learnpad.transformations.metamodel_corpus.xwiki;
import org.eclipse.emf.ecore.EAttribute;
Function 8
has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring. Open
},{"./SchemaCompilation":8,"./SchemaValidation":9}],8:[function(require,module,exports){
"use strict";
var Report = require("./Report");
var SchemaCache = require("./SchemaCache");
- 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
Method paint
has 313 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static void paint(Graphics2D g) {
Shape shape = null;
Paint paint = null;
Stroke stroke = null;
Area clip = null;
Function 10
has a Cognitive Complexity of 78 (exceeds 5 allowed). Consider refactoring. Open
},{"./FormatValidators":3,"./JsonValidation":4,"./Report":6,"./Utils":10}],10:[function(require,module,exports){
"use strict";
exports.whatIs = function (what) {
- 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 MySqlController.java
has 683 lines of code (exceeds 250 allowed). Consider refactoring. Open
package eu.learnpad.simulator.mon.storage;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
Method init
has 306 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
@SuppressWarnings("deprecation")
public Resource init() throws ResourceInstantiationException {
// list of namespaces to be ignored when creating gazetteer list
List<String> nsToIgnore = new ArrayList<String>();
File H2Controller.java
has 671 lines of code (exceeds 250 allowed). Consider refactoring. Open
package eu.learnpad.simulator.mon.storage;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
Method getDataTable
has a Cognitive Complexity of 76 (exceeds 5 allowed). Consider refactoring. Open
public List<List<String>> getDataTable() throws IOException, InvalidFormatException {
List<List<String>> dataTable = new ArrayList<>();
Integer rowNumber = -2;
Workbook wb = WorkbookFactory.create(excelFile);
- 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 Event
has 299 lines of code (exceeds 25 allowed). Consider refactoring. Open
})();Ext.lib.Event = function() {
var loadComplete = false,
unloadListeners = {},
retryCount = 0,
onAvailStack = [],
File OntoRootGaz.java
has 653 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* OntoRootGaz.java
*
* Copyright (c) 1998-2008, The University of Sheffield.
*
File PNImport.java
has 653 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* LearnPAd - Verification Component - Deadlock Check Plugin
*
* Copyright (C) 2015 Unicam
* This program is free software: you can redistribute it and/or modify
File OntologyTreeListener.java
has 647 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* OntologyTreeListener.java
*
* Niraj Aswani, 12/March/07
*
Method findGL
has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void findGL(Definitions diagram) {
StringBuilder temp = new StringBuilder();
int num = 0;
- 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
Method findGL
has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void findGL(Definitions diagram) {
StringBuilder temp = new StringBuilder();
int num = 0;
- 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
Method findGL
has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring. Open
public void findGL(Definitions diagram) {
// StringBuilder ret = new StringBuilder("");
boolean flag=false;
for (RootElement rootElement : diagram.getRootElements()) {
if (rootElement instanceof Process) {
- 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"