Showing 6,856 of 14,752 total issues
File FSMRTemplateImpl.java
has 567 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*******************************************************************************
* Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
* <p>
* 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 bootstrap-touchspin.js
has 566 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Bootstrap TouchSpin - v4.2.5
* A mobile and touch friendly input spinner component for Bootstrap 3 & 4.
* http://www.virtuosoft.eu/code/bootstrap-touchspin/
*
- Create a ticketCreate a ticket
Method getTimeSeriesTuples
has 239 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Map<String, KnimeTuple> getTimeSeriesTuples(File file, String sheet, Map<String, Object> columnMappings,
String timeUnit, String concentrationUnit, String agentColumnName, Map<String, AgentXml> agentMappings,
String matrixColumnName, Map<String, MatrixXml> matrixMappings, boolean preserveIds, List<Integer> usedIds)
throws Exception {
Workbook wb = getWorkbook(file);
- Create a ticketCreate a ticket
File PlausibilityChecker.java
has 563 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
OtherModelGeneralInformation
has 65 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class OtherModelGeneralInformation {
@SerializedName("name")
private String name = null;
- Create a ticketCreate a ticket
DoseResponseModelGeneralInformation
has 65 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class DoseResponseModelGeneralInformation {
@SerializedName("modelName")
private String modelName = null;
- Create a ticketCreate a ticket
GenericModelGeneralInformation
has 65 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class GenericModelGeneralInformation {
@SerializedName("name")
private String name = null;
- Create a ticketCreate a ticket
PredictiveModelGeneralInformation
has 65 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class PredictiveModelGeneralInformation {
@SerializedName("name")
private String name = null;
- Create a ticketCreate a ticket
MyDBPanel
has 65 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class MyDBPanel extends JPanel {
/**
*
*/
- Create a ticketCreate a ticket
File WriterNodeModel.java
has 562 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Function compile
has 236 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compile(schema, root, localRefs, baseId) {
/* jshint validthis: true, evil: true */
/* eslint no-shadow: 0 */
var self = this
, opts = this._opts
- Create a ticketCreate a ticket
Method computeSecondary
has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring. Open
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<>();
- 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 ProcessParametersImpl.java
has 556 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* XML Type: ProcessParameters
* Namespace: http://www.bfr.bund.de/PCML-1_0
* Java type: de.bund.bfr.pcml10.ProcessParameters
*
- Create a ticketCreate a ticket
SettingsHelper
has 64 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class SettingsHelper {
private static final String CFG_SELECTEDIDS = "SelectedIDs";
private static final String CFG_PARAMXVALUES = "ParamXValues";
private static final String CFG_TIMEVALUES = "TimeValues";
- Create a ticketCreate a ticket
MyDBTable
has 64 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class MyDBTable extends DBTable implements RowSorterListener, KeyListener, ListSelectionListener, MouseListener {
/**
*
*/
- Create a ticketCreate a ticket
Method execute
has 233 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec) throws Exception {
db = null;
/*
- Create a ticketCreate a ticket
Method itemStateChanged
has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring. Open
Open
@Override
public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.SELECTED) {
for (String column : mappingBoxes.keySet()) {
if (e.getSource() == mappingBoxes.get(column)) {
- 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 JoinerNodeModel.java
has 551 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File editor.js
has 551 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*jshint esversion: 6 */
/* global $ */
metadata_editor = function() {
var softwareDic = {
- Create a ticketCreate a ticket
File SecondaryJoiner.java
has 550 lines of code (exceeds 250 allowed). Consider refactoring. Open
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