SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

    var tokenBase = function(stream/*, state*/) {
      var ch = stream.next();
      if (ch ==='"') {
        stream.match(/.*?"/);
        return "string";
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/cypher/cypher.js - About 1 hr to fix

Function base has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function base(stream, state) {
    if (stream.eatSpace()) {type = "ws"; return null;}
    if (stream.match(numLiteral)) return "number";
    var ch = stream.next();
    if (ch == "\\") ch = stream.next();

Function findFatArrow has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function findFatArrow(stream, state) {
    if (state.fatArrowAt) state.fatArrowAt = null;
    var arrow = stream.string.indexOf("=>", stream.start);
    if (arrow < 0) return;

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

    token: function(stream, state) {
      if (stream.sol()) {
        if (state.context && state.context.align == null) state.context.align = false;
        state.indent = stream.indentation();
      }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/sparql/sparql.js - About 1 hr to fix

Function createRe has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    createRe: function(name) {
      switch (name) {
      case "drawTable":
        return REs.makeRe("^", REs.single.drawTable, "$");
      case "html":

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

      token: function(stream, state) {
        var ctx = state.context;
        if (stream.sol()) {
          if (ctx.align == null) ctx.align = false;
          state.indented = stream.indentation();
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/asn.1/asn.1.js - About 1 hr to fix

Function _refresh has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async _refresh(index, modelMetadata ) {
        let O = this;
        let rowData = O._tableData[index];
        rowData.modelMetadata = modelMetadata;
        let modelName = O._getData( modelMetadata, 'generalInformation', 'name' );
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.table.mt.js - About 1 hr to fix

Function _initSelect2 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _initSelect2 ( container ) {
        let O = this;
        _log( 'UI / _initSelect2' );

        let $elems = $( container ).length > 0 ? $( container ).find( 'select[data-sel2]' ) : $( 'select[data-sel2]' );
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.ui.js - About 1 hr to fix

Function updateNavArrows has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        updateNavArrows: function(){
            if (!this._allow_update)
                return;

            var d = new Date(this.viewDate),
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 1 hr to fix

Function dateUpdated has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        dateUpdated: function(e){
            // `this.updating` is a workaround for preventing infinite recursion
            // between `changeDate` triggering and `setUTCDate` calling.  Until
            // there is a better mechanism.
            if (this.updating)
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 1 hr to fix

Function _createTableToolbar has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createTableToolbar() {
        let O = this;
        _log('TABLE / _createTableToolbar');

        if (O.opts.showToggle || O.opts.showColumns) {
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.table.js - About 1 hr to fix

Function circle has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.geo.circle = function() {
    var origin = [ 0, 0 ], angle, precision = 6, interpolate;
    function circle() {
      var center = typeof origin === "function" ? origin.apply(this, arguments) : origin, rotate = d3_geo_rotation(-center[0] * d3_radians, -center[1] * d3_radians, 0).invert, ring = [];
      interpolate(null, null, 1, {

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

      function token() {
        if (I >= N) return EOF;
        if (eol) return eol = false, EOL;
        var j = I;
        if (text.charCodeAt(j) === 34) {

Function destroy has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Select2.prototype.destroy = function () {
    this.$container.remove();

    if (this.$element[0].detachEvent) {
      this.$element[0].detachEvent('onpropertychange', this._syncA);

Function stop has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    stop: function( event ) {
        var that = $(this).resizable( "instance" ),
            o = that.options,
            pr = that._proportionallyResizeElements,
            ista = pr.length && (/textarea/i).test(pr[0].nodeName),

Function brush has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function brush(g) {
      g.each(function() {
        var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
        var background = g.selectAll(".background").data([ 0 ]);
        background.enter().append("rect").attr("class", "background").style("visibility", "hidden").style("cursor", "crosshair");

Function to has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

spaces.hsla.to = function( rgba ) {
    if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
        return [ null, null, null, rgba[ 3 ] ];
    }
    var r = rgba[ 0 ] / 255,

Function _determineButtonType has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _determineButtonType: function() {
        var ancestor, labelSelector, checked;

        if ( this.element.is("[type=checkbox]") ) {
            this.type = "checkbox";

Function _createButtons has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createButtons: function() {
        var that = this,
            buttons = this.options.buttons;

        // if we already have a button pane, remove it

Function add_constant_parameter has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function add_constant_parameter(param) {
        var condition_attribute = ' data-status="1" ';
        var class_attribute = ' class="col-sm-1 item-first some-remove" ';

        var editable = ' class="textEdit editable editable-click" '; 
Severity
Category
Status
Source
Language