SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function scrollPosIntoView has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function scrollPosIntoView(cm, pos, end, margin) {
    if (margin == null) { margin = 0; }
    var rect;
    if (!cm.options.lineWrapping && pos == end) {
      // Set pos and end to the cursor positions around the character pos sticks to
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function onMouseDown has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function onMouseDown(e) {
    var cm = this, display = cm.display;
    if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }
    display.input.ensurePolled();
    display.shift = e.shiftKey;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function _createPanels has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createPanels() {
        let port = window.port || -1;
        let schema = schemas.genericModel;
        return {
            generalInformation: new FormPanel("General", schema.generalInformation, this._metadata.generalInformation, port),
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.schemas.js - About 1 hr to fix

Function _createPanel has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createPanel(menu, modelHandler) {
        let O = this;
        _log('MODAL DETAILS / _createPanel: ' + menu.id);

        let $panel = null;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.mt.details.js - About 1 hr to fix

Function metaData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    get metaData() {
        try{
        // generalInformation
        this._metadata.generalInformation = this.panels.generalInformation.data;
        this._metadata.generalInformation.modelCategory = this.panels.modelCategory.data;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.schemas.js - About 1 hr to fix

Function select2 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.select2 = function (options) {
      options = options || {};

      if (typeof options === 'object') {
        this.each(function () {
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

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

        Function.prototype.bind = function bind(that) {

            var target = this;
            var slice = [].slice;

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

Function itemsByValue has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

       itemsByValue: function(value, sourceData, valueProp) {
           if(!sourceData || value === null) {
               return [];
           }
           

Function select2 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.select2 = function (options) {
      options = options || {};

      if (typeof options === 'object') {
        this.each(function () {

Function moveMonth has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        moveMonth: function(date, dir){
            if (!dir) return date;
            var new_date = new Date(date.valueOf()),
                day = new_date.getUTCDate(),
                month = new_date.getUTCMonth(),

Function save has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        save: function(submitValue) {
            //try parse composite pk defined as json string in data-pk 
            this.options.pk = $.fn.editableutils.tryParseJson(this.options.pk, true); 
            
            var pk = (typeof this.options.pk === 'function') ? this.options.pk.call(this.options.scope) : this.options.pk,

Function renderList has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        renderList: function() {
            this.$input.empty();

            var fillItems = function($el, data) {
                var attr;

Function d3_geo_pointInPolygon has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_geo_pointInPolygon(point, polygon) {
    var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, winding = 0;
    d3_geo_areaRingSum.reset();
    for (var i = 0, n = polygon.length; i < n; ++i) {
      var ring = polygon[i], m = ring.length;

Function brushmove has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function brushmove() {
        var point = d3.mouse(target), moved = false;
        if (offset) {
          point[0] += offset[0];
          point[1] += offset[1];

Function _combineLikeTerms has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Expression.prototype._combineLikeTerms = function() {
    function alreadyEncountered(term, encountered) {
        for (var i = 0; i < encountered.length; i++) {
            if (term.canBeCombinedWith(encountered[i])) {
                return true;

Function _setOption has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _setOption: function( key, value ) {
        if ( key === "active" ) {
            // _activate() will handle invalid values and update this.options
            this._activate( value );
            return;

Function _updateVirtualBoundaries has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _updateVirtualBoundaries: function(forceAspectRatio) {
        var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
            o = this.options;

        b = {

Function getDimensions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getDimensions( elem ) {
    var raw = elem[0];
    if ( raw.nodeType === 9 ) {
        return {
            width: elem.width(),

Function left has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        left: function( position, data ) {
            var within = data.within,
                withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
                outerWidth = within.width,
                collisionPosLeft = position.left - data.collisionPosition.marginLeft,

Function top has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        top: function( position, data ) {
            var within = data.within,
                withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
                outerHeight = data.within.height,
                collisionPosTop = position.top - data.collisionPosition.marginTop,
Severity
Category
Status
Source
Language