Showing 6,856 of 14,752 total issues
Method fetchConditions
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
Open
private List<ConditionsData> fetchConditions(BufferedDataTable table) {
/**
* Two types of conditions tables:
* <ol>
- 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 decodeTuple
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static KnimeTuple decodeTuple(final Model1DataTuple m1DataTuple) {
final KnimeTuple outTuple = new KnimeTuple(SchemaFactory.createM1DataSchema());
outTuple.setValue(TimeSeriesSchema.ATT_CONDID, m1DataTuple.condId);
outTuple.setValue(TimeSeriesSchema.ATT_COMBASEID, m1DataTuple.combaseId);
- Create a ticketCreate a ticket
Function d3_geo_clipCircle
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_geo_clipCircle(radius) {
var cr = Math.cos(radius), smallRadius = cr > 0, point = [ radius, 0 ], notHemisphere = Math.abs(cr) > ε, interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);
return d3_geo_clip(visible, clipLine, interpolate, polygonContains);
function visible(λ, φ) {
return Math.cos(λ) * Math.cos(φ) > cr;
- Create a ticketCreate a ticket
Function debounce
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function debounce(func, wait, options) {
var args,
maxTimeoutId,
result,
stamp,
- Create a ticketCreate a ticket
File MyDBTreeModel.java
has 328 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
Method itemStateChanged
has 96 lines of code (exceeds 25 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)) {
- Create a ticketCreate a ticket
Function _initRangeslider
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initRangeslider ( container ) {
let O = this;
_log( 'UI / _initRangeslider' );
let $elems = $( container ).length > 0 ? $( container ).find( '[data-rangeslider]' ) : $( '[data-rangeslider]' );
- Create a ticketCreate a ticket
Function click
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
click: function(e) {
e.preventDefault();
var target = $(e.target).closest('span, td, th');
if (target.length == 1) {
switch(target[0].nodeName.toLowerCase()) {
- Create a ticketCreate a ticket
SwaggerUtil
has 31 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class SwaggerUtil {
@Deprecated
public static de.bund.bfr.metadata.swagger.GenericModelGeneralInformation convert(
metadata.GeneralInformation deprecatedGeneralInformation) {
- Create a ticketCreate a ticket
Assay
has 31 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 Assay {
@SerializedName("name")
private String name = null;
- Create a ticketCreate a ticket
JSONDataTableSpec
has 31 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@JsonAutoDetect
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
public class JSONDataTableSpec {
/**
- Create a ticketCreate a ticket
PmmTimeSeriesTest
has 31 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@SuppressWarnings("static-method")
public class PmmTimeSeriesTest {
@Test
public void testConstructors() {
- Create a ticketCreate a ticket
File mllike.js
has 326 lines of code (exceeds 250 allowed). Consider refactoring. Open
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 getTableCellRendererComponent
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int columnIndex) {
JComponent c;
if (columnIndex == 0) {
Boolean indep = (Boolean) table.getValueAt(rowIndex, 2);
if (indep == null) indep = false;
- Create a ticketCreate a ticket
File SBMLWriterNodeModel.java
has 325 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
Function tokenBase
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenBase(stream, state) {
// Handle scope changes
if (stream.sol()) {
if (state.scope.align === null) state.scope.align = false;
var scopeOffset = state.scope.offset;
- Create a ticketCreate a ticket
Method retrieveParameter
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
- Create a ticketCreate a ticket
Method loadDBNew
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private MainFrame loadDBNew(MyDBI myDBi, String dbPath, Boolean autoUpdate, boolean openTheGui, boolean beInteractive) {
MainFrame mf = null;
MyDBTable myDB = null;
boolean doUpdates = false;
try {
- Create a ticketCreate a ticket
Method doImportMaciel
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private int[] doImportMaciel(HSSFWorkbook wb, JProgressBar progress, String efsaID) {
int numSuccess = 0;
int numFails = 0;
HSSFSheet businessSheet = wb.getSheet("Business_List");
HSSFSheet transactionSheet = wb.getSheet("Receivers");
- Create a ticketCreate a ticket
Method performExecute
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec)
throws Exception {
convertMetadataToGenericVersion(inObjects);
PortObject svgImageFromView = null;
- Create a ticketCreate a ticket