SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method createSpec has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static DataTableSpec createSpec() {

        int numKeys = Key.values().length;

        String[] names = new String[numKeys];

Method generateColorMap has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static LinkedHashMap<String, Object[]> generateColorMap(FskPortObject portObject,
      LinkedHashMap<String, Object[]> originalNamesMap, List<Parameter> topLevelJoinedModelParams, 
       AtomicInteger index, AtomicInteger generatedColorInt) {
    
    if (originalNamesMap == null) {

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

        @Override
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == okButton) {
                approved = true;
                selection = new ArrayList<>();

Function highlightWorker has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function highlightWorker(cm) {
    var doc = cm.doc;
    if (doc.highlightFrontier >= cm.display.viewTo) { return }
    var end = +new Date + cm.options.workTime;
    var context = getContextBefore(cm, doc.highlightFrontier);
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

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

        _create(name, mandatory, helperText) {

            // Create buttons with icons
            let addButton = document.createElement("button");
            addButton.type = "button";
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/bfr/fskutil_1.0.0.js - About 1 hr to fix

Function bind has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Search.prototype.bind = function (decorated, container, $container) {
    var self = this;

    decorated.call(this, container, $container);

Function gobbleBinaryExpression has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                gobbleBinaryExpression = function() {
                    var ch_i, node, biop, prec, stack, biop_info, left, right, i;

                    // First, try to get the leftmost thing
                    // Then, check to see if there's a binary operator operating on that leftmost thing
Severity: Minor
Found in de.bund.bfr.knime.pmm.nodes/js-lib/jsep/0_3_1/debug/js/jsep.js - About 1 hr to fix

Function linePoint has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function linePoint(λ, φ) {
      var p = d3_geo_cartesian([ λ * d3_radians, φ * d3_radians ]);
      if (p0) {
        var normal = d3_geo_cartesianCross(p0, p), equatorial = [ normal[1], -normal[0], 0 ], inflection = d3_geo_cartesianCross(equatorial, normal);
        d3_geo_cartesianNormalize(inflection);

Function d3_geo_pathContext has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_geo_pathContext(context) {
    var pointRadius = 4.5;
    var stream = {
      point: point,
      lineStart: function() {

Function drag has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    drag: function( event, ui, i  ) {

        var o = i.options,
            scrolled = false,
            scrollParent = i.scrollParentNotHidden[ 0 ],

Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _on: function( suppressDisabledCheck, element, handlers ) {
        var delegateElement,
            instance = this;

        // no suppressDisabledCheck flag, shuffle arguments

Function _createPlaceholder has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createPlaceholder: function(that) {
        that = that || this;
        var className,
            o = that.options;

Function prepareParameters has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function prepareParameters(parameterArray, modelId) 
        {
            // this will be returned containing the preprocessed parameters
            var newParameterArray = {};
            for(index in parameterArray){

Function _toggle has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _toggle: function( data ) {
        var toShow = data.newPanel,
            toHide = this.prevShow.length ? this.prevShow : data.oldPanel;

        // handle activating a panel during the animation for another activation

Function _drawButton has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _drawButton: function() {
        var that = this;

        // Associate existing label with the new button
        this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button );

Function highlightWorker has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function highlightWorker(cm) {
  var doc = cm.doc
  if (doc.highlightFrontier >= cm.display.viewTo) { return }
  var end = +new Date + cm.options.workTime
  var context = getContextBefore(cm, doc.highlightFrontier)

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

    _create(name, mandatory, helperText) {

      // Create buttons with icons
      let addButton = document.createElement("button");
      addButton.type = "button";

Function highlightWorker has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function highlightWorker(cm) {
  var doc = cm.doc
  if (doc.highlightFrontier >= cm.display.viewTo) { return }
  var end = +new Date + cm.options.workTime
  var context = getContextBefore(cm, doc.highlightFrontier)

Function createElementWithValidation has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createElementWithValidation(type, props, children) {
  var validType = isValidElementType(type);

  // We warn in this case but don't throw. We expect the element creation to
  // succeed and there will likely be errors in render.

Function prepareData has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function prepareData(_firstModel) {
        // prepare generalInformation
        try {
            if (_firstModel.generalInformation.creationDate === undefined) {
                _firstModel.generalInformation.creationDate = '';
Severity
Category
Status
Source
Language