SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

  function tokenBase(stream, state) {
    var ch = stream.next();
    if (ch == "#" && state.startOfLine) {
      stream.skipToEnd();
      return "meta";
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/pascal/pascal.js - About 1 hr to fix

Function updateLineGutter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function updateLineGutter(cm, lineView, lineN, dims) {
    if (lineView.gutter) {
      lineView.node.removeChild(lineView.gutter);
      lineView.gutter = null;
    }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function onCopyCut has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function onCopyCut(e) {
      if (signalDOMEvent(cm, e)) { return }
      if (cm.somethingSelected()) {
        setLastCopied({lineWise: false, text: cm.getSelections()});
        if (e.type == "cut") { cm.replaceSelection("", null, "cut"); }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function objectKeys has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var objectKeys = function () {
        // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
        if (!Object.keys) {
            Object.keys = (function() {
                var hasOwnProperty = Object.prototype.hasOwnProperty,

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

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

    MultipleSelection.__super__.bind.apply(this, arguments);

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

Function _resolveWidth has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Select2.prototype._resolveWidth = function ($element, method) {
    var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;

    if (method == 'resolve') {
      var styleWidth = this._resolveWidth($element, 'style');
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

Function resetView has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    BootstrapTable.prototype.resetView = function (params) {
        var padding = 0;

        if (params && params.height) {
            this.options.height = params.height;

Function createInput has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

       createInput: function(options) {
           var TypeConstructor, typeOptions, input,
           type = options.type;

           //`date` is some kind of virtual type that is transformed to one of exact types

Function partition has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.layout.partition = function() {
    var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
    function position(node, x, dx, dy) {
      var children = node.children;
      node.x = x;

Function _mouseCapture has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _mouseCapture: function(event, overrideHandle) {
        var currentItem = null,
            validHandle = false,
            that = this;

Function cancel has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    cancel: function() {

        if(this.dragging) {

            this._mouseUp({ target: null });

Function _mouseStart has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _mouseStart: function(event) {

        var o = this.options;

        //Create and append the visible helper

Function _hideDatepicker has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _hideDatepicker: function(input) {
        var showAnim, duration, postProcess, onClose,
            inst = this._curInst;

        if (!inst || (input && inst !== $.data(input, "datepicker"))) {

Function _dialogDatepicker has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _dialogDatepicker: function(input, date, onSelect, settings, pos) {
        var id, browserWidth, browserHeight, scrollX, scrollY,
            inst = this._dialogInst; // internal instance

        if (!inst) {

Function pulsate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectPulsate = $.effects.effect.pulsate = function( o, done ) {
    var elem = $( this ),
        mode = $.effects.setMode( elem, o.mode || "show" ),
        show = mode === "show",
        hide = mode === "hide",

Function effect has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    effect: function( /* effect, options, speed, callback */ ) {
        var args = _normalizeArguments.apply( this, arguments ),
            mode = args.mode,
            queue = args.queue,
            effectMethod = $.effects.effect[ args.effect ];

Function _resetButton has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _resetButton: function() {
        if ( this.type === "input" ) {
            if ( this.options.label ) {
                this.element.val( this.options.label );
            }

Function _createTitlebar has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createTitlebar: function() {
        var uiDialogTitle;

        this.uiDialogTitlebar = $( "<div>" )
            .addClass( "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" )

Function slide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectSlide = $.effects.effect.slide = function( o, done ) {

    // Create element
    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "width", "height" ],

Function updateLineGutter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function updateLineGutter(cm, lineView, lineN, dims) {
  if (lineView.gutter) {
    lineView.node.removeChild(lineView.gutter)
    lineView.gutter = null
  }
Severity
Category
Status
Source
Language