SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Function query has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Tags.prototype.query = function (decorated, params, callback) {
    var self = this;

    this._removeOldTags();

Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

Function query has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Tags.prototype.query = function (decorated, params, callback) {
    var self = this;

    this._removeOldTags();

Function shake has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectShake = $.effects.effect.shake = function( o, done ) {

    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
        mode = $.effects.setMode( el, o.mode || "effect" ),

Function updateDoc has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function updateDoc(doc, change, markedSpans, estimateHeight) {
  function spansFor(n) {return markedSpans ? markedSpans[n] : null}
  function update(line, text, spans) {
    updateLine(line, text, spans, estimateHeight)
    signalLater(line, "change", line, change)

Function add has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    add(data) {

      // Add new row (Order is fixed by formData)
      let newRow = document.createElement("tr");

Function updateDoc has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function updateDoc(doc, change, markedSpans, estimateHeight) {
  function spansFor(n) {return markedSpans ? markedSpans[n] : null}
  function update(line, text, spans) {
    updateLine(line, text, spans, estimateHeight)
    signalLater(line, "change", line, change)

Function 16 has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],16:[function(require,module,exports){
'use strict';
module.exports = function generate_allOf(it, $keyword, $ruleType) {
  var out = ' ';
  var $schema = it.schema[$keyword];

Consider simplifying this complex logical expression.
Open

        if (tableName.equals("Modellkatalog") || tableName.equals("ModellkatalogParameter") || tableName.equals("Modell_Referenz") || tableName.equals("GeschaetzteModelle")
                || tableName.equals("GeschaetztesModell_Referenz") || tableName.equals("GeschaetzteParameter") || tableName.equals("GeschaetzteParameterCovCor")
                || tableName.equals("Sekundaermodelle_Primaermodelle") || tableName.equals("GueltigkeitsBereiche")) odsn = false;
Severity: Critical
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyTable.java - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

            if (carverID >= 1 && carverID <= 31 || carverID == 332 ||
                    carverID >= 217 && carverID <= 220 ||
                    carverID >= 295 && carverID <= 307 ||
                    carverID >= 338 && carverID <= 340) result = true; // Material
            else if (carverID >= 280 && carverID <= 290 || carverID == 342) result = true; // Verpackung

Consider simplifying this complex logical expression.
Open

        if (names != null && units != null && types != null && mins != null && maxs != null
            && names.length == units.length && names.length == types.length
            && names.length == mins.length && names.length == maxs.length) {

          for (int i = 0; i < names.length; i++) {

Consider simplifying this complex logical expression.
Open

              if ((current == 0x9) ||
                  (current == 0xA) ||
                  (current == 0xD) ||
                  ((current >= 0x20) && (current <= 0xD7FF)) ||
                  ((current >= 0xE000) && (current <= 0xFFFD)) ||
Severity: Critical
Found in de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/DbIo.java - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

          if (ltr) {
            topLeft = docLTR && openStart && first ? leftSide : fromPos.left;
            topRight = docLTR ? rightSide : wrapX(from, dir, "before");
            botLeft = docLTR ? leftSide : wrapX(to, dir, "after");
            botRight = docLTR && openEnd && last ? rightSide : toPos.right;
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

    if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&
        repeat == "single" && (contained = sel.contains(pos)) > -1 &&
        (cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) &&
        (cmp(contained.to(), pos) > 0 || pos.xRel < 0))
      { leftButtonStartDrag(cm, event, pos, behavior); }
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

    if ( _isUndefined( value ) 
        || _isNull( value ) 
        || typeof value == 'object' && Object.keys( value ).length === 0 && value.constructor === Object
        || typeof value == 'object' && value.length == 1 && _isNull( value[0] )
        || value.length <= 0 ) {
Severity: Critical
Found in de.bund.bfr.knime.js/src/js/app/app.utils.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

        if (this.floating && horizontalDirection) {
            return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
        } else {
            return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
        }

Consider simplifying this complex logical expression.
Open

        if(!(/^(document|window|parent)$/).test(o.containment)) {
            ce = $(o.containment)[0];
            co = $(o.containment).offset();
            over = ($(ce).css("overflow") !== "hidden");

Consider simplifying this complex logical expression.
Open

        if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
                $target.parents("#" + $.datepicker._mainDivId).length === 0 &&
                !$target.hasClass($.datepicker.markerClassName) &&
                !$target.closest("." + $.datepicker._triggerClass).length &&
                $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||

Consider simplifying this complex logical expression.
Open

  if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&
      repeat == "single" && (contained = sel.contains(pos)) > -1 &&
      (cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) &&
      (cmp(contained.to(), pos) > 0 || pos.xRel < 0))
    { leftButtonStartDrag(cm, event, pos, behavior) }
Severity: Critical
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

        if (ltr) {
          topLeft = docLTR && openStart && first ? leftSide : fromPos.left
          topRight = docLTR ? rightSide : wrapX(from, dir, "before")
          botLeft = docLTR ? leftSide : wrapX(to, dir, "after")
          botRight = docLTR && openEnd && last ? rightSide : toPos.right
Severity: Critical
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

        if (ltr) {
          topLeft = docLTR && openStart && first ? leftSide : fromPos.left
          topRight = docLTR ? rightSide : wrapX(from, dir, "before")
          botLeft = docLTR ? leftSide : wrapX(to, dir, "after")
          botRight = docLTR && openEnd && last ? rightSide : toPos.right
Severity
Category
Status
Source
Language