SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method testConstructors has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConstructors() throws Exception {

        // test constructor with id, name, formula and model class
        final CatalogModelXml catalog0 = new CatalogModelXml(0, "name", "formula", 0);

Function token has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      token: function(stream, state) {
        if (stream.sol()) {
          state.indented = stream.indentation();
          state.startOfLine = true;
        }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/haml/haml.js - About 1 hr to fix

Function tokenStringFactory has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function tokenStringFactory(delimiter, tokenOuter) {
      while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0)
        delimiter = delimiter.substr(1);

      var singleline = delimiter.length == 1;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/python/python.js - About 1 hr to fix

Function atBlock has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    states.atBlock = function(type, stream, state) {
      if (type == "(") return pushContext(state, stream, "atBlock_parens");
      if (typeIsBlock(type, stream)) {
        return pushContext(state, stream, "block");
      }
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 constructor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    constructor ( settings, $container, metadata, uploadDates, executionTimes  ) {
        let O = this;
        O._metadata = metadata;
        O._uploadDates = uploadDates;
        O._executionTimes = executionTimes;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.landingpage.js - About 1 hr to fix

Function _createModelMetadataContent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createModelMetadataContent() {
        let O = this;
        _log( 'MODAL DETAILS / _createModelMetadataContent' );
        // modal nav with tabs & search
        O._$modalNav = $('<div class="modal-body modal-nav"></div>')
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.mt.details.js - About 1 hr to fix

Function _createPanels has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _createPanels() {

            let schema = fskui.riskModel;

            return {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/bfr/fskutil_1.0.0.js - About 1 hr to fix

Function _createPanels has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _createPanels(port) {

            let schema = fskui.qraModel;

            return {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/bfr/fskutil_1.0.0.js - About 1 hr to fix

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

  SelectAdapter.prototype.option = function (data) {
    var option;

    if (data.children) {
      option = document.createElement('optgroup');
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

Function getRowByUniqueId has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    BootstrapTable.prototype.getRowByUniqueId = function (id) {
        var uniqueId = this.options.uniqueId,
            len = this.options.data.length,
            dataRow = null,
            i, row, rowUniqueId;

Function _processTranslations has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Defaults.prototype._processTranslations = function (languages, debug) {
    var translations = new Translation();

    for (var l = 0; l < languages.length; l++) {
      var languageData = new Translation();
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

Function select has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  SelectAdapter.prototype.select = function (data) {
    var self = this;

    data.selected = true;

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

Function save has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        save: function(e, params) {
            //mark element with unsaved class if needed
            if(this.options.unsavedclass) {
                /*
                 Add unsaved css to element if:

Function apportion has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function apportion(node, previousSibling, ancestor) {
        if (previousSibling) {
          var vip = node, vop = node, vim = previousSibling, vom = node.parent.children[0], sip = vip._tree.mod, sop = vop._tree.mod, sim = vim._tree.mod, som = vom._tree.mod, shift;
          while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) {
            vom = d3_layout_treeLeft(vom);

Function position has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function position(row, u, rect, flush) {
      var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;
      if (u == rect.dx) {
        if (flush || v > rect.dy) v = rect.dy;
        while (++i < n) {

Function _syncSubtree has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Select2.prototype._syncSubtree = function (evt, mutations) {
    var changed = false;
    var self = this;

    // Ignore any mutation events raised for elements that aren't options or

Function d3_geo_centroidRingStart has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_geo_centroidRingStart() {
    var λ00, φ00, x0, y0, z0;
    d3_geo_centroid.point = function(λ, φ) {
      λ00 = λ, φ00 = φ;
      d3_geo_centroid.point = nextPoint;

Function gobbleToken has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                gobbleToken = function() {
                    var ch, to_check, tc_len;
                    
                    gobbleSpaces();
                    ch = exprICode(index);
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 gobbleExpression has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                gobbleExpression = function() {
                    var test = gobbleBinaryExpression(),
                        consequent, alternate;
                    gobbleSpaces();
                    if(exprICode(index) === QUMARK_CODE) {
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 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function linePoint(x, y) {
        x = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, x));
        y = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, y));
        var v = visible(x, y);
        if (polygon) ring.push([ x, y ]);
Severity
Category
Status
Source
Language