workcraft/workcraft

View on GitHub

Showing 591 of 2,492 total issues

Avoid deeply nested control flow statements.
Open

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

    Avoid deeply nested control flow statements.
    Open

                            if (!sync.contains(n)) {
                                ((ChannelPlace) post).setErrors(((ChannelPlace) post).getErrors() - err);
                            }

      Avoid deeply nested control flow statements.
      Open

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

        Avoid deeply nested control flow statements.
        Open

                                if (e1 instanceof TransitionNode) {
                                    TransitionNode[] subResult = new TransitionNode[2];
                                    subResult[0] = (TransitionNode) e1;
                                    subResult[1] = e;
                                    result.add(subResult);
        Severity: Major
        Found in workcraft/SonPlugin/src/org/workcraft/plugins/son/algorithm/BSONAlg.java - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (((VisualSONConnection) con).getSemantics() == Semantics.ASYNLINE) {
                                      this.sync = false;
                                  }

            Avoid deeply nested control flow statements.
            Open

                                    if (graph[i][j] > 0) ch = '1';

              Avoid deeply nested control flow statements.
              Open

                                              if (g != null) {
                                                  g.updateVertexPosition(v.getLabel(), xDiff, yDiff);
              
                                                  ArrayList<VisualPage> refPages = getRefPages(visualCpog, refKey, v);
                                                  refPages.remove(page);

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

                    public static void describeArcs(ArrayList<String> expression, Set<VisualConnection> totalConnections,
                            HashSet<VisualConnection> visitedConnections, VisualVertex current,
                            ArrayList<VisualNode> vertices, VisualCpog visualCpog) {

                  Avoid deeply nested control flow statements.
                  Open

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

                    Avoid deeply nested control flow statements.
                    Open

                                            if (graph[i][j] > 1) ch = '-';

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

                          private static void processTransition(Wtg wtg, TransitionEvent visitingTransition, Set<TransitionEvent> outputHasFired,
                                                                Set<String> firedBeforeOut, Integer index,
                                                                Map<TransitionEvent, Map<Signal, Pair<Boolean, Integer>>> inputsFiredAfterOutput) {

                        Avoid deeply nested control flow statements.
                        Open

                                                for (Signal signal : guardedSignals)  {
                                                    inputsFiredAfterOutput.get(transition).put(signal, new Pair<>(true, 0));
                                                }

                          Avoid deeply nested control flow statements.
                          Open

                                                  for (MathNode node : wtg.getPostset(entry)) {
                                                      if ((isFirstTransition(wtg, node)) && (isWaveformInChoice(wtg, waveform))) {
                                                          DialogUtils.showError("Signal '" + wtg.getName(entry.getSignal())
                                                                  + "' cannot be fired immediately after a choice, in waveform '"
                                                                  + wtg.getName(waveform) + "'.");

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

                                    public Component getTableCellRendererComponent(JTable table, Object value,
                                            boolean isSelected, boolean hasFocus, int row, int col) {

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

                                  public Component getTableCellRendererComponent(JTable table, Object value,
                                          boolean isSelected, boolean hasFocus, int row, int column) {

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

                                    public Component getTableCellRendererComponent(JTable table, Object value,
                                            boolean isSelected, boolean hasFocus, int row, int column) {

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

                                      public Component getTableCellRendererComponent(JTable table, Object value,
                                              boolean isSelected, boolean hasFocus, int row, int column) {

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if (uncoveredNeighbours.get(v1) != null) {
                                                                uncoveredNeighbours.get(v1).remove(v2);
                                                            }
                                    Severity: Major
                                    Found in workcraft/CfltPlugin/src/org/workcraft/plugins/cflt/AdvancedGraph.java - About 45 mins to fix

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

                                          public Component getTableCellRendererComponent(JTable table, Object value,
                                                  boolean isSelected, boolean hasFocus, int row, int column) {

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if (attrSet[attrIter] && (attrIter == outer ||
                                                                        attrIter == inner)) {
                                                                    game.adjMatrix[outer][inner] = false;
                                                                }
                                        Severity: Major
                                        Found in workcraft/ParityPlugin/src/org/workcraft/plugins/parity/Zielonka.java - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language