SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function d3_selection_on has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_selection_on(type, listener, capture) {
    var name = "__on" + type, i = type.indexOf("."), wrap = d3_selection_onListener;
    if (i > 0) type = type.substring(0, i);
    var filter = d3_selection_onFilters.get(type);
    if (filter) type = filter, wrap = d3_selection_onFilter;

Function attr has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3_transitionPrototype.attr = function(nameNS, value) {
    if (arguments.length < 2) {
      for (value in nameNS) this.attr(value, nameNS[value]);
      return this;
    }

Function _destroy has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _destroy: function() {
        // Destroy (sub)menus
        this.element
            .removeAttr( "aria-activedescendant" )
            .find( ".ui-menu" ).addBack()

Function _mouseDrag has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _mouseDrag: function(event) {

        var data, props,
            smp = this.originalMousePosition,
            a = this.axis,

Function _create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _create: function() {
        var selectees,
            that = this;

        this.element.addClass("ui-selectable");

Function _createWidget has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createWidget: function( options, element ) {
        element = $( element || this.defaultElement || this )[ 0 ];
        this.element = $( element );
        this.uuid = widget_uuid++;
        this.eventNamespace = "." + this.widgetName + this.uuid;

Function diagonal has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.svg.diagonal = function() {
    var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection;
    function diagonal(d, i) {
      var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, {
        x: p0.x,

Function _initSource has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _initSource: function() {
        var array, url,
            that = this;
        if ( $.isArray( this.options.source ) ) {
            array = this.options.source;

Function _createOverlay has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createOverlay: function() {
        if ( !this.options.modal ) {
            return;
        }

Function values has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    values: function( index, newValue ) {
        var vals,
            newValues,
            i;

Function transfer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectTransfer = $.effects.effect.transfer = function( o, done ) {
    var elem = $( this ),
        target = $( o.to ),
        targetFixed = target.css( "position" ) === "fixed",
        body = $("body"),

Function save_model has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function save_model(modelNumber) {
        function create_measure_error_msg(measure_name) {
            return "Goodness of Fitness (" + measure_name + "): Not a number";
        }

Function highlight has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectHighlight = $.effects.effect.highlight = function( o, done ) {
    var elem = $( this ),
        props = [ "backgroundImage", "backgroundColor", "opacity" ],
        mode = $.effects.setMode( elem, o.mode || "show" ),
        animation = {

Function puff has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectPuff = $.effects.effect.puff = function( o, done ) {
    var elem = $( this ),
        mode = $.effects.setMode( elem, o.mode || "hide" ),
        hide = mode === "hide",
        percent = parseInt( o.percent, 10 ) || 150,

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

    _createPanels() {

      let schema = schemas.genericModel;

      return {

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

    _createPanels() {

      let schema = schemas.exposureModel;

      return {

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

    _createPanels() {

      let schema = schemas.genericModel;

      return {

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

    _createPanels() {

      let schema = schemas.qraModel;

      return {

Function validateChildKeys has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function validateChildKeys(node, parentType) {
  if (typeof node !== 'object') {
    return;
  }
  if (Array.isArray(node)) {

Function checkPosition has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Affix.prototype.checkPosition = function () {
    if (!this.$element.is(':visible')) return

    var height       = this.$element.height()
    var offset       = this.options.offset
Severity
Category
Status
Source
Language