Showing 6,856 of 14,752 total issues
File xml.js
has 382 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
JsM12DataSchema
has 39 methods (exceeds 20 allowed). Consider refactoring. Open
@JsonAutoDetect
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
public class JsM12DataSchema implements ViewValue {
// Model1 fields
private CatalogModel catalogModel = new CatalogModel();
- Create a ticketCreate a ticket
Function token
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
token: function(stream, state) {
var style = undefined;
var match; // Return value of pattern matches.
// Set highlighting mode based on code region (TLV or SV).
- Create a ticketCreate a ticket
Function constructor
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
constructor( metadata, img , state , modelScript, visScript , readme ) {
super( metadata, img , modelScript, visScript, readme ) ;
this._schema = schemas.exposureModel;
if(state){
this.panels = this._createPanels();
- Create a ticketCreate a ticket
Function constructor
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
constructor( metadata, img , state , modelScript, visScript , readme ) {
super( metadata, img , modelScript, visScript, readme ) ;
this._schema = schemas.qraModel;
if(state){
this.panels = this._createPanels();
- Create a ticketCreate a ticket
Function constructor
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
constructor( metadata, img , state , modelScript, visScript , readme ) {
super( metadata, img , modelScript, visScript, readme ) ;
this._schema = schemas.genericModel;
if(state){
this.panels = this._createPanels();
- Create a ticketCreate a ticket
Function constructor
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
constructor( metadata, img , state , modelScript, visScript , readme ) {
super( metadata, img , modelScript, visScript, readme ) ;
this._schema = schemas.riskModel;
if(state){
this.panels = this._createPanels();
- Create a ticketCreate a ticket
Function initBody
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
BootstrapTable.prototype.initBody = function (fixedScroll) {
var that = this,
html = [],
data = this.getData();
- Create a ticketCreate a ticket
Function parseDate
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
parseDate: function(date, format, language, assumeNearby){
if (!date)
return undefined;
if (date instanceof Date)
return date;
- Create a ticketCreate a ticket
File RakipUtil.java
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
package de.bund.bfr.knime.fsklab.rakip;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
- Create a ticketCreate a ticket
File MergeDBsAPriori.java
has 381 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 soy.js
has 380 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 SettingsHelper.java
has 379 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 retrieveParameter
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public Parameter retrieveParameter(Row row) {
// Check first mandatory properties
if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
throw new IllegalArgumentException("Missing parameter id");
- 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 eIsSet
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case MetadataPackage.STUDY__STUDY_IDENTIFIER:
return STUDY_IDENTIFIER_EDEFAULT == null ? studyIdentifier != null : !STUDY_IDENTIFIER_EDEFAULT.equals(studyIdentifier);
- 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 getDblVal
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
private void getDblVal(MyDBTable myDBTable, int row, int col, HSSFRow row0, HSSFRow rowi) {
Object key = myDBTable.getValueAt(row, col);
if (key != null) {
try {
ResultSet rs = DBKernel.getResultSet("SELECT * FROM " + DBKernel.delimitL("DoubleKennzahlen") +
- 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 manageString
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
private String manageString(PreparedStatement ps, PreparedStatement psUpdate, int lfdCol, HSSFCell cell, LinkedHashMap<Object, String> hashBL) throws SQLException {
String result = null;
if (cell == null || cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {
if (ps != null) ps.setNull(lfdCol, java.sql.Types.VARCHAR);
if (psUpdate != null) psUpdate.setNull(lfdCol, java.sql.Types.VARCHAR);
- 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 saveFSKPortObject
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public void saveFSKPortObject(FskPortObject portObject, final PortObjectZipOutputStream out,
final ExecutionMonitor exec) throws IOException {
// First FSK Object
// model entry (file with model script)
- 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 34 (exceeds 5 allowed). Consider refactoring. Open
protected void loadJsonSetting() throws IOException, CanceledExecutionException {
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 saveFSKPortObject
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public void saveFSKPortObject(FskPortObject portObject, final PortObjectZipOutputStream out,
final ExecutionMonitor exec) throws IOException {
// First FSK Object
// model entry (file with model script)
- 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"