fujaba/NetworkParser

View on GitHub

Showing 3,691 of 4,645 total issues

File diagram.js has 9303 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var DiagramJS =
/******/ (function(modules) { // webpackBootstrap
/******/     // The module cache
/******/     var installedModules = {};
/******/
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 3 wks to fix

    Function ./elements/nodes/Table.ts has a Cognitive Complexity of 570 (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 1 wk 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 a Cognitive Complexity of 448 (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 1 wk 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 ./Bridge.ts has a Cognitive Complexity of 249 (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 5 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 ./layouts/DagreLayoutMin.ts has a Cognitive Complexity of 241 (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 4 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 ./Control.ts has a Cognitive Complexity of 240 (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 4 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/Graph.ts has a Cognitive Complexity of 239 (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 4 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 searching has a Cognitive Complexity of 197 (exceeds 5 allowed). Consider refactoring.
    Open

        public int searching(File file, PrintStream output) {
            if (file == null) {
                if (output != null) {
                    output.println("NO FILES FOUND");
                }
    Severity: Minor
    Found in src/main/java/de/uniks/networkparser/ext/generic/JarValidator.java - About 4 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 800 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 4 days to fix

      Function SymbolLibary has 772 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var SymbolLibary = (function () {
          function SymbolLibary() {
          }
          SymbolLibary.drawSVG = function (node) {
              var symbol, fn = this[SymbolLibary.getName(node)];
      Severity: Major
      Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 3 days to fix

        File IdMap.java has 1422 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        package de.uniks.networkparser;
        
        import java.beans.PropertyChangeEvent;
        import java.util.Collection;
        import java.util.ConcurrentModificationException;
        Severity: Major
        Found in src/main/java/de/uniks/networkparser/IdMap.java - About 3 days to fix

          Function ./elements/nodes/Table.ts has 753 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 3 days to fix

            Method encode has a Cognitive Complexity of 184 (exceeds 5 allowed). Consider refactoring.
            Open

                protected Entity encode(Object entity, String className, MapEntity map, BaseItem parentNode) {
                    if (map == null) {
                        return null;
                    }
                    Grammar grammar = map.getGrammar();
            Severity: Minor
            Found in src/main/java/de/uniks/networkparser/IdMap.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 Table has 734 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var Table = (function (_super) {
                __extends(Table, _super);
                function Table() {
                    var _this = _super !== null && _super.apply(this, arguments) || this;
                    _this.items = [];
            Severity: Major
            Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - About 3 days to fix

              File ParserEntity.java has 1387 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              package de.uniks.networkparser.parser;
              
              /*
              The MIT License
              
              
              Severity: Major
              Found in src/main/java/de/uniks/networkparser/parser/ParserEntity.java - About 3 days to fix

                Function ./CSS.ts has a Cognitive Complexity of 176 (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 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/edges/Association.ts has a Cognitive Complexity of 172 (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

                Method parsing has a Cognitive Complexity of 171 (exceeds 5 allowed). Consider refactoring.
                Open

                    public ObjectCondition parsing(CharacterBuffer buffer, LocalisationInterface customTemplate, boolean isExpression,
                            boolean allowSpace, String... stopWords) {
                        if (buffer == null) {
                            return null;
                        }
                Severity: Minor
                Found in src/main/java/de/uniks/networkparser/parser/Template.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

                Method analyseSentense has a Cognitive Complexity of 169 (exceeds 5 allowed). Consider refactoring.
                Open

                    private boolean analyseSentense(String sentence, GraphModel model) {
                        String[] token = sentence.split(" ");
                        int z;
                        /* Test for replace Link Names */
                        if (assocs.size() > 0) {
                Severity: Minor
                Found in src/main/java/de/uniks/networkparser/ext/story/CucumberStdRule.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

                Method convertToAdvanced has a Cognitive Complexity of 165 (exceeds 5 allowed). Consider refactoring.
                Open

                    public TemplateResultFragment convertToAdvanced(TemplateResultFragment fragment) {
                        if (fragment == null) {
                            return null;
                        }
                        GraphModel model = (GraphModel) fragment.getMember();
                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

                Severity
                Category
                Status
                Source
                Language