Showing 6,856 of 14,752 total issues
Function addFunctionObject
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
function addFunctionObject(dbuuid, functionAsString, functionConstants, model,headless)
{
var color = getNextColor(); // functionPlot provides 9 colors
var maxRange = _plotterValue.maxXAxis * 1000; // obligatoric for the range feature
- Create a ticketCreate a ticket
Function domTextBetween
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
function domTextBetween(cm, from, to, fromLine, toLine) {
var text = "", closing = false, lineSep = cm.doc.lineSeparator()
function recognizeMarker(id) { return function (marker) { return marker.id == id; } }
function close() {
if (closing) {
- Create a ticketCreate a ticket
Function domTextBetween
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
function domTextBetween(cm, from, to, fromLine, toLine) {
var text = "", closing = false, lineSep = cm.doc.lineSeparator()
function recognizeMarker(id) { return function (marker) { return marker.id == id; } }
function close() {
if (closing) {
- Create a ticketCreate a ticket
Function 11
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"./ucs2length":9,"fast-deep-equal":41}],11:[function(require,module,exports){
'use strict';
var KEYWORDS = [
'multipleOf',
- Create a ticketCreate a ticket
Function decode
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
var decode = function decode(input) {
// Don't use UCS-2.
var output = [];
var inputLength = input.length;
var i = 0;
- Create a ticketCreate a ticket
Function baseClone
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
var result;
if (customizer) {
result = object ? customizer(value, key, object) : customizer(value);
}
- Create a ticketCreate a ticket
Function slide
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Carousel.prototype.slide = function (type, next) {
var $active = this.$element.find('.item.active')
var $next = next || this.getItemForDirection(type, $active)
var isCycling = this.interval
var direction = type == 'next' ? 'left' : 'right'
- Create a ticketCreate a ticket
Function getClassNames
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
getClassNames: function(date){
var cls = [],
year = this.viewDate.getUTCFullYear(),
month = this.viewDate.getUTCMonth(),
today = new Date();
- Create a ticketCreate a ticket
Function mixin
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
function mixin(object, source, options) {
if (options == null) {
var isObj = isObject(source),
props = isObj ? keys(source) : undefined,
methodNames = (props && props.length) ? baseFunctions(source, props) : undefined;
- Create a ticketCreate a ticket
Method getSerie
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public XYSeries getSerie(final String strDataSet, final Double min, final Double max, final double step) {
if (strDataSet == null || strDataSet.equalsIgnoreCase("null")) return null;
init(strDataSet, "", "", min, max, step);
XYSeries series = new XYSeries("Datenpunkte", true, false);
for (double t=min;t<=max;t+=step) {
- Read upRead up
- Create a ticketCreate a ticket
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 retrievePopulationGroup
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public PopulationGroup retrievePopulationGroup(Row row) {
// Check mandatory properties
if (row.getCell(AU).getCellType() != Cell.CELL_TYPE_STRING) {
throw new IllegalArgumentException("Missing Risk and population factors");
}
- Read upRead up
- Create a ticketCreate a ticket
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 retrieveHazard
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public Hazard retrieveHazard(Row row) {
// Check mandatory properties
if (row.getCell(X).getCellType() != Cell.CELL_TYPE_STRING) {
throw new IllegalArgumentException("Hazard name is missing");
}
- Read upRead up
- Create a ticketCreate a ticket
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 insert2DB
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
private Integer insert2DB(String tablename, String[] fields, String[] vals) {
Integer resultID = null;
String fieldstr = "";
String valstr = "";
for (int i = 0 ; i < fields.length ; i++) {
- Read upRead up
- Create a ticketCreate a ticket
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 retrieveHazard
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public Hazard retrieveHazard(Row row) {
// Check mandatory properties
if (row.getCell(W).getCellType() != Cell.CELL_TYPE_STRING) {
throw new IllegalArgumentException("Hazard name is missing");
}
- Read upRead up
- Create a ticketCreate a ticket
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 retrievePopulationGroup
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public PopulationGroup retrievePopulationGroup(Row row) {
// Check mandatory properties
if (row.getCell(AK).getCellType() != Cell.CELL_TYPE_STRING) {
throw new IllegalArgumentException("Missing population name");
- Read upRead up
- Create a ticketCreate a ticket
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 retrievePopulationGroup
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public PopulationGroup retrievePopulationGroup(Row row) {
// Check mandatory properties
if (row.getCell(AK).getCellType() != Cell.CELL_TYPE_STRING) {
throw new IllegalArgumentException("Missing population name");
- Read upRead up
- Create a ticketCreate a ticket
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 convertHazard
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
static Hazard convertHazard(JsonNode node) {
Hazard hazard = new Hazard();
if (node.has("hazardType")) {
hazard.setType(node.get("hazardType").asText());
- Read upRead up
- Create a ticketCreate a ticket
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 retrievePopulationGroup
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public PopulationGroup retrievePopulationGroup(Row row) {
// Check mandatory properties
if (row.getCell(W).getCellType() != Cell.CELL_TYPE_STRING) {
throw new IllegalArgumentException("Missing population name");
- Read upRead up
- Create a ticketCreate a ticket
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 retrievePopulationGroup
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public PopulationGroup retrievePopulationGroup(Row row) {
// Check mandatory properties
if (row.getCell(Z).getCellType() != Cell.CELL_TYPE_STRING) {
throw new IllegalArgumentException("Missing population name");
- Read upRead up
- Create a ticketCreate a ticket
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 retrieveHazard
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public Hazard retrieveHazard(Row row) {
// Check mandatory properties
if (row.getCell(X).getCellType() != Cell.CELL_TYPE_STRING) {
throw new IllegalArgumentException("Hazard name is missing");
}
- Read upRead up
- Create a ticketCreate a ticket
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"