Showing 6,856 of 14,752 total issues
Function tokenBase
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
function tokenBase(stream, state) {
if (stream.eatSpace()) {
return 'space';
//return null;
}
- Create a ticketCreate a ticket
Function _createFilter
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
_createFilter () {
let O = this;
_log( 'TABLE MAIN / _createFilter' );
// prepare sets for filter
- Create a ticketCreate a ticket
Function generate_if
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function generate_if(it, $keyword, $ruleType) {
var out = ' ';
var $lvl = it.level;
var $dataLvl = it.dataLevel;
var $schema = it.schema[$keyword];
- Create a ticketCreate a ticket
Function 4
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"./resolve":6}],4:[function(require,module,exports){
'use strict';
var util = require('./util');
- Create a ticketCreate a ticket
Function keydown
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
keydown: function(e){
if (!this.picker.is(':visible')){
if (e.keyCode === 40 || e.keyCode === 27) { // allow down to re-show picker
this.show();
e.stopPropagation();
- Create a ticketCreate a ticket
File xquery.js
has 331 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
File PopulationGroupImpl.java
has 330 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
*/
package metadata.impl;
import java.util.Collection;
- Create a ticketCreate a ticket
Method insertNewRow
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
void insertNewRow(final boolean copySelected, final Vector<Object> vecIn) {
MyTable myT = this.getActualTable();
if (!this.actualTable.isReadOnly()) {
//JScrollPane scroller = getScroller();
this.getActualTable().saveProperties(this);
- Create a ticketCreate a ticket
Function updatesFinalSimulation
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
function updatesFinalSimulation(selectedSimulationName) {
if(_ignoreSelectSimulation)
return;
_finalsimulationList=[];
let tespSimulationArray = [];
- Create a ticketCreate a ticket
Method loadSettingsFrom
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void loadSettingsFrom(final NodeSettingsRO s, final PortObjectSpec[] specs) throws NotConfigurableException {
this.specs = specs;
settings.loadSettingsForDialog(s);
- 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 equals
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == 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 equals
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == 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 createChart
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
private void createChart() {
String selectedID = null;
if (configPanel.isDisplayFocusedRow()) {
selectedID = selectionPanel.getFocusedID();
- 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 createDataTuple
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
private KnimeTuple createDataTuple(TableReader reader, String id) {
KnimeTuple dataTuple;
KnimeTuple tuple = reader.getTupleMap().get(id);
Plotable plotable = reader.getPlotables().get(id);
Map<String, List<Double>> conditions = plotable.getFunctionArguments();
- 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 a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public void loadSettings(NodeSettingsRO settings) {
try {
selectedID = settings.getString(CFG_SELECTEDID);
} catch (InvalidSettingsException e) {
}
- 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 actionPerformed
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public void actionPerformed(ActionEvent e) {
String lastOutDir = DBKernel.prefs.get("LAST_OUTPUT_DIR", "");
JFileChooser fc = new JFileChooser(lastOutDir);
// if (!DBKernel.isKrise) fc.addChoosableFileFilter(new LieferkettenImporterNew());
fc.addChoosableFileFilter(new MyProzessXMLImporter());
- 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 run
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public void run() {
System.err.println("Importing " + filename);
logMessages += "Importing " + filename + "\n";
try {
if (progress != 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 createSbmlDocument
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
private static SBMLDocument createSbmlDocument(final FskMetaData template) {
// Creates SBMLDocument for the primary model
final SBMLDocument sbmlDocument = new SBMLDocument(TableReader.LEVEL, TableReader.VERSION);
- 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 updateDialog
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
private void updateDialog(ModelType modelType, String readmeFile,
EnvironmentManager environment) {
modelTypeComboBoxModel.setSelectedItem(modelType);
m_readmePanel.setSelectedFile(readmeFile);
clearEnvironmentPanel();
- 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 performExecute
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec)
throws Exception {
convertMetadataToGenericVersion(inObjects);
PortObject svgImageFromView = 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"