SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method testConvertPopulationGroup has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConvertPopulationGroup() {

        PopulationGroup populationGroup;
        {

Method testAssay has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void testAssay() throws IOException, EncryptedDocumentException, InvalidFormatException {

        final Workbook workbook = WorkbookFactory.create(new File("files/QMRA_Listeria.xlsx"));
        final Sheet sheet0 = workbook.getSheetAt(0);
        final String[][] values = readSpreadsheetToMatrix(sheet0);

Method createPanel has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @SuppressWarnings("unchecked")
    private Component createPanel() {
        JPanel p = new JPanel(new GridBagLayout());
        GridBagConstraints c = new GridBagConstraints();
        c.fill = GridBagConstraints.BOTH;

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

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

    // Have we found a variable?
    if (ch === '$') {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/cmake/cmake.js - About 1 hr to fix

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

  states.top = function(type, stream, state) {
    if (type == "{") {
      return pushContext(state, stream, "block");
    } else if (type == "}" && state.context.prev) {
      return popContext(state);
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/css/css.js - About 1 hr to fix

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

  function tokenBase(stream, state) {
    // whitespaces
    if (stream.eatSpace()) return null;

    // Handle one line Comments
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js - About 1 hr to fix

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

    function tokenHereDoc(phrase, embed) {
      return function (stream, state) {
        if (stream.sol()) {
          stream.eatSpace()
          if (stream.match(phrase)) {

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

      addWidget: function(pos, node, scroll, vert, horiz) {
        var display = this.display;
        pos = cursorCoords(this, clipPos(this.doc, pos));
        var top = pos.bottom, left = pos.left;
        node.style.position = "absolute";
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 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _create(title, dialog, formData) {

            // Add button
            let addButton = document.createElement("button");
            addButton.classList.add("btn", "btn-primary");
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/bfr/fskutil_1.0.0.js - About 1 hr to fix

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

        edit(index, originalData, dialog) {
            let O = this;
            let keys = [];
            $.each(O.panelTable.opts.cols,function(index,key){
                keys.push(key.field);
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.editable.mt.TablePanel.js - About 1 hr to fix

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

            Object.keys = (function() {
                var hasOwnProperty = Object.prototype.hasOwnProperty,
                    hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'),
                    dontEnums = [
                        'toString',

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

  AllowClear.prototype._handleClear = function (_, evt) {
    // Ignore the event if it is disabled
    if (this.isDisabled()) {
      return;
    }
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

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

  Tokenizer.prototype.tokenizer = function (_, params, options, callback) {
    var separators = options.get('tokenSeparators') || [];
    var term = params.term;
    var i = 0;

Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

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

    zoom.event = function(g) {
      g.each(function() {
        var event_ = event.of(this, arguments), view1 = view;
        if (d3_transitionInheritId) {
          d3.select(this).transition().each("start.zoom", function() {

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

  Tokenizer.prototype.tokenizer = function (_, params, options, callback) {
    var separators = options.get('tokenSeparators') || [];
    var term = params.term;
    var i = 0;

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

    function dragstart(id, position, move, end) {
      return function() {
        var target = this, parent = target.parentNode, event_ = event.of(target, arguments), eventTarget = d3.event.target, eventId = id(), drag = eventId == null ? "drag" : "drag-" + eventId, origin_ = position(parent, eventId), dragged = 0, offset, w = d3.select(d3_window).on(move + "." + drag, moved).on(end + "." + drag, ended), dragRestore = d3_event_dragSuppress();
        if (origin) {
          offset = origin.apply(target, arguments);

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

        updateNavArrows: function() {
            if (!this._allow_update) return;

            var d = new Date(this.viewDate),
                year = d.getUTCFullYear(),

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

  Select2.prototype._resolveWidth = function ($element, method) {
    var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;

    if (method == 'resolve') {
      var styleWidth = this._resolveWidth($element, 'style');

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

  d3.svg.arc = function() {
    var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
    function arc() {
      var r0 = innerRadius.apply(this, arguments), r1 = outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) + d3_svg_arcOffset, a1 = endAngle.apply(this, arguments) + d3_svg_arcOffset, da = (a1 < a0 && (da = a0, 
      a0 = a1, a1 = da), a1 - a0), df = da < π ? "0" : "1", c0 = Math.cos(a0), s0 = Math.sin(a0), c1 = Math.cos(a1), s1 = Math.sin(a1);

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

        left: function( position, data ) {
            var within = data.within,
                withinOffset = within.offset.left + within.scrollLeft,
                outerWidth = within.width,
                offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
Severity
Category
Status
Source
Language