Showing 6,856 of 14,752 total issues
File TableReader.java
has 426 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*******************************************************************************
* Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- Create a ticketCreate a ticket
File app.mt.details.js
has 426 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
version: 1.0.0
author: Ahmad Swaid
date: 17.12.2020
- Create a ticketCreate a ticket
File CreateWorkflow.java
has 424 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*******************************************************************************
* Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- Create a ticketCreate a ticket
File app.table.mt.js
has 423 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
version: 1.0.0
author: sascha obermüller
date: 06.12.2020
- Create a ticketCreate a ticket
File JoinerNodeUtil.java
has 422 lines of code (exceeds 250 allowed). Consider refactoring. Open
package de.bund.bfr.knime.fsklab.v2_0.joiner;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
- Create a ticketCreate a ticket
File test.js
has 422 lines of code (exceeds 250 allowed). Consider refactoring. Open
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "javascript");
- Create a ticketCreate a ticket
Method loadSettingsFrom
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
protected void loadSettingsFrom(NodeSettingsRO settings,
BufferedDataTable[] inData) throws NotConfigurableException {
String mStr = null;
String tsStr = null;
- Create a ticketCreate a ticket
Method initComponents
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
ResourceBundle bundle = ResourceBundle.getBundle("org.hsh.bfr.db.gui.PanelProps");
dialogPane = new JPanel();
contentPanel = new JPanel();
- Create a ticketCreate a ticket
Method createMainComponent
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
private ChartAllPanel createMainComponent() {
if (set.isStandardVisibleColumns()) {
set.setVisibleColumns(reader.getStandardVisibleColumns());
}
- 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 loadValidatedSettingsFrom
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void loadValidatedSettingsFrom( final NodeSettingsRO settings )
throws InvalidSettingsException {
// OneStepFitTss
if (settings.containsKey(PARAM_TSONESTEP)) {
- 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 manageDBMinMax
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
private void manageDBMinMax(ResultSet result, ParametricModel pm) throws SQLException {
Array array = result.getArray(Bfrdb.ATT_PARAMNAME);
Array arrayMin = result.getArray(Bfrdb.ATT_MINVALUE);
Array arrayMax = result.getArray(Bfrdb.ATT_MAXVALUE);
Array arrayCat = result.getArray("ParCategory");
- 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 getOutputTable
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
@Override
public BufferedDataTable getOutputTable(String assignments,
ExecutionContext exec) throws CanceledExecutionException,
ConvertException {
BufferedDataContainer container = exec
- 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 getPaper
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
public static void getPaper(final int tableID, final String tablename, final String feldname, final int blobID) {
try {
ResultSet rs = getResultSet(
"SELECT "
+ DBKernel.delimitL("Dateiname")
- 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
File ModelCombiner.java
has 420 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*******************************************************************************
* Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- Create a ticketCreate a ticket
Function 12
has 152 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],12:[function(require,module,exports){
'use strict';
module.exports = function generate__limit(it, $keyword, $ruleType) {
var out = ' ';
var $lvl = it.level;
- Create a ticketCreate a ticket
Method getOutputTable
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public BufferedDataTable getOutputTable(String assignments,
ExecutionContext exec) throws CanceledExecutionException,
ConvertException {
BufferedDataContainer buf = exec.createDataContainer(SchemaFactory
- Create a ticketCreate a ticket
Function fill
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
fill: function(){
var d = new Date(this.viewDate),
year = d.getUTCFullYear(),
month = d.getUTCMonth(),
startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,
- Create a ticketCreate a ticket
Method performExecuteCreatePortObjects
has 150 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
protected PortObject[] performExecuteCreatePortObjects(PortObject svgImageFromView, PortObject[] inObjects,
ExecutionContext exec) throws Exception {
BufferedDataTable table = (BufferedDataTable) inObjects[0];
- Create a ticketCreate a ticket
SettingsHelper
has 44 methods (exceeds 20 allowed). Consider refactoring. Open
public class SettingsHelper {
protected static final String CFG_SELECTEDIDS = "SelectedIDs";
protected static final String CFG_COLORS = "Colors";
protected static final String CFG_SHAPES = "Shapes";
- Create a ticketCreate a ticket
Method computeSecondary
has 150 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static List<KnimeTuple> computeSecondary(List<KnimeTuple> tuples) {
Set<String> idSet = new LinkedHashSet<>();
Map<String, String> formulaMap = new LinkedHashMap<>();
Map<String, PmmXmlDoc> paramMap = new LinkedHashMap<>();
Map<String, String> depVarMap = new LinkedHashMap<>();
- Create a ticketCreate a ticket