SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function option has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Results.prototype.option = function (data) {
    var option = document.createElement('li');
    option.className = 'select2-results__option';

    var attrs = {
Severity: Major
Found in de.bund.bfr.knime.pmm.nodes/js-lib/select2/4_0_3/debug/js/select2.js - About 2 hrs to fix

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

  d3.behavior.drag = function() {
    var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, "mousemove", "mouseup"), touchstart = dragstart(touchid, touchposition, "touchmove", "touchend");
    function drag() {
      this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart);
    }

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

    function bind(group, groupData) {
      var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData;
      if (key) {
        var nodeByKeyValue = new d3_Map(), dataByKeyValue = new d3_Map(), keyValues = [], keyValue;
        for (i = -1; ++i < n; ) {

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

        _buildEvents: function(){
            if (this.isInput) { // single input
                this._events = [
                    [this.element, {
                        focus: $.proxy(this.show, this),

Function _animate has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _animate: function( toShow, toHide, data ) {
        var total, easing, duration,
            that = this,
            adjust = 0,
            boxSizing = toShow.css( "box-sizing" ),

Function start has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    start: function() {
        var element, p, co, ch, cw, width, height,
            that = $( this ).resizable( "instance" ),
            o = that.options,
            el = that.element,

Function blind has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectBlind = $.effects.effect.blind = function( o, done ) {
    // Create element
    var el = $( this ),
        rvertical = /up|down|vertical/,
        rpositivemotion = /up|left|vertical|horizontal/,

Function CodeMirror has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function CodeMirror(place, options) {
  var this$1 = this;

  if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }

Function CodeMirror has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function CodeMirror(place, options) {
  var this$1 = this;

  if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }

Function generate_const has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

Function Datepicker has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var Datepicker = function(element, options){
        $(element).data('datepicker', this);
        this._process_options(options);

        this.dates = new DateArray();

Function _fill_yearsView has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _fill_yearsView: function(selector, cssClass, factor, step, currentYear, startYear, endYear, callback){
            var html, view, year, steps, startStep, endStep, thisYear, i, classes, tooltip, before;

            html      = '';
            view      = this.picker.find(selector);

Function iterateAndExtend has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function iterateAndExtend(reference, model1, model2, model3, model4,vocabularyReferencekey) {
    for (var property in reference) {
        let holderModel = model1[property]?model1:(model2[property]?model2:(model3[property]?model3:model4[property]));
        
        if (holderModel && holderModel[property]) {

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

    @Override
    protected BufferedDataTable[] execute(final BufferedDataTable[] inData,
            final ExecutionContext exec) throws Exception {
        
        Bfrdb db = null;

Method setValue has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void setValue(Object o, String fieldName, Object oldValue, Object newValue) {
        // todo: checken, ob "oldValue = oldValue"?
        try {
            if (fieldName.indexOf("#") >= 0) { // z.B. '#parameter#elementSet/2'
                String fn = fieldName.substring(0, fieldName.indexOf("#"));// "parameter"

Method loadSettingsFrom has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected void loadSettingsFrom( NodeSettingsRO settings, PortObjectSpec[] specs )  {    
        buildGui();
        try {    
            /*
            if (settings.containsKey("DbConfigurationUi")) dbui.setSettings(settings.getConfig("DbConfigurationUi"));

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

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

Method setValue has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void setValue(Object value) {
        String sql = "";
        String result = "";
        if (value == null) {
            this.setText("");

Method getDKValuePlausible has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static void getDKValuePlausible(MyTable myT, Vector<String[]> result, String idConf) {
          MyTable[] foreignFields = myT.getForeignFields();
          if (foreignFields != null) {
              for (int i=0;i<foreignFields.length;i++) {
                if (foreignFields[i] != null && foreignFields[i].getTablename().equals("DoubleKennzahlen")) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java - About 2 hrs to fix

Method getViewRepresentation has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  public JoinerViewRepresentation getViewRepresentation() {

    JoinerViewRepresentation representation;

Severity
Category
Status
Source
Language