workcraft/workcraft

View on GitHub

Showing 591 of 2,492 total issues

Avoid deeply nested control flow statements.
Open

                        if (preCondition instanceof Condition) {
                            result.add((Condition) preCondition);
                        }

    Avoid deeply nested control flow statements.
    Open

                            for (Time ndin : preset) {
                                ndin.setEndTime(nd.getStartTime());
                            }

      Avoid deeply nested control flow statements.
      Open

                              if (!hasMarking) {
                                  c2.setMarked(false);
                              }

        Avoid deeply nested control flow statements.
        Open

                                if (!nd.getEndTime().isSpecified()) {
                                    nd.setEndTime(end);
                                    addModify(t, 3);
                                } else {
                                    if (!nd.getEndTime().equals(end)) {

          Avoid deeply nested control flow statements.
          Open

                                  if (u.contains(e3)) {
                                      u.remove(e3);
                                      stack.push(e3);
                                  }

            Avoid deeply nested control flow statements.
            Open

                                    if (n instanceof TransitionNode) {
                                        ((TransitionNode) n).setFillColor(new Color(255, 228, 181));
                                    }

              Method buildCpog has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  protected void buildCpog(int n, int m, char[][][] constraints,
                          VisualCpog cpog, VisualVertex[] vertices, HashMap<String,
                          BooleanFormula> formulaeName) {

                Avoid deeply nested control flow statements.
                Open

                                        if ((!q.isEmpty() || i.hasNext()) && !"+".equals(expression.get(expression.size() - 1))) {
                                            expression.add("+");
                                        }

                  Avoid deeply nested control flow statements.
                  Open

                                          if ("to".equals(piece[0])) {
                                              VisualSONConnection con = null;
                                              try {
                                                  if (piece[2].equals(Semantics.PNLINE.toString())) {
                                                      con = (VisualSONConnection) visualNet.connect(p, e, Semantics.PNLINE);
                  Severity: Major
                  Found in workcraft/SonPlugin/src/org/workcraft/plugins/son/BlockConnector.java - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if (constraints[k][i][i] == '0' || constraints[k][j][j] == '0') ch = '-';

                      Avoid deeply nested control flow statements.
                      Open

                                              if (node instanceof TransitionEvent) {
                                                  TransitionEvent dstTransition = (TransitionEvent) node;
                                                  if (dstTransition.getSignal().getType() == Signal.Type.INPUT) {
                                                      String msg = "Internal signal '" + wtg.getName(transition.getSignal())
                                                              + "' triggers input signal '"

                        Avoid deeply nested control flow statements.
                        Open

                                                if (!hasPreAsyn) {
                                                    setSyncErrNum(eventCycle, phases, isLower);
                                                    removeList.addAll(eventCycle);
                                                    b = true;
                                                    break;

                          Avoid deeply nested control flow statements.
                          Open

                                                  if (u.contains(e3)) {
                                                      u.remove(e3);
                                                      stack.push(e3);
                                                  }

                            Avoid deeply nested control flow statements.
                            Open

                                                    for (ONGroup group : getBSONAlg().getLowerGroups(pre)) {
                                                        if (preMax.containsAll(getRelationAlg().getONFinal(group))) {
                                                            containFinal = true;
                                                            break;
                                                        }

                              Avoid deeply nested control flow statements.
                              Open

                                                      if (!containFinal) {
                                                          match = false;
                                                      }

                                Avoid deeply nested control flow statements.
                                Open

                                                        for (int j = 0; j < n; j++) {
                                                            if (graph[t][j] > 0) graph[i][j] = 2;
                                                        }

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if (formulaToString(nextArc.getCondition()).equals(arcCondition)) {
                                                              insert += " -> ";
                                                              String nextVertexCondition = formulaToString(nextVertex.getCondition());
                                                              String childCondition = formulaToString(child.getCondition());
                                                              if (!"1".equals(nextVertexCondition) || !childCondition.equals(arcCondition)) {

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            for (Time ndin : postset) {
                                                                ndin.setStartTime(nd.getEndTime());
                                                            }

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if ((n2 instanceof Condition) && net.getSONConnectionType(post, n2) == Semantics.PNLINE) {
                                                                  result.add((Condition) n2);
                                                              }

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                for (Condition c3 : bsonAlg.getUpperConditions(c2)) {
                                                                    if (c3.isMarked()) {
                                                                        hasMarking = true;
                                                                    }
                                                                }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language