SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method execute has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected PortObject[] execute(final PortObject[] inData, final ExecutionContext exec)
      throws Exception {

    FskPortObject portObject = (FskPortObject) inData[0];

Method createUI has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void createUI() {

    // Model type panel
    final JPanel modelTypePanel = new JPanel(new BorderLayout());
    modelTypePanel.setBorder(

Method useCurrentResults has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void useCurrentResults(List<Double> startValues) {
        double cost = optimizerValues.getCost();

        parameterValues = new ArrayList<>(parameters.size());
        sse = cost * cost;

Method fetchConditions has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private List<ConditionsData> fetchConditions(BufferedDataTable table) {

        /**
         * Two types of conditions tables:
         * <ol>

Consider simplifying this complex logical expression.
Open

    } else if (
      // if setext set, indicates line after ---/===
      state.setext || (
        // line before ---/===
        (!allowsInlineContinuation || !prevLineIsList) && !state.quote && state.list === false &&
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/markdown/markdown.js - About 2 hrs to fix

Consider simplifying this complex logical expression.
Open

    } else if (ch === "*" || ch === "_") {
      var len = 1, before = stream.pos == 1 ? " " : stream.string.charAt(stream.pos - 2)
      while (len < 3 && stream.eat(ch)) len++
      var after = stream.peek() || " "
      // See http://spec.commonmark.org/0.27/#emphasis-and-strong-emphasis
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/markdown/markdown.js - About 2 hrs to fix

Function token has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    token: function(stream, state) {

      var cur = '';
      if(stream.eatSpace()) return null;
      // extension started

Function tokenBase has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function tokenBase(stream, state) {
    var ch = stream.next();
    curPunc = null;
    if (ch == "$" || ch == "?") {
      if(ch == "?" && stream.match(/\s/, false)){
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/sparql/sparql.js - About 2 hrs to fix

Function readToken has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function readToken(stream, state) {
  if (stream.sol()) {
    // From last line
    state.inSeparator = false;
    if (state.inHeader && stream.match(whitespace)) {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js - About 2 hrs to fix

Consider simplifying this complex logical expression.
Open

        if (cx.prev &&
            (ch == "}" && (cx.type == "block" || cx.type == "atBlock" || cx.type == "keyframes") ||
             ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
             ch == "{" && (cx.type == "at"))) {
          indent = cx.indent - indentUnit;
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/stylus/stylus.js - About 2 hrs to fix

Function onScrollWheel has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function onScrollWheel(cm, e) {
    var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;

    var display = cm.display, scroll = display.scroller;
    // Quit if there's nothing to scroll here
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 2 hrs to fix

Function CodeMirror has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function CodeMirror(place, options) {
    var this$1 = this;

    if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }

Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 2 hrs to fix

Function moveVisually has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function moveVisually(cm, line, start, dir) {
    var bidi = getOrder(line, cm.doc.direction);
    if (!bidi) { return moveLogically(line, start, dir) }
    if (start.ch >= line.text.length) {
      start.ch = line.text.length;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 2 hrs to fix

Function _prepareDataTable has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async _prepareDataTable(){
        _log( 'TABLE MAIN / _prepareDataTable', 'primary' );
        let O = this;
        // prepare table data
        O._tableData = [];
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.table.mt.js - About 2 hrs to fix

Consider simplifying this complex logical expression.
Open

var S2;(function () { if (!S2 || !S2.requirejs) {
if (!S2) { S2 = {}; } else { require = S2; }
/**
 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
Severity: Critical
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 2 hrs to fix

Consider simplifying this complex logical expression.
Open

var S2;(function () { if (!S2 || !S2.requirejs) {
if (!S2) { S2 = {}; } else { require = S2; }
/**
 * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
Severity: Critical
Found in de.bund.bfr.knime.pmm.nodes/js-lib/select2/4_0_3/debug/js/select2.js - About 2 hrs to fix

Function bind has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Search.prototype.bind = function (decorated, container, $container) {
    var self = this;

    var resultsId = container.id + '-results';

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

Function _fill_yearsView has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _fill_yearsView: function(selector, cssClass, factor, year, startYear, endYear, beforeFn){
            var html = '';
            var step = factor / 10;
            var view = this.picker.find(selector);
            var startVal = Math.floor(year / factor) * factor;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 2 hrs to fix

Function d3_interpolateTransform has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_interpolateTransform(a, b) {
    var s = [], q = [], n, A = d3.transform(a), B = d3.transform(b), ta = A.translate, tb = B.translate, ra = A.rotate, rb = B.rotate, wa = A.skew, wb = B.skew, ka = A.scale, kb = B.scale;
    if (ta[0] != tb[0] || ta[1] != tb[1]) {
      s.push("translate(", null, ",", null, ")");
      q.push({

Function d3_scale_linear has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_scale_linear(domain, range, interpolate, clamp) {
    var output, input;
    function rescale() {
      var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;
      output = linear(domain, range, uninterpolate, interpolate);
Severity
Category
Status
Source
Language