SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method testToXmlElement has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testToXmlElement() throws DataConversionException {

        Element element = new ParametricModel().toXmlElement();
        assertEquals("ParametricModel", element.getName());

Method createDataTable has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private DataTable createDataTable(ExpColumnList colList, List<DataPoint> dataPoints) {
        DataTable table = DataTable.Factory.newInstance();
        
        table.setColumnList(colList.columnList);

Function next has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var next = function(stream, context, state) {
    var token = new Token(null, context, false);
    var aChar = stream.next();

    if (aChar === '"') {

Function keywords has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var keywords = function(){
    // convenience functions used to build keywords object
    function kw(type) {return {type: type, style: "keyword"};}
    var operator = kw("operator")
      , atom = {type: "atom", style: "atom"}
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/xquery/xquery.js - About 1 hr to fix

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

  function tokenBase(stream, state) {
    var ch = stream.next();
    if (ch == '"' || ch == "'") {
      return startString(ch, stream, state);
    }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/groovy/groovy.js - About 1 hr to fix

Function indent has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      indent: function(state, textAfter, line) {

        var cx = state.context,
            ch = textAfter && textAfter.charAt(0),
            indent = cx.indent,
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/stylus/stylus.js - About 1 hr to fix

Function _createSimActions has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createSimActions() {
        let O = this;
        _log( 'panel SIM / _createSimActions' );

        // sim select actions
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 1 hr to fix

Function _getModelHandler has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async _getModelHandler(modelMetadata) {
        let O = this;
        _log('MODAL DETAILS / _getModelHandler');

        let modelHandler = null;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.editable.mt.details.js - About 1 hr to fix

Function _initTouchspin has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _initTouchspin ( container ) {
        let O = this;
        _log( 'UI / _initTouchspin' );

        let $elems = $( container ).length > 0 ? $( container ).find( 'input[data-touchspin]' ) : $( 'input[data-touchspin]' );
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.ui.js - About 1 hr to fix

Function pie has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.layout.pie = function() {
    var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = 2 * π;
    function pie(data) {
      var values = data.map(function(d, i) {
        return +value.call(pie, d, i);

Function d3_time_interval has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_time_interval(local, step, number) {
    function round(date) {
      var d0 = local(date), d1 = offset(d0, 1);
      return date - d0 < d1 - date ? d0 : d1;
    }

Function bridge has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.widget.bridge = function( name, object ) {
    var fullName = object.prototype.widgetFullName || name;
    $.fn[ name ] = function( options ) {
        var isMethodCall = typeof options === "string",
            args = widget_slice.call( arguments, 1 ),

Function _generatePosition has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _generatePosition: function(event) {

        var top, left,
            o = this.options,
            pageX = event.pageX,

Function _createWrapper has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createWrapper: function() {
        this.uiDialog = $("<div>")
            .addClass( "ui-dialog ui-widget ui-widget-content ui-corner-all ui-front " +
                this.options.dialogClass )
            .hide()

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

    _toggle: function( event, eventData ) {
        var that = this,
            toShow = eventData.newPanel,
            toHide = eventData.oldPanel;

Function fold has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectFold = $.effects.effect.fold = function( o, done ) {

    // Create element
    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "height", "width" ],

Function parse$$1 has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    parse: function parse$$1(components, options) {
        var mailtoComponents = components;
        var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
        mailtoComponents.path = undefined;
        if (mailtoComponents.query) {

Method retrieveContact has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        String x = row.getCell(L).getStringCellValue();
        x= row.getCell(AA).getStringCellValue();
        x= row.getCell(AE).getStringCellValue();

Method retrieveContact has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        String x = row.getCell(L).getStringCellValue();
        x= row.getCell(AA).getStringCellValue();
        x= row.getCell(AE).getStringCellValue();

Method retrieveContact has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellTypeEnum() == CellType.BLANK) {
            throw new IllegalArgumentException("Missing mail");
Severity
Category
Status
Source
Language