SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Avoid deeply nested control flow statements.
Open

              if (pos < j$2) { order.splice(at, 0, new BidiSpan(1, pos, j$2)); }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (m.title) { (attributes || (attributes = {})).title = m.title; }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0))
              { collapsed = sp; }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 45 mins to fix

Function _refresh has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

    async _refresh(index, modelMetadata ) {
        let O = this;
        let rowData = O._tableData[index];
        rowData.modelMetadata = modelMetadata;
        let modelName = O._getData( modelMetadata, 'generalInformation', 'name' );
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.table.mt.js - About 45 mins to fix

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

Avoid deeply nested control flow statements.
Open

                    if ( field.param.maxValue && parseFloat( field.param.maxValue ) < fieldValue ) {
                        return {
                            input      : field.input,
                            msg     : 'Invalid value. Value is higher than maximum value: '+ field.param.maxValue
                        };
Severity: Major
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                    if(data === "(Data)"){data = "Data model";}
Severity: Major
Found in de.bund.bfr.knime.js/src/js/app/app.table.mt.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                                if( ! cellMatches ) {
                                    rowMatchesFilter = false;
                                }
Severity: Major
Found in de.bund.bfr.knime.js/src/js/app/app.table.mt.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (m.endStyle && sp.to == nextChange) { (endStyles || (endStyles = [])).push(m.endStyle, sp.to); }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (m.explicitlyCleared) {
            if (!line.markedSpans) { break }
            else {--i; continue}
          }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                        if ( param.unit && param.unit != '[]' && param.unit != 'Others' ) {
                            $input.attr( 'data-touchspin-postfix', param.unit );
                        }
Severity: Major
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                else if ( field.param.dataType.toLowerCase() === 'file' ) {

                    // TBD

                }
Severity: Major
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0))
            { return skipAtomicInner(doc, near, pos, dir, mayClear) }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                    if ( field.param.dataType.toLowerCase === 'integer' && fieldValue.indexOf('.') > 0 ){
                        return {
                                input   : field.input,
                                msg     : 'Invalid integer value'
                            };
Severity: Major
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

      if (cutTop && cutBot) {
        display.view = display.view.slice(0, cutTop.index)
          .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN))
          .concat(display.view.slice(cutBot.index));
        display.viewTo += lendiff;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                    if (i === 0 || (i === 1 && name[2] === '..') || name[i - 1] === '..') {
                        continue;
                    } else if (i > 0) {
                        name.splice(i - 1, 2);
                        i -= 2;
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                            if ((value + '').toLowerCase().indexOf(s) !== -1) {
                                return true;
                            }

Avoid deeply nested control flow statements.
Open

                    for (j = baseParts.length; j > 0; j -= 1) {
                        mapValue = map[baseParts.slice(0, j).join('/')];

                        //baseName segment has  config, find if it has one for
                        //this name.
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                      } else if (e.keyCode === 37 || e.keyCode === 39){
                          newViewDate = this.moveAvailableDate(focusDate, dir, 'moveDay');
                      } else if (!this.weekOfDateIsDisabled(focusDate)){
                          newViewDate = this.moveAvailableDate(focusDate, dir, 'moveWeek');
                      }
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (e.keyCode === 38 || e.keyCode === 40) {
              dir = dir * 4;
            }
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

                            if ((value + '').toLowerCase() === s) {
                                return true;
                            }
Severity
Category
Status
Source
Language