fujaba/NetworkParser

View on GitHub

Showing 3,691 of 4,645 total issues

Avoid too many return statements within this method.
Open

            return true;
Severity: Major
Found in src/main/java/de/uniks/networkparser/calculator/RegExParser.java - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                        return item.getValue(attribute.substring(pos + 1));
    Severity: Major
    Found in src/main/java/de/uniks/networkparser/graph/GraphMember.java - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return new Parameter(DataType.create(value));
      Severity: Major
      Found in src/main/java/de/uniks/networkparser/graph/Parameter.java - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return literals.getValue(attribute.substring(pos + 1));
        Severity: Major
        Found in src/main/java/de/uniks/networkparser/graph/GraphMember.java - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return this.getBody();
          Severity: Major
          Found in src/main/java/de/uniks/networkparser/graph/Method.java - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                    return true;
            Severity: Major
            Found in src/main/java/de/uniks/networkparser/calculator/RegExParser.java - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return this.getCircle(1, 1, 1, 2, 1, 3, 2, 2, 3, 1, 3, 2, 3, 3);
              Severity: Major
              Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return 0;
                Severity: Major
                Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return '#000';
                  Severity: Major
                  Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return this.getCircle(1, 1, 1, 2, 1, 3, 3, 1, 3, 2, 3, 3);
                    Severity: Major
                    Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return null;
                      Severity: Major
                      Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return this.getCircle(1, 1, 1, 3, 2, 2, 3, 1, 3, 3);
                        Severity: Major
                        Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return new Point();
                          Severity: Major
                          Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return this.getCircle(1, 1, 1, 2, 1, 3, 2, 1, 2, 3, 3, 1, 3, 2, 3, 3);
                            Severity: Major
                            Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return this.getCircle(1, 1, 1, 2, 1, 3, 2, 1, 2, 2, 2, 3, 3, 1, 3, 2, 3, 3);
                              Severity: Major
                              Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 30 mins to fix

                                Method getValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    @Override
                                    public Object getValue(Object entity, String attribute) {
                                        if(attribute == null || entity instanceof University == false) {
                                            return null;
                                        }

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Method setValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    @Override
                                    public boolean setValue(Object entity, String attribute, Object value, String type) {
                                        if(attribute == null || entity instanceof TeachingAssistant == false) {
                                            return false;
                                        }

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Method getValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    @Override
                                    public Object getValue(Object entity, String attribute) {
                                        if(attribute == null || entity instanceof Assignment == false) {
                                            return null;
                                        }

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Method setValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    @Override
                                    public boolean setValue(Object entity, String attribute, Object value, String type) {
                                        if(attribute == null || entity instanceof Meeple == false) {
                                            return false;
                                        }
                                Severity: Minor
                                Found in src/test/java/de/uniks/ludo/model/util/MeepleSet.java - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Method execute has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                 public void execute(){
                                     String[] classpath = System.getProperty("java.class.path").split(";");
                                     File config=new File(".classpath");
                                     if(config.exists()){
                                         try {
                                Severity: Minor
                                Found in src/javafx/de/uniks/networkparser/test/javafx/TestRunner.java - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Severity
                                Category
                                Status
                                Source
                                Language