SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

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 create_body has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function create_body ()
    {
        document.createElement("body");
        $("body").html('<div class="container"></div>');
        $(".container").append(

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 getJsonPointer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getJsonPointer(parsedRef, baseId, schema, root) {
  /* jshint validthis: true */
  parsedRef.fragment = parsedRef.fragment || '';
  if (parsedRef.fragment.slice(0,1) != '/') return;
  var parts = parsedRef.fragment.split('/');

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

    navigate: function(fragment, options) {
      if (!History.started) return false;
      if (!options || options === true) options = {trigger: !!options};

      // Normalize the fragment.

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

    function equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {
      var index = -1,
          arrLength = array.length,
          othLength = other.length;

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

  function resolve(mainSchema, key,modeTypeKey, currentSchemaElement, resolvedValue){
    
    if(currentSchemaElement.hasOwnProperty('$ref') ){
        let schemaKey = currentSchemaElement['$ref'].replace('#/definitions/','');
        resolvedKey = schemaKey.charAt(0).toUpperCase() + schemaKey.slice(1);

Method createDataset has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private XYDataset createDataset(final Double mini, final Double maxi, final double step) {
        series2.clear();
        newStrDataSet = "";
        for (int i=0;i<table1.getModel().getRowCount();i++) {
            Object o1 = table1.getModel().getValueAt(i, 0);

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellType() == Cell.CELL_TYPE_NUMERIC) {

Method retrieveDietaryAssessmentMethod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public DietaryAssessmentMethod retrieveDietaryAssessmentMethod(Row row) {

        // Check first mandatory properties
        if (row.getCell(L).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing methodological tool to collect data");

Method createPCMLSpec has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private PCMLPortObjectSpec createPCMLSpec(final int outIndex, PCMLPortObjectSpec instantMix, final FoodProcessSetting fps,
            Map<Agent, ValueAndUnit> lastAgentsQ) {
        OutPortSetting[] ops = fps.getOutPortSetting();
        // erst einmal erhalten alle OutPorts denselben Mix - im Nachgang für jeden OutPORT INDIVIDUELL MACHEN, "Expert mode"
        

Method retrieveDietaryAssessmentMethod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public DietaryAssessmentMethod retrieveDietaryAssessmentMethod(Row row) {

        // Check first mandatory properties
        if (row.getCell(L).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing methodological tool to collect data");

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellType() == Cell.CELL_TYPE_NUMERIC) {
Severity
Category
Status
Source
Language