Showing 6,856 of 14,752 total issues
File ProcessModelSheetImporter.java
has 485 lines of code (exceeds 250 allowed). Consider refactoring. Open
package metadata.swagger;
import java.math.BigDecimal;
import java.util.HashMap;
- Create a ticketCreate a ticket
Function apply
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
Defaults.prototype.apply = function (options) {
options = $.extend(true, {}, this.defaults, options);
if (options.dataAdapter == null) {
if (options.ajax != null) {
- Create a ticketCreate a ticket
Method convert
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
private JsonNode convert(JsonNode originalMetadata, Map<String, Object> originalClass,
Map<String, Object> targetClass) {
if(originalMetadata == 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
Method retrieveParameter
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
public static Parameter retrieveParameter(Row row, Map<String, Integer> columns) {
// Check first mandatory properties
final Cell idCell = row.getCell(columns.get("id"));
if (idCell == null || idCell.getCellTypeEnum() == CellType.BLANK) {
- 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 setValueAt
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
@Override
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
String stringValue = (String) aValue;
- 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 GeneralInformationImpl.java
has 482 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
*/
package metadata.impl;
import java.util.Collection;
- Create a ticketCreate a ticket
Method initComponents
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
dialogPane = new JPanel();
contentPanel = new JPanel();
label1 = new JLabel();
- Create a ticketCreate a ticket
Method check4Updates_176_177
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static void check4Updates_176_177() {
new GeneralXLSImporter().doImport("/org/hsh/bfr/db/res/Einheiten_140312.xls", null, false);
DBKernel.sendRequest(
"ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);
- Create a ticketCreate a ticket
Method readFskPortObject
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static FskPortObject readFskPortObject(CombineArchive archive, List<String> ListOfPaths,
int readLevel) throws Exception {
Map<String, URI> URIS = FSKML.getURIS(1, 0, 12);
Model model = new Model();
- Create a ticketCreate a ticket
Method addNodes
has 188 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void addNodes(final Connection conn, final WorkflowManager wfm) throws CoreException {
LinkedHashMap<Integer, NodeID> nodesMap = new LinkedHashMap<Integer, NodeID>();
LinkedHashMap<Integer, Integer> fromMap = new LinkedHashMap<Integer, Integer>();
LinkedHashMap<Integer, Integer> toMap = new LinkedHashMap<Integer, Integer>();
//LinkedHashMap<Integer, LinkedHashMap<Integer, Double>> fractionsIn = new LinkedHashMap<Integer, LinkedHashMap<Integer, Double>>();
- Create a ticketCreate a ticket
Method performExecute
has 188 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec)
throws Exception {
String portObjectModelType = "";
if (inObjects[0] != null) {
- Create a ticketCreate a ticket
PopulationGroup
has 53 methods (exceeds 20 allowed). Consider refactoring. Open
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class PopulationGroup {
@SerializedName("name")
private String name = null;
- Create a ticketCreate a ticket
File DoseResponseSheetImporter.java
has 479 lines of code (exceeds 250 allowed). Consider refactoring. Open
package metadata.swagger;
import java.math.BigDecimal;
import java.util.HashMap;
- Create a ticketCreate a ticket
File PmmTimeSeries.java
has 479 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 look4ParentNode
has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring. Open
private DefaultMutableTreeNode look4ParentNode(final LinkedHashMap<String, DefaultMutableTreeNode> myCodes, final String code, final int[] cutSystem) {
DefaultMutableTreeNode result = null;
String key;
if (cutSystem == null) {
for (int i=code.length()-1;i>=0;i--) {
- 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 getFunctionSamplePointsErrors
has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring. Open
public double[][] getFunctionSamplePointsErrors(String paramX,
String paramY, String unitX, String unitY, String transformX,
String transformY, double minX, double maxX, double minY,
double maxY, Map<String, Integer> choice) throws ConvertException {
if (function == 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
Study
has 52 methods (exceeds 20 allowed). Consider refactoring. Open
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class Study {
@SerializedName("identifier")
private String identifier = null;
- Create a ticketCreate a ticket
SettingsHelper
has 52 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
EmReaderUi
has 52 methods (exceeds 20 allowed). Consider refactoring. Open
public class EmReaderUi extends JPanel {
/**
*
*/
private static final long serialVersionUID = -7838365860944621209L;
- Create a ticketCreate a ticket
Method initComponents
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
panel1 = new JPanel();
label1 = new JLabel();
agensIDField = new JTextField();
- Create a ticketCreate a ticket