SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function _createSimulationContent has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createSimulationContent () {
        let O = this;
        _log( 'panel SIM / _createSimulationContent' );

        // nav
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 1 hr to fix

Function item has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  SelectAdapter.prototype.item = function ($option) {
    var data = {};

    data = $.data($option[0], 'data');

Function setFieldIndex has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var setFieldIndex = function (columns) {
        var i, j, k,
            totalCol = 0,
            flag = [];

Function d3_scale_pow has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_scale_pow(linear, exponent, domain) {
    var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);
    function scale(x) {
      return linear(powp(x));
    }

Function rightOf has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      rightOf: function(he, p) {
        var e = he.edge, topsite = e.region.r, rightOfSite = p.x > topsite.x;
        if (rightOfSite && he.side === "l") {
          return 1;
        }

Function getValue has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getValue: function(format) {
            var dt, values = {}, 
                that = this,
                notSelected = false;
                

Function getClassNames has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getClassNames: function(date){
            var cls = [],
                year = this.viewDate.getUTCFullYear(),
                month = this.viewDate.getUTCMonth(),
                currentDate = this.date.valueOf(),

Function setPosition has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        setPosition: function () { 

            (function() {
            /*    
                var $tip = this.tip()

Function parseModel has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function parseModel(modelList,onlySecondaryModel)
        {
            
            if(onlySecondaryModel){
                /*

Function _refreshItems has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _refreshItems: function(event) {

        this.items = [];
        this.containers = [this];

Function _mouseStop has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _mouseStop: function(event) {

        this.resizing = false;
        var pr, ista, soffseth, soffsetw, s, left, top,
            o = this.options, that = this;

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

        top: function( position, data ) {
            var within = data.within,
                withinOffset = within.offset.top + within.scrollTop,
                outerHeight = within.height,
                offsetTop = within.isWindow ? within.scrollTop : within.offset.top,

Function _size has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _size: function() {
        // If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
        // divs will both have width and height set, so we need to reset them
        var nonContentHeight, minContentHeight, maxContentHeight,
            options = this.options;

Function _createRange has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createRange: function() {
        var options = this.options,
            classes = "";

        if ( options.range ) {

Function load_block has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function load_block() {

        $(".clickable").click(function(){ 

            $(".pencil").removeClass('pencil-active');

Function _updateDatepicker has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _updateDatepicker: function(inst) {
        this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
        datepicker_instActive = inst; // for delegate hover events
        inst.dpDiv.empty().append(this._generateHTML(inst));
        this._attachHandlers(inst);

Function _normalizeArguments has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function _normalizeArguments( effect, options, speed, callback ) {

    // allow passing all options as the first parameter
    if ( $.isPlainObject( effect ) ) {
        options = effect;

Function leftButtonStartDrag has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function leftButtonStartDrag(cm, event, pos, behavior) {
  var display = cm.display, moved = false
  var dragEnd = operation(cm, function (e) {
    if (webkit) { display.scroller.draggable = false }
    cm.state.draggingText = false

Function poll has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

TextareaInput.prototype.poll = function () {
    var this$1 = this;

  var cm = this.cm, input = this.textarea, prevInput = this.prevInput
  // Since this is called a *lot*, try to bail out as cheaply as

Function leftButtonStartDrag has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function leftButtonStartDrag(cm, event, pos, behavior) {
  var display = cm.display, moved = false
  var dragEnd = operation(cm, function (e) {
    if (webkit) { display.scroller.draggable = false }
    cm.state.draggingText = false
Severity
Category
Status
Source
Language