SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method retrieveGeneralInformation has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private DataModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {

        DataModelGeneralInformation information = new DataModelGeneralInformation();

        Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(J);

Method itemStateChanged has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void itemStateChanged(ItemEvent e) {
        if (e.getStateChange() != ItemEvent.SELECTED) {
            return;
        }

Method execute has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec)
            throws Exception {
        DataTable table = (DataTable) inObjects[0];
        TableReader reader;

Method initComponents has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        dialogPane = new JPanel();
        contentPanel = new JPanel();
        radioButton1 = new JRadioButton();
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/PlausibleDialog.java - About 2 hrs to fix

Method actionPerformed has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void actionPerformed(final ActionEvent e) {
          final PlausibleDialog pd = new PlausibleDialog(DBKernel.mainFrame); 
          final PlausibleDialog4Krise pd4 = new PlausibleDialog4Krise(DBKernel.mainFrame); 
          if (DBKernel.isKrise) pd4.setVisible(true);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/actions/PlausibleAction.java - About 2 hrs to fix

Method execute has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected BufferedDataTable[] execute(BufferedDataTable[] inData, ExecutionContext exec) throws Exception {

        KnimeSchema schema = null;
        ModelType modelType = null;

Method initComponents has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY
        // //GEN-BEGIN:initComponents
        myChartPanel1 = new MyChartPanel();
        scrollPane1 = new JScrollPane();

Method run has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void run() {

        try {
            initDatabase();

Function graticule has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.geo.graticule = function() {
    var x1, x0, X1, X0, y1, y0, Y1, Y0, dx = 10, dy = dx, DX = 90, DY = 360, x, y, X, Y, precision = 2.5;
    function graticule() {
      return {
        type: "MultiLineString",

Function d3_xhr has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_xhr(url, mimeType, response, callback) {
    var xhr = {}, dispatch = d3.dispatch("beforesend", "progress", "load", "error"), headers = {}, request = new XMLHttpRequest(), responseType = null;
    if (d3_window.XDomainRequest && !("withCredentials" in request) && /^(http(s)?:)?\/\//.test(url)) request = new XDomainRequest();
    "onload" in request ? request.onload = request.onerror = respond : request.onreadystatechange = function() {
      request.readyState > 3 && respond();

Function save_parameters has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function save_parameters(model_number) {
        var model = models[model_number];
        model.indeps.indeps = Array();  // independent parameters
        model.params.params = Array();  // constant parameters

Function generate__limitItems has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function generate__limitItems(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];

Function 31 has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],31:[function(require,module,exports){
'use strict';
module.exports = function generate_pattern(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;

Function generate_multipleOf has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function generate_multipleOf(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];

Function generate__limitProperties has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function generate__limitProperties(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];

Function _buildEvents has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _buildEvents: function(){
            var events = {
                keyup: $.proxy(function(e){
                    if ($.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1)
                        this.update();

File RunnerNodeModel.java has 286 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 ***************************************************************************************************
 * Copyright (c) 2017 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 FoodProcessNodeDialog.java has 285 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 convertPopulationGroup has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static PopulationGroup convertPopulationGroup(JsonNode node) {

        PopulationGroup group = new PopulationGroup();

        if (node.has("populationName")) {

File PublicationType.java has 285 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 */
package metadata;

import java.util.Arrays;
Severity
Category
Status
Source
Language