Showing 6,856 of 14,752 total issues
Function 40
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],40:[function(require,module,exports){
module.exports={
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://json-schema.org/draft-07/schema#",
"title": "Core schema meta-schema",
- Create a ticketCreate a ticket
File TableReader.java
has 446 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
MetadataAdapterFactory
has 48 methods (exceeds 20 allowed). Consider refactoring. Open
public class MetadataAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- Create a ticketCreate a ticket
SettingsHelper
has 48 methods (exceeds 20 allowed). Consider refactoring. Open
public class SettingsHelper {
protected static final String CFG_SELECTEDID = "SelectedID";
protected static final String CFG_CURRENTPARAMX = "CurrentParamX";
protected static final String CFG_SELECTEDVALUESX = "SelectedValuesX";
- Create a ticketCreate a ticket
ProcessParameters
has 48 methods (exceeds 20 allowed). Consider refactoring. Open
public interface ProcessParameters extends org.apache.xmlbeans.XmlObject
{
public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(ProcessParameters.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s121DA543B1FCBC764F9DFAF30A6E9DAF").resolveHandle("processparametersf629type");
- Create a ticketCreate a ticket
ProcessParametersImpl
has 48 methods (exceeds 20 allowed). Consider refactoring. Open
public class ProcessParametersImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements de.bund.bfr.pcml10.ProcessParameters
{
private static final long serialVersionUID = 1L;
public ProcessParametersImpl(org.apache.xmlbeans.SchemaType sType)
- Create a ticketCreate a ticket
File RunnerNodeModel.java
has 444 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
File SettingsHelper.java
has 442 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 RakipUtilTest.java
has 442 lines of code (exceeds 250 allowed). Consider refactoring. Open
package de.bund.bfr.knime.fsklab.rakip;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
- Create a ticketCreate a ticket
File CombinedJoiner.java
has 441 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 codeTuple
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
public static Model1DataTuple codeTuple(KnimeTuple inTuple) {
final Model1DataTuple outTuple = new Model1DataTuple();
// process
outTuple.condId = inTuple.getInt(TimeSeriesSchema.ATT_CONDID);
outTuple.combaseId = inTuple.getString(TimeSeriesSchema.ATT_COMBASEID);
- 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 filter
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
public int[] filter(TableModel tm) {
int[] result = null;
Vector<Integer> rows2check = null;
if (userIDs != null) {
rows2check = new Vector<>();
- 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 43 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected PortObject[] execute(final PortObject[] inData, final ExecutionContext exec)
throws InvalidSettingsException, IOException, CanceledExecutionException,
InvalidFormatException {
- 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 loadJsonSetting
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
protected void loadJsonSetting() throws IOException, CanceledExecutionException, ParseException {
File directory =
NodeContext.getContext().getWorkflowManager().getContext().getCurrentLocation();
File settingFolder = new File(buildContainerName());
- 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 43 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected PortObject[] execute(final PortObject[] inData, final ExecutionContext exec)
throws InvalidSettingsException, IOException, CanceledExecutionException,
InvalidFormatException {
- 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 importEntries
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
private LinkedHashMap<BibtexEntry, String> importEntries(InputStream stream) throws IOException {
LinkedHashMap<BibtexEntry, String> bibitems = new LinkedHashMap<>();
StringBuffer sb = new StringBuffer();
BufferedReader in = new BufferedReader(getReaderDefaultEncoding(stream));
String str;
- Create a ticketCreate a ticket
Function bind
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
Results.prototype.bind = function (container, $container) {
var self = this;
var id = container.id + '-results';
- Create a ticketCreate a ticket
Function 22
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],22:[function(require,module,exports){
'use strict';
module.exports = function generate_dependencies(it, $keyword, $ruleType) {
var out = ' ';
var $lvl = it.level;
- Create a ticketCreate a ticket
File DataModelSheetImporter.java
has 437 lines of code (exceeds 250 allowed). Consider refactoring. Open
package metadata.swagger;
import java.util.HashMap;
import org.apache.poi.ss.usermodel.Cell;
- Create a ticketCreate a ticket
File TableReader.java
has 437 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