Showing 4,645 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/
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);
- 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
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 () {
- 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
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
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();
- 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
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 () {
- 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
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 () {
- 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
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 });
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;
File EntityUtil.java
has 1097 lines of code (exceeds 250 allowed). Consider refactoring. Open
package de.uniks.networkparser;
import java.io.File;
/*
NetworkParser
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
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 });
- 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
File GraphConverter.java
has 1057 lines of code (exceeds 250 allowed). Consider refactoring. Open
package de.uniks.networkparser.converter;
/*
NetworkParser
The MIT License
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 () {
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'];
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];
- 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
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;
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
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();
- 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 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) {
- 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"