SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method setTable has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      @SuppressWarnings("unchecked")
    private void setTable(final MyTable myT) {
        if (myT != null) {
            root = new DefaultMutableTreeNode(new MyDBTreeNode(0, "", "Codes", false, -1));            
        // Erst die Codetypen
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtree/MyDBTreeModel.java - About 1 hr to fix

Method initComponents has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void initComponents() {
          // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
          // Generated using JFormDesigner Evaluation license
          dialogPane = new JPanel();
          contentPane = new JPanel();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/InfoBox.java - About 1 hr to fix

Method getPrimModelById has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public KnimeTuple getPrimModelById(int id) throws SQLException {
        KnimeTuple tuple = null;
        PreparedStatement stat = conn.prepareStatement(queryModelView + " WHERE \"" + ATT_LEVEL + "\"=1 AND \"Modellkatalog\".\"ID\"=?");
        try {
            stat.setInt(1, id);

Method performExecute has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec)
      throws Exception {
    PortObject inPort = inObjects[0];
    PortObject outputPort = null;

Method toXmlElement has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public Element toXmlElement() {
        Element modelElement = new Element(ELEMENT_PARAMETRICMODEL);
        modelElement.setAttribute(ATT_MDBUUID, modelDbUuid == null ? "" : modelDbUuid);
        modelElement.setAttribute(ATT_EMDBUUID, estimatedModelDbUuid == null ? "" : estimatedModelDbUuid);

Method clone has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public ParametricModel clone() {
        ParametricModel clonedPM = new ParametricModel(modelName, formula, depXml, level, modelId, estModelId);
        clonedPM.modelClass = modelClass;
        clonedPM.modelDbUuid = modelDbUuid;
        clonedPM.estimatedModelDbUuid = estimatedModelDbUuid;

Method convertArrays2ParamXmlDoc has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static PmmXmlDoc convertArrays2ParamXmlDoc(LinkedHashMap<String, String> varMap, Array name,
            Array value, Array timeUnit, Array categories, Array units, Array error, Array min, Array max, Array desc, Array paramType, Array P, Array t, Integer modelId, Integer emid) {
        PmmXmlDoc paramDoc = new PmmXmlDoc();
        if (name != null) {
            try {

Method testProduct has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testProduct() throws Exception {

        // Test product at row 39
        {

Method importCells has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static final void importCells(final REXP rexp, final DataCell[] column,
      final boolean nonNumbersAsMissing) throws REXPMismatchException {
    if (rexp.isLogical()) {
      final byte[] bytes = rexp.asBytes();
      for (int i = 0; i < bytes.length; ++i) {

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

    indent: function(state, textAfter, fullLine) {
      var context = state.context;
      // Indent multi-line strings (e.g. css).
      if (state.tokenize.isInAttribute) {
        if (state.tagStart == state.indented)
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/xml/xml.js - About 1 hr to fix

Function updateDoc has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function updateDoc(doc, change, markedSpans, estimateHeight$$1) {
    function spansFor(n) {return markedSpans ? markedSpans[n] : null}
    function update(line, text, spans) {
      updateLine(line, text, spans, estimateHeight$$1);
      signalLater(line, "change", line, change);
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function add has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        add(data) {

            // Add new row (Order is fixed by formData)
            let newRow = document.createElement("tr");

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

Function query has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Tags.prototype.query = function (decorated, params, callback) {
    var self = this;

    this._removeOldTags();

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

Function query has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Tags.prototype.query = function (decorated, params, callback) {
    var self = this;

    this._removeOldTags();

Function shake has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectShake = $.effects.effect.shake = function( o, done ) {

    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
        mode = $.effects.setMode( el, o.mode || "effect" ),

Function updateDoc has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function updateDoc(doc, change, markedSpans, estimateHeight) {
  function spansFor(n) {return markedSpans ? markedSpans[n] : null}
  function update(line, text, spans) {
    updateLine(line, text, spans, estimateHeight)
    signalLater(line, "change", line, change)

Function add has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    add(data) {

      // Add new row (Order is fixed by formData)
      let newRow = document.createElement("tr");

Function updateDoc has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function updateDoc(doc, change, markedSpans, estimateHeight) {
  function spansFor(n) {return markedSpans ? markedSpans[n] : null}
  function update(line, text, spans) {
    updateLine(line, text, spans, estimateHeight)
    signalLater(line, "change", line, change)

Function 16 has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],16:[function(require,module,exports){
'use strict';
module.exports = function generate_allOf(it, $keyword, $ruleType) {
  var out = ' ';
  var $schema = it.schema[$keyword];

Consider simplifying this complex logical expression.
Open

        if (tableName.equals("Modellkatalog") || tableName.equals("ModellkatalogParameter") || tableName.equals("Modell_Referenz") || tableName.equals("GeschaetzteModelle")
                || tableName.equals("GeschaetztesModell_Referenz") || tableName.equals("GeschaetzteParameter") || tableName.equals("GeschaetzteParameterCovCor")
                || tableName.equals("Sekundaermodelle_Primaermodelle") || tableName.equals("GueltigkeitsBereiche")) odsn = false;
Severity: Critical
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyTable.java - About 1 hr to fix
Severity
Category
Status
Source
Language