Showing 6,856 of 14,752 total issues
File rst.js
has 455 lines of code (exceeds 250 allowed). Consider refactoring. 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 doSwitch
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case MetadataPackage.GENERAL_INFORMATION: {
GeneralInformation generalInformation = (GeneralInformation)theEObject;
- 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 getViewRepresentation
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
@Override
public JoinerViewRepresentation getViewRepresentation() {
JoinerViewRepresentation representation;
- 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 doImport
has 172 lines of code (exceeds 25 allowed). Consider refactoring. Open
public String doImport(final String filename, final JProgressBar progress, final boolean showResults) {
//filename = "C:/Users/Armin/Documents/private/freelance/BfR/Data/100711/RIS-ExportReferenceManagerTest.txt";
Runnable runnable = new Runnable() {
public void run() {
try {
- Create a ticketCreate a ticket
File MyRisImporter.java
has 452 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
Reference
has 49 methods (exceeds 20 allowed). Consider refactoring. Open
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-12T14:55:16.594+02:00")
public class Reference {
@SerializedName("isReferenceDescription")
private Boolean isReferenceDescription = null;
- Create a ticketCreate a ticket
File ParameterImpl.java
has 451 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
*/
package metadata.impl;
import metadata.MetadataPackage;
- Create a ticketCreate a ticket
Function bind
has 170 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
File haxe.js
has 449 lines of code (exceeds 250 allowed). Consider refactoring. 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 loadFSKPortObject
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
@SuppressWarnings("unchecked")
public FskPortObject loadFSKPortObject(PortObjectZipInputStream in, PortObjectSpec spec, ExecutionMonitor exec)
throws IOException, CanceledExecutionException {
String modelScript = "";
- Create a ticketCreate a ticket
Function _generateHTML
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
_generateHTML: function(inst) {
var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
- Create a ticketCreate a ticket
File ReaderNodeModel.java
has 448 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 getReihenfolge
has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring. Open
private Vector<Integer> getReihenfolge(Vector<Integer[]> org_dst) {
Vector<Integer> indexReihenfolge = new Vector<>();
Integer[] int2 = org_dst.get(0);
int[] valsA = new int[2];
int[] valsE = new int[2];
- 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 checkeDoppeltVergebeneDKZs
has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring. Open
private void checkeDoppeltVergebeneDKZs(final Statement anfrage) {
System.err.println("checkeDoppeltVergebeneDKZs - Start");
LinkedHashMap<String, MyTable> myTables = DBKernel.myDBi.getAllTables();
Hashtable<Integer, String> hash = new Hashtable<>();
for(String key : myTables.keySet()) {
- 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 generateJoinerRelationAdvanced
has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring. Open
public static List<JoinRelationAdvanced> generateJoinerRelationAdvanced(FskPortObject portObject,
LinkedHashMap<String, Object[]> originalNamesMap, List<Parameter> topLevelJoinedModelParams, List<JoinRelation> joinRelations,
AtomicInteger index, List<JoinRelationAdvanced> joinRelationList, LinkedHashMap<String, String> ModelsToSuffixMap, List<JoinRelation> foundRelation) {
if (joinRelationList == null) {
joinRelationList = 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
Method getValueAt
has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring. Open
@Override
public Object getValueAt(int row, int column) {
switch (column) {
case 0:
return ids.get(row);
- 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 loadSettings
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void loadSettings(NodeSettingsRO settings) {
try {
fileName = settings.getString(CFG_FILE_NAME);
} catch (InvalidSettingsException e) {
}
- Create a ticketCreate a ticket
Method generateStatUpModellTables
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
@SuppressWarnings("unchecked")
private void generateStatUpModellTables(final MyTable literatur, final MyTable tenazity_raw_data, final LinkedHashMap<Object, String> hashZeit, final MyTable Konzentrationseinheiten, LinkedHashMap<Boolean, String> hYNB) {
MyTable PMMLabWorkflows = new MyTable("PMMLabWorkflows", new String[]{"Workflow"},
new String[]{"BLOB(100M)"},
new String[]{null},
- Create a ticketCreate a ticket
Method loadFSKPortObject
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
@SuppressWarnings("unchecked")
public FskPortObject loadFSKPortObject(PortObjectZipInputStream in, PortObjectSpec spec,
ExecutionMonitor exec) throws IOException, CanceledExecutionException {
String modelScript = "";
- Create a ticketCreate a ticket
Method importBufferedDataTable
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public BufferedDataTable importBufferedDataTable(String varName, boolean nonNumbersAsMissing,
ExecutionContext exec) throws RException, CanceledExecutionException {
final REXP typeRexp = eval("class(" + varName + ")", true);
- Create a ticketCreate a ticket