Showing 6,856 of 14,752 total issues
File MyProzessXMLImporter.java
has 366 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 FskxReaderNodeModel.java
has 366 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 the Free Software Foundation, either version 3 of the
- Create a ticketCreate a ticket
File FSKEditorJSNodeModel.java
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
***************************************************************************************************
* Copyright (c) 2017 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
- Create a ticketCreate a ticket
Method loadSettings
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void loadSettings(NodeSettingsRO settings) {
try {
selectedID = settings.getString(CFG_SELECTEDID);
} catch (InvalidSettingsException e) {
}
- Create a ticketCreate a ticket
Function generate_ref
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function generate_ref(it, $keyword, $ruleType) {
var out = ' ';
var $lvl = it.level;
var $dataLvl = it.dataLevel;
var $schema = it.schema[$keyword];
- Create a ticketCreate a ticket
Method codeM2Schema
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
private List<JsM2Schema> codeM2Schema(List<KnimeTuple> tuples) {
List<JsM2Schema> schemas = new ArrayList<>(tuples.size());
for (KnimeTuple tuple : tuples) {
- 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 actionPerformed
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == okButton) {
for (Object value : mappings.values()) {
if (value == 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 getOutputTable
has a Cognitive Complexity of 32 (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 handleParams
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
private void handleParams() {
DoubleTextField[] dtf;
if (params == null || params.size() == 0) {
params = new LinkedHashMap<>();
dtf = new DoubleTextField[2]; dtf[0] = new DoubleTextField(true); dtf[1] = new DoubleTextField(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 execute
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec) throws Exception {
boolean filterEnabled = false;
if (!matrixString.isEmpty() || !agentString.isEmpty() || !literatureString.isEmpty() || matrixID > 0 || agentID > 0 || literatureID > 0 || parameter.size() > 0) filterEnabled = 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 managePs
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
private boolean managePs(PreparedStatement ps) throws SQLException {
boolean allNullVals = true;
String[] fieldTypes = myT.getFieldTypes();
String[] fieldNames = myT.getFieldNames();
MyTable[] fieldFields = myT.getForeignFields();
- 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 execute
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
exec.checkCanceled();
FskPortObject fskObj = (FskPortObject) inObjects[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 processMetadata
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
private static FskMetaData processMetadata(final SBMLDocument doc) {
FskMetaData template = new FskMetaData();
Model model = doc.getModel();
- 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 saveFSKPortObject
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public void saveFSKPortObject(FskPortObject portObject, final PortObjectZipOutputStream out,
final ExecutionMonitor exec) throws IOException {
// First FSK Object
// model entry (file with model script)
- 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 Parameter.java
has 362 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 processSpreadsheet
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
public FskMetaData processSpreadsheet(final Sheet sheet) {
final FskMetaData template = new FskMetaData();
final Cell modelNameCell = sheet.getRow(NAME).getCell(5);
- Create a ticketCreate a ticket
Method updateConfigPanel
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void updateConfigPanel() {
if (configPanel != null) {
remove(configPanel);
}
- Create a ticketCreate a ticket
Function block
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
states.block = function(type, stream, state) {
if ((type == "comment" && startOfLine(stream)) ||
(type == "," && endOfLine(stream)) ||
type == "mixin") {
return pushContext(state, stream, "block", 0);
- Create a ticketCreate a ticket
MetadataFactoryImpl
has 36 methods (exceeds 20 allowed). Consider refactoring. Open
public class MetadataFactoryImpl extends EFactoryImpl implements MetadataFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- Create a ticketCreate a ticket
JsM1DataSchema
has 36 methods (exceeds 20 allowed). Consider refactoring. Open
@JsonAutoDetect
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
public class JsM1DataSchema implements ViewValue {
// Model1 fields
- Create a ticketCreate a ticket