SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Consider simplifying this complex logical expression.
Open

                                        if ((!showOnlyDataFromCurrentUser || v != null && v.containsKey(id)) &&
                                                (id1 < 0 && id2 < 0 || id >= id1 && id <= id2)) {
                                            String toAdd = tn2 + " (ID=" + getFormattedID(id) + "): ";
                                            if (tblname != null) {
                                                toAdd += tblname + " (ID=" + getFormattedID(rs.getInt(2)) + "): ";
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/actions/PlausibleAction.java - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

                if (headerValue != null && mnTable != null && col != null && col > 0 && col - 1 < mnTable.length && mnTable[col - 1] != null && mnTable[col - 1].length() > 0) { // headerValue.toString().equals("Kits")
                    if (!mnTable[col - 1].equals("INT")) {
                        String mntname = mnTable[col - 1];
                        MyTable myMNTable = DBKernel.myDBi.getTable(mntname);
                        String tname = myT.getTablename();
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/MainFrame.java - About 1 hr to fix

Method openNewWindow has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public Object openNewWindow(final MyTable theNewTable, final Object value, final Object headerValue, final MyDBTable dbTable, final Integer row, final Integer col, final Object[][] conditions, boolean fromMMC) {
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/MainFrame.java - About 1 hr to fix

Method insertParam has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private int insertParam(final int modelId, final String paramName, final int paramType, final Double min, final Double max, final String category, final String unit,
            final String description) {

Method insertEstParam has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private void insertEstParam(final int estModelId, final int paramId, final Double value, final Double paramErr, String unit, ParametricModel pm, boolean isDepIndep,
            String paramName) {

Method runSnippet has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

  private static void runSnippet(final RController controller, final ScriptExecutor executor,
      final String modelScript, final String paramScript, final String vizScript,
      final ExecutionMonitor monitor, final File imageFile, final RunnerNodeSettings settings)

Method plot has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

  private static void plot(final File imageFile, final String vizScript, final int width,
      final int height, final int pointSize, final String res, final ScriptExecutor executor,
      final ExecutionMonitor monitor)

Consider simplifying this complex logical expression.
Open

    if (ListOfPaths != null && ListOfPaths.size() > 1) {
      String firstelement = ListOfPaths.get(ListOfPaths.size() % 2);
      // classify the pathes into two groups, each belongs to sub model
      List<String> firstGroup = ListOfPaths.stream().filter(line -> line.startsWith(firstelement))
          .collect(Collectors.toList());

Method plot has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private static void plot(final File imageFile, final String vizScript, final int width, final int height,
            final int pointSize, final String res, final ScriptExecutor executor, final ExecutionMonitor monitor)

Method generateJoinerRelationAdvanced has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

  public static List<JoinRelationAdvanced> generateJoinerRelationAdvanced(FskPortObject portObject,
      LinkedHashMap<String, Object[]> originalNamesMap, List<Parameter> topLevelJoinedModelParams, List<JoinRelation> joinRelations,
       AtomicInteger index, List<JoinRelationAdvanced> joinRelationList, LinkedHashMap<String, String> ModelsToSuffixMap, List<JoinRelation> foundRelation) {

Method plotFunctionSample has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private void plotFunctionSample(XYPlot plot, Plotable plotable, String id,
            Color defaultColor, Shape defaultShape, double minX, double maxX,
            List<String> warnings) throws ConvertException {

Consider simplifying this complex logical expression.
Open

            } else if (el.getName().equals(ELEMENT_PARAM)) {
                boolean minNull = el.getAttributeValue(ATT_MINVALUE) == null
                        || el.getAttributeValue(ATT_MINVALUE).equals("null");
                boolean maxNull = el.getAttributeValue(ATT_MAXVALUE) == null
                        || el.getAttributeValue(ATT_MAXVALUE).equals("null");

Method createChart has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private JFreeChart createChart(DataTableSpec spec, List<DataRow> rowList, DataTable table,
            List<String> usedParameters, String xUnits, boolean equidistantProcesses, boolean plotLines, boolean plotPoints) {

Method convertArrays2IndepXmlDoc has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public static PmmXmlDoc convertArrays2IndepXmlDoc(LinkedHashMap<String, String> varMap, Array name, Array min, Array max, Array categories, Array units, Array desc, boolean isPrimary) {

Consider simplifying this complex logical expression.
Open

      if (stream.match('fB') || stream.match('fR') || stream.match('fI') ||
          stream.match('u')  || stream.match('d')  ||
          stream.match('%')  || stream.match('&')) {
        return 'string';
      }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/troff/troff.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

      if (stream.indentation() == "0" && ((type == "}" && startOfLine(stream)) || type == "]" || type == "hash"
                                          || type == "qualifier" || wordIsTag(stream.current()))) {
        return popAndPass(type, stream, state);
      }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/stylus/stylus.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

    if (stream.match(realLiteral) ||
        stream.match(decimalLiteral) ||
        stream.match(binaryLiteral) ||
        stream.match(octLiteral) ||
        stream.match(hexLiteral) ||

Consider simplifying this complex logical expression.
Open

      if ( textAfter === ']' || textAfter === ')' || textAfter === "end" ||
           textAfter === "else" || textAfter === "catch" || textAfter === "elseif" ||
           textAfter === "finally" ) {
        delta = -1;
      }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/julia/julia.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

      if (endsAfter || span.from == endCh && marker.type == "bookmark" && (!isInsert || span.marker.insertLeft)) {
        var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh)
        ;(nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh,
                                              span.to == null ? null : span.to - endCh));
      }
Severity: Major
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 (!update.force &&
        update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo &&
        (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) &&
        display.renderedView == display.view && countDirtyView(cm) == 0)
      { return false }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix
Severity
Category
Status
Source
Language