fujaba/NetworkParser

View on GitHub

Showing 4,645 of 4,645 total issues

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

    @Benchmark
    @Warmup(iterations = 5, time = 1)
    @Measurement(iterations = 5, time = 1)
    @BenchmarkMode(Mode.AverageTime)
    public void ContainsSmall() {
Severity: Minor
Found in src/jmh/java/de/uniks/networkparser/test/CollectionTest_Small.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 addValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    protected Annotation addValue(Annotation... values) {
        if (values == null) {
            return this;
        }
        SimpleList<?> list;
Severity: Minor
Found in src/main/java/de/uniks/networkparser/graph/Annotation.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 RemoveSmall has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @Benchmark
    @Warmup(iterations = 5, time = 1)
    @Measurement(iterations = 5, time = 1)
    @BenchmarkMode(Mode.AverageTime)
    public void RemoveSmall() {
Severity: Minor
Found in src/jmh/java/de/uniks/networkparser/test/CollectionTest_Small.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

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

/***/ (function(module, exports, __webpack_require__) {

"use strict";

function __export(m) {
Severity: Minor
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js - 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 splitValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private TextDiff splitValue(Object item, char type) {
        if (item instanceof Entity) {
            return splitValue((Entity) item, type);
        } else if (item instanceof List<?>) {
            return splitValue((List<?>) item, type);
Severity: Minor
Found in src/main/java/de/uniks/networkparser/TextDiff.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

Duplicate property 'border' found.
Open

    border: 1px solid rgb(200, 200, 200);

Don't use IDs in selectors.
Open

#copyNode[visibility=visible] > circle{

Don't use IDs in selectors.
Open

#addEdge[visibility=visible] > circle{

Rule doesn't have all its properties in alphabetical order.
Open

h1 {

Values of 0 shouldn't have units specified.
Open

    box-shadow: 5px 5px 20px 0px rgba(0, 0, 0, 0.25);

Rule doesn't have all its properties in alphabetical order.
Open

.palette button svg, .palette button svg line, .palette button svg polygon, .palette button svg rect, .palette button svg text {

Adjoining classes: .dialog.heavyweight.cross-platform
Open

.dialog.heavyweight.cross-platform {

Adjoining classes: .dialog.mac .command-link-button > .container > .line-1
Open

.dialog.mac .command-link-button > .container > .line-1 {

Rule doesn't have all its properties in alphabetical order.
Open

.saveBtn:hover{

Rule doesn't have all its properties in alphabetical order.
Open

.SVGChoiceCaption {

Rule doesn't have all its properties in alphabetical order.
Open

.toolbar {

Rule doesn't have all its properties in alphabetical order.
Open

.palette button {

Don't use IDs in selectors.
Open

#trashcan[visibility=visible] > circle{

Rule doesn't have all its properties in alphabetical order.
Open

.dialog .window-header .window-button {

Adjoining classes: .dialog.mac > * > .content-pane .command-link-message
Open

.dialog.mac > * > .content-pane .command-link-message {
Severity
Category
Status
Source
Language