SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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,

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

    function create_accordion() {
        var accordion = '';

        for (var numModel = 0; numModel < models.length; numModel++) {

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

    refresh: function() {
        //See #8237 & #8828
        var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );

        if ( isDisabled !== this.options.disabled ) {

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

    _setupHeightStyle: function( heightStyle ) {
        var maxHeight,
            parent = this.element.parent();

        if ( heightStyle === "fill" ) {

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

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

function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {
  var line = getLine(doc, pos.line)
  if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {
    var sp = line.markedSpans[i], m = sp.marker
    if ((sp.from == null || (m.inclusiveLeft ? sp.from <= pos.ch : sp.from < pos.ch)) &&

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

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
Category
Status
Source
Language