Method encode
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public String encode(BaseItem entity, boolean removePackage) {
if (entity instanceof GraphModel == false) {
return "";
}
GraphModel root = (GraphModel) entity;
- Read upRead up
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 encode
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
public String encode(BaseItem entity, boolean removePackage) {
if (entity instanceof GraphModel == false) {
return "";
}
GraphModel root = (GraphModel) entity;
File DotConverter.java
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
package de.uniks.networkparser.converter;
/*
NetworkParser
The MIT License
Method decodeNode
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
GraphEntity decodeNode(GraphList graph, BufferItem value) {
if (graph == null || value == null) {
return null;
}
char c = value.nextClean(true);
- Read upRead up
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 decodeEdge
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
void decodeEdge(GraphList graph, BufferItem value) {
if (graph == null || value == null) {
return;
}
char endChar;
- Read upRead up
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 decodeNode
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
GraphEntity decodeNode(GraphList graph, BufferItem value) {
if (graph == null || value == null) {
return null;
}
char c = value.nextClean(true);
Method decodeGraph
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
GraphList decodeGraph(BufferItem value) {
if (value == null) {
return null;
}
char c = value.nextClean(true);
Method decodeAttributes
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
void decodeAttributes(GraphEntity node, BufferItem value) {
if (node == null || value == null) {
return;
}
value.skipTo('[', false);
- Read upRead up
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 decodeGraph
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
GraphList decodeGraph(BufferItem value) {
if (value == null) {
return null;
}
char c = value.nextClean(true);
- Read upRead up
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 decodeEdge
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
void decodeEdge(GraphList graph, BufferItem value) {
if (graph == null || value == null) {
return;
}
char endChar;