SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Consider simplifying this complex logical expression.
Open

    if (this.contextMenuPending || !cm.state.focused ||
        (hasSelection(input) && !prevInput && !this.composing) ||
        cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
      { return false }
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

    } else if ((((support.nCharCast && (ch == "n" || ch == "N"))
        || (support.charsetCast && ch == "_" && stream.match(/[a-z][a-z0-9]*/i)))
        && (stream.peek() == "'" || stream.peek() == '"'))) {
      // charset casting: _utf8'str', N'str', n'str'
      // ref: http://dev.mysql.com/doc/refman/5.5/en/string-literals.html
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/sql/sql.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

      if (context.line >= cm.display.viewFrom) { // Visible
        var oldStyles = line.styles;
        var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null;
        var highlighted = highlightLine(cm, line, context, true);
        if (resetState) { context.state = resetState; }
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

      if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
          (sp.to == null || sp.to != span.from) &&
          (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
          lineIsHiddenInner(doc, line, sp)) { return true }
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

    if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
        (sp.to == null || sp.to != span.from) &&
        (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
        lineIsHiddenInner(doc, line, sp)) { return true }
Severity: Critical
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

    if (context.line >= cm.display.viewFrom) { // Visible
      var oldStyles = line.styles
      var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null
      var highlighted = highlightLine(cm, line, context, true)
      if (resetState) { context.state = resetState }
Severity: Critical
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

  if (this.contextMenuPending || !cm.state.focused ||
      (hasSelection(input) && !prevInput && !this.composing) ||
      cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
    { return false }
Severity: Critical
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

  if (this.contextMenuPending || !cm.state.focused ||
      (hasSelection(input) && !prevInput && !this.composing) ||
      cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
    { return false }

Consider simplifying this complex logical expression.
Open

    if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
        (sp.to == null || sp.to != span.from) &&
        (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
        lineIsHiddenInner(doc, line, sp)) { return true }

Consider simplifying this complex logical expression.
Open

    if (context.line >= cm.display.viewFrom) { // Visible
      var oldStyles = line.styles
      var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null
      var highlighted = highlightLine(cm, line, context, true)
      if (resetState) { context.state = resetState }

Consider simplifying this complex logical expression.
Open

      if ((value < other && !valIsNull) || !othIsReflexive ||
          (othIsNull && !valIsUndef && valIsReflexive) ||
          (othIsUndef && valIsReflexive)) {
        return -1;
      }

Consider simplifying this complex logical expression.
Open

      if ((value > other && !othIsNull) || !valIsReflexive ||
          (valIsNull && !othIsUndef && othIsReflexive) ||
          (valIsUndef && othIsReflexive)) {
        return 1;
      }

Method parseString has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void parseString(final XYSeries series, final String function, final String interval, final Double mini, final Double maxi, final double stepi) {        
        Function func = getFunction(function);
        
        Double min = null, max = null;
        double step = 1;

Method loadWorkflowManager2 has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void loadWorkflowManager2(final Connection conn, final int pcId)
            throws Exception {

        String projectName = "PC_" + System.currentTimeMillis();
        Object pn = DBKernel.getValue("ProzessWorkflow", "ID", pcId+"", "Name");

Method eUnset has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case MetadataPackage.STUDY_SAMPLE__SAMPLE_NAME:
                setSampleName(SAMPLE_NAME_EDEFAULT);

Method eSet has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case MetadataPackage.STUDY_SAMPLE__SAMPLE_NAME:
                setSampleName((String)newValue);

Method finalizePM has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private ParametricModel finalizePM(int lastSelIndex) {
        ParametricModel pm = table.getPM();
        if (table.hasChanged()) {
            if (pm != null && pm.modelName.equals(modelnameField.getText())) {
                modelnameField.setText(getNewModelname(pm));

Method saveSettings has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void saveSettings(NodeSettingsWO settings) {
        settings.addString(CFG_SELECTEDID, selectedID);
        settings.addString(CFG_CURRENTPARAMX, currentParamX);
        settings.addString(CFG_PARAMXVALUES,
                XmlConverter.objectToXml(paramXValues));

Method parse has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private static TwoStepSecondaryModel parse(List<KnimeTuple> tuples, boolean isPMFX, int modelNum, String mdName,
                Metadata metadata, String notes) {
            /**
             * <ol>
             * <li>Create n SBMLDocument for primary models</li>

Method write has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void write(List<KnimeTuple> tuples, boolean isPMFX, String dir, String mdName, Metadata metadata,
            boolean splitModels, String notes, ExecutionContext exec, ModelType modelType) throws Exception {

        Parser parser;
Severity
Category
Status
Source
Language