Showing 6,856 of 14,752 total issues
File CreatorNodeModel.java
has 689 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 doLayout
has a Cognitive Complexity of 78 (exceeds 5 allowed). Consider refactoring. Open
public void doLayout(final Collection<NodeContainer> nodes) {
int X_STRETCH = 100;
int Y_STRETCH = 120;
- 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 loadFSKPortObject
has a Cognitive Complexity of 78 (exceeds 5 allowed). Consider refactoring. Open
@SuppressWarnings("unchecked")
public FskPortObject loadFSKPortObject(PortObjectZipInputStream in, PortObjectSpec spec,
ExecutionMonitor exec) throws IOException, CanceledExecutionException {
String modelScript = "";
- 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 MetadataPackage.java
has 681 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
*/
package metadata;
import org.eclipse.emf.ecore.EAttribute;
- Create a ticketCreate a ticket
Method run
has a Cognitive Complexity of 77 (exceeds 5 allowed). Consider refactoring. Open
public void run() {
try {
MyLogger.handleMessage("Importing PEX-File: " + filename);
if (progress != null) {
progress.setVisible(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 getPlausibilityRow
has a Cognitive Complexity of 76 (exceeds 5 allowed). Consider refactoring. Open
public static Vector<String[]> getPlausibilityRow(MyDBTable table, MyTable myT, int row, String idField) {
String tablename = myT.getTablename();
Vector<String[]> result = new Vector<>();
String idConf;
if (idField.equalsIgnoreCase("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 optimize
has a Cognitive Complexity of 76 (exceeds 5 allowed). Consider refactoring. Open
public void optimize(AtomicInteger progress, int nParameterSpace,
int nLevenberg, boolean stopWhenSuccessful) {
List<Double> paramMin = new ArrayList<>();
List<Integer> paramStepCount = new ArrayList<>();
List<Double> paramStepSize = new ArrayList<>();
- 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 TableReader.java
has 665 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 UpdateChecker.java
has 665 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
Method fillHashtable
has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring. Open
LinkedHashMap<Object, String> fillHashtable(final MyTable theTable, final String startDelim, final String delimiter, final String endDelim, final boolean goDeeper,
final boolean forceUpdate, HashSet<MyTable> alreadyUsed) {
if (theTable == null) {
return 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
File OutportDocumentImpl.java
has 662 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* An XML document type.
* Localname: Outport
* Namespace: http://www.bfr.bund.de/PCML-1_0
* Java type: de.bund.bfr.pcml10.OutportDocument
- Create a ticketCreate a ticket
Method doImport
has 295 lines of code (exceeds 25 allowed). Consider refactoring. Open
public String doImport(final String filename, final JProgressBar progress, final boolean showResults) {
Runnable runnable = new Runnable() {
public void run() {
try {
if (progress != null) {
- Create a ticketCreate a ticket
File MyTable.java
has 657 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
Method getNewConc
has a Cognitive Complexity of 74 (exceeds 5 allowed). Consider refactoring. Open
private Double getNewConc(ValueAndUnit vau, PredictionValues pv, ParametersSetting ps, Double tempVal, Double phVal, Double awVal, Double presVal, double t, String timeUnit, Double lastConc, double stepWidth) {
Double newVal = vau.getValue();
boolean isPercent = false;
PredictorViewNodeDialog pvnd = pv.getPvnd();
- 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 loadFSKPortObject
has a Cognitive Complexity of 74 (exceeds 5 allowed). Consider refactoring. Open
@SuppressWarnings("unchecked")
public FskPortObject loadFSKPortObject(PortObjectZipInputStream in, PortObjectSpec spec,
ExecutionMonitor exec) throws IOException, CanceledExecutionException {
String modelScript = "";
- 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 convertStringLists2TSXmlDoc
has a Cognitive Complexity of 74 (exceeds 5 allowed). Consider refactoring. Open
public static PmmXmlDoc convertStringLists2TSXmlDoc(Array t, Array tu, Array l, Array lu, Array lot, Array stddevs, Array wdhs, String modelUnit, String timeUnit) {
PmmXmlDoc tsDoc = new PmmXmlDoc();
if (t != null) {
try {
Object[] toksT = (Object[])t.getArray();
- 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
SettingsHelper
has 78 methods (exceeds 20 allowed). Consider refactoring. Open
public class SettingsHelper {
public static final String DO_NOT_USE = "Do Not Use";
public static final String OTHER_PARAMETER = "Select Other";
public static final String SELECT = "Select";
- Create a ticketCreate a ticket
File WriterNodeModel.java
has 648 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 initializePackageContents
has 288 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void initializePackageContents() {
if (isInitialized) return;
isInitialized = true;
// Initialize package
- Create a ticketCreate a ticket
Method transformFormat
has 288 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void transformFormat(HSSFWorkbook wb, HSSFWorkbook wbNew) {
HSSFSheet transactionSheet = wb.getSheet("Transactions");
HSSFSheet businessSheet = wb.getSheet("Business_List");
int numRows = transactionSheet.getLastRowNum() + 1;
HSSFSheet transactionSheetNew = wbNew.getSheet("NewTransactions");
- Create a ticketCreate a ticket