fujaba/NetworkParser

View on GitHub

Showing 3,691 of 4,645 total issues

File AbstractArray.java has 1224 lines of code (exceeds 250 allowed). Consider refactoring.
Open

package de.uniks.networkparser.list;

/*
 * NetworkParser The MIT License Copyright (c) 2010-2016 Stefan Lindel
 * https://www.github.com/fujaba/NetworkParser/
Severity: Major
Found in src/main/java/de/uniks/networkparser/list/AbstractArray.java - About 3 days to fix

    Method convertFromJson has a Cognitive Complexity of 154 (exceeds 5 allowed). Consider refactoring.
    Open

        public GraphModel convertFromJson(Entity model, GraphModel reference) {
            if (model == null || model.has(NODES) == false) {
                return null;
            }
            EntityList nodes = (EntityList) model.getValue(NODES);
    Severity: Minor
    Found in src/main/java/de/uniks/networkparser/converter/GraphConverter.java - About 3 days 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

    Function ./elements/Model.ts has a Cognitive Complexity of 154 (exceeds 5 allowed). Consider refactoring.
    Open

    /***/ (function(module, exports, __webpack_require__) {
    
    "use strict";
    
    var __extends = (this && this.__extends) || (function () {
    Severity: Minor
    Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 3 days 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

    File CharacterBuffer.java has 1175 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    package de.uniks.networkparser.buffer;
    
    import java.util.List;
    /*
     * NetworkParser The MIT License Copyright (c) 2010-2016 Stefan Lindel
    Severity: Major
    Found in src/main/java/de/uniks/networkparser/buffer/CharacterBuffer.java - About 3 days to fix

      Method main has a Cognitive Complexity of 147 (exceeds 5 allowed). Consider refactoring.
      Open

          public static void main(String[] args) {
              NetworkParserLog logger = new NetworkParserLog().withListener(new StringPrintStream());
              if (args != null && args.length > 0 && args[0] != null) {
                  if (GitRevision.MAINTAG.equalsIgnoreCase(args[0])) {
                      GitRevision revision = new GitRevision();
      Severity: Minor
      Found in src/main/java/de/uniks/networkparser/ext/DiagramEditor.java - About 2 days 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

      Function ./elements/nodes/Symbol.ts has a Cognitive Complexity of 145 (exceeds 5 allowed). Consider refactoring.
      Open

      /***/ (function(module, exports, __webpack_require__) {
      
      "use strict";
      
      var __extends = (this && this.__extends) || (function () {
      Severity: Minor
      Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 2 days 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

      Function ./elements/nodes/Class.ts has a Cognitive Complexity of 142 (exceeds 5 allowed). Consider refactoring.
      Open

      /***/ (function(module, exports, __webpack_require__) {
      
      "use strict";
      
      var __extends = (this && this.__extends) || (function () {
      Severity: Minor
      Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 2 days 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

      Function ./util.ts has 577 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      /***/ (function(module, exports, __webpack_require__) {
      
      "use strict";
      
      Object.defineProperty(exports, "__esModule", { value: true });
      Severity: Major
      Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 2 days to fix

        Function Util has 573 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var Util = (function () {
            function Util() {
            }
            Util.getRandomInt = function (min, max) {
                return Math.floor(Math.random() * (max - min + 1)) + min;
        Severity: Major
        Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 2 days to fix

          File EntityUtil.java has 1097 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          package de.uniks.networkparser;
          
          import java.io.File;
          /*
          NetworkParser
          Severity: Major
          Found in src/main/java/de/uniks/networkparser/EntityUtil.java - About 2 days to fix

            File SimpleController.java has 1081 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            package de.uniks.networkparser.ext;
            
            import java.io.BufferedReader;
            /*
            The MIT License
            Severity: Major
            Found in src/main/java/de/uniks/networkparser/ext/SimpleController.java - About 2 days to fix

              Function ./SVGConverter.ts has a Cognitive Complexity of 133 (exceeds 5 allowed). Consider refactoring.
              Open

              /***/ (function(module, exports, __webpack_require__) {
              
              "use strict";
              
              Object.defineProperty(exports, "__esModule", { value: true });
              Severity: Minor
              Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 2 days 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

              File GraphConverter.java has 1057 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              package de.uniks.networkparser.converter;
              
              /*
              NetworkParser
              The MIT License
              Severity: Major
              Found in src/main/java/de/uniks/networkparser/converter/GraphConverter.java - About 2 days to fix

                Function ./elements/Graph.ts has 514 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                /***/ (function(module, exports, __webpack_require__) {
                
                "use strict";
                
                var __extends = (this && this.__extends) || (function () {
                Severity: Major
                Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 2 days to fix

                  Function Graph has 500 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var Graph = (function (_super) {
                      __extends(Graph, _super);
                      function Graph(json, options) {
                          var _this = _super.call(this) || this;
                          _this.containerElements = ['svg', 'g'];
                  Severity: Major
                  Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 2 days to fix

                    Method analyseDefinition has a Cognitive Complexity of 117 (exceeds 5 allowed). Consider refactoring.
                    Open

                        private boolean analyseDefinition(SimpleKeyValueList<String, Boolean> values) {
                            for (int i = 0; i < values.size(); i++) {
                                String string = values.getKeyByIndex(i);
                                String[] token = string.split(" ");
                                char[] types = new char[token.length];
                    Severity: Minor
                    Found in src/main/java/de/uniks/networkparser/ext/story/CucumberStdRule.java - About 2 days 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

                    File Space.java has 945 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    package de.uniks.networkparser.ext.petaf;
                    
                    import java.util.Collection;
                    
                    import de.uniks.networkparser.DateTimeEntity;
                    Severity: Major
                    Found in src/main/java/de/uniks/networkparser/ext/petaf/Space.java - About 2 days to fix

                      File ReflectionLoader.java has 939 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      package de.uniks.networkparser.ext.generic;
                      
                      import java.io.DataInputStream;
                      /*
                      The MIT License
                      Severity: Major
                      Found in src/main/java/de/uniks/networkparser/ext/generic/ReflectionLoader.java - About 2 days to fix

                        Method validateStatements has a Cognitive Complexity of 113 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public boolean validateStatements(SQLStatementList result, SimpleList<SQLTable> results) {
                                SimpleKeyValueList<String, SelectSearcher> foundKeys = new SimpleKeyValueList<String, SelectSearcher>();
                        
                                for (SQLStatement statement : result) {
                                    String table = statement.getTable();
                        Severity: Minor
                        Found in src/main/java/de/uniks/networkparser/ext/sql/SQLTokener.java - About 2 days 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 with has a Cognitive Complexity of 113 (exceeds 5 allowed). Consider refactoring.
                        Open

                            protected GraphEntity with(Association... values) {
                                if (values != null) {
                                    boolean add;
                                    AssociationSet allAssoc;
                                    for (Association assoc : values) {
                        Severity: Minor
                        Found in src/main/java/de/uniks/networkparser/graph/GraphEntity.java - About 2 days 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