Showing 6,856 of 14,752 total issues
Method deleteFMID
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
private int deleteFMID(Connection conn, int level, Object rowEstMID) {
int numDBSuccesses = 0;
Integer firstCLID = DBKernel.getMaxID("ChangeLog");
if (firstCLID == null)
firstCLID = 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"
Further reading
Method doTheUpdates
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
private boolean doTheUpdates(String dbPath) {
boolean dl = DBKernel.dontLog;
DBKernel.dontLog = true;
try {
boolean isAdmin = DBKernel.isAdmin();
- 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 initConn
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public boolean initConn(final Connection conn) {
boolean result = false;
if (DBKernel.mainFrame != null) DBKernel.mainFrame.setTopTable(this);
if (conn != null) {
this.setConnection(conn);
- 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 isCellEditable
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public boolean isCellEditable(EventObject anEvent) {
if (anEvent == null) { // null wird übergeben bei selectCell(row, column) in der Funktion setSelectedRowCol in MyDBTable
return false;
}
else {
- 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 saveValues
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
private Double saveValues() {
Double result = null;
try {
String sql = "";
if (oldValue != 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 getUsageListOfID
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public static List<String> getUsageListOfID(final String tableName, int id) {
List<String> result = new ArrayList<>();
ResultSet rs = DBKernel.getResultSet("SELECT FKTABLE_NAME, FKCOLUMN_NAME FROM INFORMATION_SCHEMA.SYSTEM_CROSSREFERENCE " + " WHERE PKTABLE_NAME = '" + tableName + "'",
false);
try {
- 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 insertParam
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
private int insertParam(final int modelId, final String paramName, final int paramType, final Double min, final Double max, final String category, final String unit,
final String description) {
PreparedStatement ps;
int id = -1;
- 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 runSnippet
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public final void runSnippet(final FskPortObject fskObj, final FskSimulation simulation,
final ExecutionContext exec, NodeLogger LOGGER, File imageFile) throws Exception {
// Sets up working directory with resource files. This directory needs to be deleted.
exec.setProgress(0.05, "Add resource files");
- 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 plotDataSetStrict
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
private void plotDataSetStrict(XYPlot plot, Plotable plotable, String id)
throws ConvertException {
String legend = shortLegend.get(id);
List<Color> colorList = colorLists.get(id);
List<Shape> shapeList = shapeLists.get(id);
- 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 getVisibleColumns
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public List<String> getVisibleColumns() {
List<String> visibleColumns = new ArrayList<>();
List<String> columns = new ArrayList<>();
columns.addAll(Arrays.asList(COLOR, SHAPE, DATA, FORMULA, PARAMETERS,
- 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 WriterNodeModel.java
has 274 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 tiki.js
has 274 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(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
- Create a ticketCreate a ticket
Method execute
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec)
throws Exception {
DataTable table = (DataTable) inObjects[0];
TableReader reader = new TableReader(getTuples(table),
- Create a ticketCreate a ticket
Method filter
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public int[] filter(TableModel tm) {
int[] result = null;
Vector<Integer> rows2check = null;
if (userIDs != null) {
rows2check = new Vector<>();
- Create a ticketCreate a ticket
Method equals
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
- Create a ticketCreate a ticket
Method updateEstModel
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void updateEstModel(final int estModelId, String name, final int condId, final int modelId, final double rms, final double rsquared, final double aic,
final double bic, final int responseId, Integer qualityScore, Boolean isChecked, Integer workflowID, String comment) {
try {
PreparedStatement ps = conn.prepareStatement("UPDATE \"GeschaetzteModelle\" SET \"Name\"=?, \"Versuchsbedingung\"=?, \"Modell\"=?, \"RMS\"=?, \"Rsquared\"=?, \"AIC\"=?, \"BIC\"=?, \"Response\"=?, \"Guetescore\"=?, \"Geprueft\"=?, \"Kommentar\"=?, \"PMMLabWF\"=? WHERE \"ID\"=?");
if (name == null) {
- Create a ticketCreate a ticket
Method setVisibleParameters
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void setVisibleParameters(Set<String> visible) {
if (visible.equals(lastVisibleParameters)) {
return;
}
- Create a ticketCreate a ticket
Function getType
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
function getType(state) {
var styles = [];
if (state.formatting) {
styles.push(tokenTypes.formatting);
- Create a ticketCreate a ticket
Function token
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
token: function(stream, state) {
var ch = stream.next();
if(ch == '<') {
transitState(state, ch);
var parsedURI = '';
- Create a ticketCreate a ticket
Function tokenBase
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
function tokenBase(stream, state) {
var ch = stream.next();
if (ch == '"' || ch == "'") {
state.tokenize = tokenString(ch);
return state.tokenize(stream, state);
- Create a ticketCreate a ticket