SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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

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

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);

Consider simplifying this complex logical expression.
Open

                    if( ( 
                            (indep.min == undefined || indep.min == "" || indep.min == null) && 
                            (indep.max == undefined || indep.max == "" || indep.max == null) &&
                            (indep.value != undefined && indep.value !== "")
                        ) 

Consider simplifying this complex logical expression.
Open

                if( ( 
                        (indep.min == undefined || indep.min == "" || indep.min == null) && 
                        (indep.max == undefined || indep.max == "" || indep.max == null) &&
                        (indep.value != undefined && indep.value !== "")
                    ) 

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

  d3.svg.chord = function() {
    var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
    function chord(d, i) {
      var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i);
      return "M" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + "Z";

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

function Display(place, doc, input) {
  var d = this
  this.input = input

  // Covers bottom-right square when both scrollbars are present.

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

    _makeResizable: function() {
        var that = this,
            options = this.options,
            handles = options.resizable,
            // .ui-resizable has position: relative defined in the stylesheet

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

$.effects.animateClass = function( value, duration, easing, callback ) {
    var o = $.speed( duration, easing, callback );

    return this.queue( function() {
        var animated = $( this ),

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

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

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.fsklab.deprecatednodes/js-lib/codemirror/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.fsklab.deprecatednodes/js-lib/codemirror/markdown.js - About 2 hrs to fix

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

function Display(place, doc, input) {
  var d = this
  this.input = input

  // Covers bottom-right square when both scrollbars are present.

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

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

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

    set: function(key, val, options) {
      if (key == null) return this;

      // Handle both `"key", value` and `{key: value}` -style arguments.
      var attrs;

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

    function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
      var objIsArr = isArray(object),
          othIsArr = isArray(other),
          objTag = arrayTag,
          othTag = arrayTag;
Severity
Category
Status
Source
Language