Showing 6,856 of 14,752 total issues
Method getID
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
private Integer getID(String tablename, String[] feldnames, String[] feldVals, boolean[] key, boolean[] isStringType) {
Integer result = null;
String sql = "SELECT " + DBKernel.delimitL("ID") + " FROM " + DBKernel.delimitL(tablename) + " WHERE TRUE";
String fns = "";
String fvs = "";
- Create a ticketCreate a ticket
Method loadJsonSetting
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected void loadJsonSetting() throws IOException, CanceledExecutionException {
File directory =
NodeContext.getContext().getWorkflowManager().getContext().getCurrentLocation();
File settingFolder = new File(buildContainerName());
- Create a ticketCreate a ticket
Method plotBoth
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void plotBoth(XYPlot plot, Plotable plotable, String id,
Color defaultColor, Shape defaultShape, double minX, double maxX)
throws ConvertException {
double[][] modelPoints = plotable.getFunctionPoints(paramX, paramY,
unitX, unitY, transformX, transformY, minX, maxX,
- Create a ticketCreate a ticket
Method getValueAt
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public Object getValueAt(int row, int col) {
if (col == 0)
return FskMetaDataFields.values()[row].fullname;
else if (col == 1) {
- Create a ticketCreate a ticket
File DataModelGeneralInformation.java
has 310 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* RAKIP Generic model
* TODO
*
* OpenAPI spec version: 1.0.4
- Create a ticketCreate a ticket
Method doImportGaia
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
private int[] doImportGaia(HSSFWorkbook wb, JProgressBar progress) {
int numSuccess = 0;
int numFails = 0;
HSSFSheet transactionSheet = wb.getSheet("Transactions");
HSSFSheet businessSheet = wb.getSheet("Business_List");
- Create a ticketCreate a ticket
Method getViewRepresentation
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public JoinerViewRepresentation getViewRepresentation() {
JoinerViewRepresentation representation;
- Create a ticketCreate a ticket
Function tokenBase
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
function tokenBase(stream, state) {
var sol = stream.sol(), ch = stream.peek();
state.block = false; // indicates the start of a code block.
- Create a ticketCreate a ticket
Function onSourceReady
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
onSourceReady: function (success, error) {
//run source if it function
var source;
if ($.isFunction(this.options.source)) {
source = this.options.source.call(this.options.scope);
- Create a ticketCreate a ticket
Method deserialize
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
@Override
public GenericModelDataBackground deserialize(JsonParser parser, DeserializationContext context)
throws IOException, JsonProcessingException {
JsonNode node = parser.readValueAsTree();
- Read upRead up
- Create a ticketCreate a ticket
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 setParameter
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public static void setParameter(Model model, List<Parameter> pList) {
final String modelType = model.getModelType();
if (modelType.equalsIgnoreCase("genericModel")) {
((GenericModel) model).getModelMath().setParameter(pList);
- Read upRead up
- Create a ticketCreate a ticket
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 getLanguageWrittenIn
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public static String getLanguageWrittenIn(Model model) {
String language;
final String modelType = model.getModelType();
if (modelType.equalsIgnoreCase("genericModel")) {
- Read upRead up
- Create a ticketCreate a ticket
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 eIsSet
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case MetadataPackage.PRODUCT__PRODUCT_NAME:
return PRODUCT_NAME_EDEFAULT == null ? productName != null : !PRODUCT_NAME_EDEFAULT.equals(productName);
- Read upRead up
- Create a ticketCreate a ticket
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 writeM2
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private ParametricModel writeM2(KnimeTuple row, EstModelXml emx, ParametricModel ppm, String dbuuid, Integer wfID) {
ParametricModel spm = null;
Integer rowEstM2ID = emx.id;
CatalogModelXml cmx = null;
PmmXmlDoc catModel = row.getPmmXml(Model2Schema.ATT_MODELCATALOG);
- Read upRead up
- Create a ticketCreate a ticket
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 setPM
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public void setPM(ParametricModel pm) {
if (pm != null) {
if (pm.getLevel() == 2) {
if (!radioButton2.isSelected()) {
radioButton2.setSelected(true);
- Read upRead up
- Create a ticketCreate a ticket
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 finalizePM
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private ParametricModel finalizePM(int lastSelIndex) {
ParametricModel pm = table.getPM();
if (table.hasChanged()) {
if (pm != null && pm.modelName.equals(modelnameField.getText())) {
modelnameField.setText(getNewModelname(pm));
- Read upRead up
- Create a ticketCreate a ticket
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 xml2Combase
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private String xml2Combase(PmmXmlDoc misc) {
List<Integer> tempPhAwIds = Arrays.asList(AttributeUtilities.ATT_TEMPERATURE_ID, AttributeUtilities.ATT_PH_ID,
AttributeUtilities.ATT_AW_ID);
String result = null;
if (misc != null) {
- Read upRead up
- Create a ticketCreate a ticket
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 loadSettings
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public void loadSettings(NodeSettingsRO settings) {
try {
selectedIDs = XmlConverter.xmlToObject(
settings.getString(CFG_SELECTEDIDS),
new ArrayList<String>());
- Read upRead up
- Create a ticketCreate a ticket
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 createPanel
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private JComponent createPanel() {
JPanel panel = new JPanel();
JPanel rangePanel = new JPanel();
minimumFields = new LinkedHashMap<>();
- Read upRead up
- Create a ticketCreate a ticket
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 setSelectedID
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public void setSelectedID(int id) {
if (myModel != null) {
try {
int codeSystemNum = -1;
if (this.getSelectionCount() > 0) {
- Read upRead up
- Create a ticketCreate a ticket
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"