Showing 6,856 of 14,752 total issues
Function _runModelView
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
async _runModelView ( modelId ) {
let O = this;
_log( 'PANEL SIM / _runModelView : '+ O._modelId, 'secondary' );
modelId = modelId || O._modelId;
- Create a ticketCreate a ticket
Function _checkValue
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
function _checkValue() {
var val, parsedval, returnval;
val = settings.callback_before_calculation(originalinput.val());
- Create a ticketCreate a ticket
Function moveMonth
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
moveMonth: function(date, dir){
if (!isValidDate(date))
return this.o.defaultViewDate;
if (!dir)
return date;
- Create a ticketCreate a ticket
Function gobbleNumericLiteral
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
gobbleNumericLiteral = function() {
var number = '', ch, chCode;
while(isDecimalDigit(exprICode(index))) {
number += exprI(index++);
}
- Create a ticketCreate a ticket
Function initJQuery
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
function initJQuery()
{
$("#dataChoiceDiv").hide();
$("#graphTypeDiv").hide();
- Create a ticketCreate a ticket
Function clip
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
var effectClip = $.effects.effect.clip = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
- Create a ticketCreate a ticket
Function equal
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function equal(a, b) {
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
var arrA = isArray(a)
- Create a ticketCreate a ticket
Function equalObjects
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
function equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
var objProps = keys(object),
objLength = objProps.length,
othProps = keys(other),
othLength = othProps.length;
- Create a ticketCreate a ticket
Function _compile
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
function _compile(schemaObj, root) {
if (schemaObj.compiling) {
schemaObj.validate = callValidate;
callValidate.schema = schemaObj.schema;
callValidate.errors = null;
- Create a ticketCreate a ticket
Function show
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Collapse.prototype.show = function () {
if (this.transitioning || this.$element.hasClass('in')) return
var activesData
var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
- Create a ticketCreate a ticket
Method saveSettings
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
public void saveSettings(Config cM) {
int[] iarr;
String[] narr;
if (forMatrices) {
iarr = new int[lmat.size()];
- 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 getNArr
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
public String[] getNArr() {
String[] narr;
if (forMatrices) {
narr = new String[lmat.size()];
for (int i=0;i<lmat.size();i++) {
- 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 getIArr
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
public int[] getIArr() {
int[] iarr;
if (forMatrices) {
iarr = new int[lmat.size()];
for (int i=0;i<lmat.size();i++) {
- 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 setSetting
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
public void setSetting( final FoodProcessSetting fps ) {
int i;
Double val;
nameField.setText(fps.getProcessName());
- 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 getSetting
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
public AgentsSetting getSetting() throws InvalidSettingsException {
AgentsSetting as;
as = new AgentsSetting();
- 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 calculateWeightedMean
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
private static Double calculateWeightedMean(Double sum, final Double newVal, final Double partVol, final Double totalVol,
final String defaultValue) {
// hier erstmal trivial ohne grosse Mischerei...
if (defaultValue != null && !defaultValue.isEmpty()) {
try{sum = Double.parseDouble(defaultValue);}catch(Exception 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 setModelId
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
public static void setModelId(Model model, String id) {
final String modelType = model.getModelType();
if (modelType.equalsIgnoreCase("genericModel")) {
((GenericModel) model).getGeneralInformation().setIdentifier(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 equals
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null || getClass() != obj.getClass())
- 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 12 (exceeds 5 allowed). Consider refactoring. Open
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case MetadataPackage.DIETARY_ASSESSMENT_METHOD__COLLECTION_TOOL:
return COLLECTION_TOOL_EDEFAULT == null ? collectionTool != null : !COLLECTION_TOOL_EDEFAULT.equals(collectionTool);
- 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 12 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec)
throws Exception {
XLSReader xlsReader = new XLSReader();
List<KnimeTuple> tuples = new ArrayList<>(xlsReader
- 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"