SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Avoid deeply nested control flow statements.
Open

                          if (newViewDate)
                              this._trigger('changeMonth', this.viewDate);

Function preapareParametersForReorder has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function preapareParametersForReorder(oldModelName, newMmodelName, newParams, newSuffix, oldParams, oldSuffix) {

Function iterateAndExtend has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function iterateAndExtend(reference, model1, model2, model3, model4,vocabularyReferencekey) {

Avoid deeply nested control flow statements.
Open

                    if(firtModelSimulationInfo['name'] !='defaultSimulation' || secondModelSimulationInfo['name'] !='defaultSimulation' ||  thirdModelSimulationInfo['name'] !='defaultSimulation' ){
                        simulationSenarioName = firtModelSimulationInfo['name']+'_'+ secondModelSimulationInfo['name']+'_'+ thirdModelSimulationInfo['name']
                    } 

Function validateConnection has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

      validateConnection: function (cellViewS, magnetS, cellViewT, magnetT, end, linkView) {

Avoid deeply nested control flow statements.
Open

                        if(firtModelSimulationInfo['name'] !='defaultSimulation' || secondModelSimulationInfo['name'] !='defaultSimulation' ||  thirdModelSimulationInfo['name'] !='defaultSimulation' || fourthModelSimulationInfo['name'] !='defaultSimulation'){
                            simulationSenarioName = firtModelSimulationInfo['name']+'_'+ secondModelSimulationInfo['name']+'_'+ thirdModelSimulationInfo['name']+'_'+ fourthModelSimulationInfo['name']
                        } 

Consider simplifying this complex logical expression.
Open

                if (o != null && o.length > 0) {
                    for (int i = 0; i < o.length; i++) {
                        pm.addIndepVar(o[i].toString(), mi == null || mi[i] == null ? null : Double.parseDouble(mi[i].toString()),
                                ma == null || ma[i] == null ? null : Double.parseDouble(ma[i].toString()), c == null || c[i] == null ? null : c[i].toString(), u == null
                                        || u[i] == null ? null : u[i].toString(), d[i] == null ? null : d[i].toString());

Consider simplifying this complex logical expression.
Open

             if (cols2Search == null || cols2Search.size() == 0 || cols2Search.contains(col)) {
                 boolean isMN = (col > 0 && mnTable != null && mnTable.length > col-1 && mnTable[col-1] != null);
                     if (myDBTable1.getColumn(col).getType() != java.sql.Types.BOOLEAN && !isMN) {
                         Object o = tm.getValueAt(row, col+1);
                         if (o != null) { // sonst Fehler in z.B. Methoden bei der Suchfunktion
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/editoren/MyFilter.java - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

          if (DBKernel.isKrise && pd4.okPressed || !DBKernel.isKrise && pd.okPressed && (!pd.radioButton3.isSelected() || ids != null)) {
              Runnable runnable = new Runnable() {
                @Override
                public void run() {
                      try {          
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/actions/PlausibleAction.java - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

                if (sid != null && sid.length > 0) {
                    for (int i=0;i<sid.length;i++) {
                        Integer sidi = (sid[i] == null ? null : Integer.parseInt(sid[i].toString()));
                        String spas = (spa == null || spa[i] == null ? null : spa[i].toString());
                        String sdes = (sde == null || sde[i] == null ? null : sde[i].toString());
Severity: Major
Found in de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/DbIo.java - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

            if (paramIndex >= 0) {
                LinkedHashMap<Double, Double> timeSeries = new LinkedHashMap<Double, Double>();
                boolean paramDone = false;
                String process = null, lastP = null;

Consider simplifying this complex logical expression.
Open

      if ((inner.mode.name == "xml" && inner.state.tagStart === null &&
           (!inner.state.context && inner.state.tokenize.isInText)) ||
          (state.md_inside && stream.current().indexOf(">") > -1)) {
        state.f = inlineNormal;
        state.block = blockNormal;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/markdown/markdown.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

        else if (indentStatements &&
            (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') ||
            (ctx.type == "statement" && curPunc == "newstatement")))
          pushContext(state, stream.column(), "statement");
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ttcn/ttcn.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

        else if (indentStatements && (((ctx.type == "}" || ctx.type == "top")
            && curPunc != ';') || (ctx.type == "statement"
            && curPunc == "newstatement")))
          pushContext(state, stream.column(), "statement");
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ttcn-cfg/ttcn-cfg.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

      if (ch == "{" || ch == "}" || ch == "[" || ch == "]" || ch == "(" || ch == ")") {
        return "bracket";
      }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/stex/stex.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

            if (functions && functions.propertyIsEnumerable(word) ||
                    (stream.current().match(/^#@?[a-z0-9_]+ *$/i) && stream.peek()=="(") &&
                     !(functions && functions.propertyIsEnumerable(word.toLowerCase()))) {
                state.beforeParams = true;
                state.lastTokenWasBuiltin = false;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/velocity/velocity.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

        } else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
            ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
          // Dedent relative to current context.
          indent = Math.max(0, cx.indent - indentUnit);
        }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/css/css.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

        if ((stream.string.match(/^[a-z][\w-]*\(/i) && endOfLine(stream)) ||
            wordIsBlock(firstWordOfLine(stream)) ||
            /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(firstWordOfLine(stream)) ||
            (!stream.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/) &&
             wordIsTag(firstWordOfLine(stream)))) {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/stylus/stylus.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

    } else if (
        (ch == "<" && stream.eat("-")) ||
        (ch == "<" && stream.match("<-")) ||
        (ch == "-" && stream.match(/>>?/))
      ) {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/r/r.js - About 40 mins to fix

Consider simplifying this complex logical expression.
Open

        if (style == "variable" && stream.peek() == "(" &&
            (state.prevToken == ";" || state.prevToken == null ||
             state.prevToken == "}") &&
            cppLooksLikeConstructor(stream.current()))
          return "def";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/clike/clike.js - About 40 mins to fix
Severity
Category
Status
Source
Language