SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

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

    // call hooks from the mime type
    if (hooks[ch]) {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/sql/sql.js - About 2 hrs to fix

Function create has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        create(id, title, formData, port) {

            // modal body
            let form = document.createElement("form");
            formData.forEach(prop => {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/bfr/fskutil_1.0.0.js - About 2 hrs to fix

Function onContextMenu has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  TextareaInput.prototype.onContextMenu = function (e) {
    var input = this, cm = input.cm, display = cm.display, te = input.textarea;
    if (input.contextMenuPending) { input.contextMenuPending(); }
    var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;
    if (!pos || presto) { return } // Opera is difficult.
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 2 hrs to fix

Function relayout has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function relayout() {
      var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
      chords = [];
      groups = [];
      k = 0, i = -1;

Function 5 has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./helper":5}],5:[function(require,module,exports){
function gcd(x, y) {
    while (y) {
        var temp = x;
        x = y;

Function bounce has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectBounce = $.effects.effect.bounce = function( o, done ) {
    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "height", "width" ],

        // defaults:

Function getType has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function getType(state) {
    var styles = [];

    if (state.formatting) {
      styles.push(tokenTypes.formatting);

Function create has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    create(id, title, formData) {

      // modal body
      let form = document.createElement("form");
      formData.forEach(prop => {

Function parse has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function parse(uriString) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    var components = {};
    var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;

File ParametersDef.java has 273 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

File SecondaryModelAndDataViewNodeDialog.java has 273 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

File ruby.js has 273 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ruby/ruby.js - About 2 hrs to fix

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

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        scrollPane2 = new JScrollPane();
        panel1 = new JPanel();
        button = new JButton();

Method getNewConc has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Double getNewConc(ValueAndUnit vau, PredictionValues pv, ParametersSetting ps, Double tempVal, Double phVal, Double awVal, Double presVal, double t, String timeUnit, Double lastConc, double stepWidth) {
        Double newVal = vau.getValue();
        boolean isPercent = false;

        PredictorViewNodeDialog pvnd = pv.getPvnd();

Method updateMatrixPanel has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void updateMatrixPanel() {
        List<String> items = new ArrayList<>();

        items.add(SettingsHelper.DO_NOT_USE);
        items.add(SettingsHelper.OTHER_PARAMETER);

Method updateAgentPanel has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void updateAgentPanel() {
        List<String> items = new ArrayList<>();

        items.add(SettingsHelper.DO_NOT_USE);
        items.add(SettingsHelper.OTHER_PARAMETER);

Method createBufferedDataTable has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public BufferedDataTable createBufferedDataTable(final ExecutionContext exec) {
        DataTableSpec spec = m_spec.createDataTableSpec();
        BufferedDataContainer container = exec.createDataContainer(spec);
        for (JSONDataTableRow row : m_rows) {
            DataCell[] dataCells = new DataCell[row.getData().length];

Method getValueAt has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public Object getValueAt(int row, int column) {
            switch (column) {
            case 0:
                return ids.get(row);

Method testLoadSettings has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testLoadSettings() {

        NodeSettings settings = new NodeSettings("identifier");
        settings.addString("SelectedIDs", XmlConverter.objectToXml(exampleSelectedIds));

Method testSaveSettings has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testSaveSettings() throws InvalidSettingsException {
        
        SettingsHelper helper = new SettingsHelper();
        helper.setSelectedIDs(exampleSelectedIds);
Severity
Category
Status
Source
Language