SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

    function tokenBase (stream, state) {
      var ch = stream.peek();

      //Comment
      if (state.incomment) {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/jinja2/jinja2.js - About 3 hrs to fix

Function tokenize has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function tokenize(stream, state) {
    // Matches one whole word
    var word = stream.match(/[\w]+/, false);
    // Matches attributes (i.e. ensure => present ; 'ensure' would be matched)
    var attribute = stream.match(/(\s+)?\w+\s+=>.*/, false);
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/puppet/puppet.js - About 3 hrs to fix

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

    function tokenBase (stream, state) {
      var ch = stream.peek();

      //Comment
      if (state.incomment) {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/twig/twig.js - About 3 hrs to fix

File FSKDBViewNodeModel.java has 308 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 ***************************************************************************************************
 * Copyright (c) 2020 Federal Institute for Risk Assessment (BfR), Germany
 *
 * This program is free software: you can redistribute it and/or modify it under the terms of the

File PopulationGroup.java has 307 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4

File ModelEstimationNodeModel.java has 307 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*******************************************************************************
 * Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by

Method loadValidatedSettingsFrom has 84 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected void loadValidatedSettingsFrom( final NodeSettingsRO settings )
            throws InvalidSettingsException {
        // OneStepFitTss
        if (settings.containsKey(PARAM_TSONESTEP)) {

Function d3_geo_clipPolygon has 84 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_geo_clipPolygon(segments, compare, inside, interpolate, listener) {
    var subject = [], clip = [];
    segments.forEach(function(segment) {
      if ((n = segment.length - 1) <= 0) return;
      var n, p0 = segment[0], p1 = segment[n];

Function _doKeyDown has 84 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _doKeyDown: function(event) {
        var onSelect, dateStr, sel,
            inst = $.datepicker._getInst(event.target),
            handled = true,
            isRTL = inst.dpDiv.is(".ui-datepicker-rtl");

File SecondaryEstimationThread.java has 306 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*******************************************************************************
 * Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by

Reference has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

public interface Reference extends EObject {
    /**
     * Returns the value of the '<em><b>Is Reference Description</b></em>' attribute.
     * <!-- begin-user-doc -->
     * <p>
Severity: Minor
Found in de.bund.bfr.knime.fsklab.metadata.model/gen/metadata/Reference.java - About 3 hrs to fix

Contact has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

public interface Contact extends EObject {
    /**
     * Returns the value of the '<em><b>Title</b></em>' attribute.
     * <!-- begin-user-doc -->
     * <p>
Severity: Minor
Found in de.bund.bfr.knime.fsklab.metadata.model/gen/metadata/Contact.java - About 3 hrs to fix

ProductImpl has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

public class ProductImpl extends MinimalEObjectImpl.Container implements Product {
    /**
     * The default value of the '{@link #getProductName() <em>Product Name</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->

Hazard has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

public interface Hazard extends EObject {
    /**
     * Returns the value of the '<em><b>Hazard Type</b></em>' attribute.
     * <!-- begin-user-doc -->
     * <p>
Severity: Minor
Found in de.bund.bfr.knime.fsklab.metadata.model/gen/metadata/Hazard.java - About 3 hrs to fix

ModelPlotterViewValue has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

@JsonAutoDetect
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
public class ModelPlotterViewValue extends JSONViewContent {
    
    private String chartTitle;

Consider simplifying this complex logical expression.
Open

            if (id1 < 0 && id2 < 0 &&
                    !tn.equals("ChangeLog") && !tn.equals("DateiSpeicher") && !tn.equals("Users") &&
                    !tn.equals("Matrices") && !tn.equals("Methoden") && !tn.equals("Tierkrankheiten") &&
                    !tn.equals("Aufbereitungsverfahren_Kits") && !tn.equals("Nachweisverfahren_Kits") &&
                    !tn.equals("Methoden_Normen") && !tn.equals("DoubleKennzahlen") &&
Severity: Critical
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/actions/PlausibleAction.java - About 3 hrs to fix

FSKDBViewRepresentation has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

@JsonAutoDetect
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
public class FSKDBViewRepresentation extends JSONViewContent {

  private static final String TABLE_ID = "tableid";

FSKDBViewNodeModel has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

public class FSKDBViewNodeModel
    extends AbstractWizardNodeModel<FSKDBViewRepresentation, FSKDBViewValue> {
  // Input and output port types
  private static final PortType[] IN_TYPES = {BufferedDataTable.TYPE_OPTIONAL};
  private static final PortType[] OUT_TYPES = {BufferedDataTable.TYPE};

Method retrieveParameter has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Parameter retrieveParameter(Row row) {

        // Check first mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing parameter id");

Method retrieveParameter has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Parameter retrieveParameter(Row row) {

        // Check first mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing parameter id");
Severity
Category
Status
Source
Language