SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Function 6 has 212 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"../dotjs/validate":37,"./error_classes":3,"./resolve":6,"./util":10,"fast-deep-equal":41,"fast-json-stable-stringify":42}],6:[function(require,module,exports){
'use strict';

var URI = require('uri-js')
  , equal = require('fast-deep-equal')

File GenericModelSheetImporter.java has 519 lines of code (exceeds 250 allowed). Consider refactoring.
Open

package metadata.swagger;

import java.math.BigDecimal;
import java.util.HashMap;

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      function downOnce() {
        _checkValue();

        value = parseFloat(settings.callback_before_calculation(elements.input.val()));
        if (isNaN(value)) {
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-touchspin.js and 1 other location - About 1 day to fix
de.bund.bfr.knime.js/src/js/lib/bootstrap-touchspin.js on lines 624..648

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 204.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      function upOnce() {
        _checkValue();

        value = parseFloat(settings.callback_before_calculation(elements.input.val()));
        if (isNaN(value)) {
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-touchspin.js and 1 other location - About 1 day to fix
de.bund.bfr.knime.js/src/js/lib/bootstrap-touchspin.js on lines 650..674

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 204.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Method tableMouseClicked has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring.
Open

    private void tableMouseClicked(MouseEvent e) {
        if (SwingUtilities.isLeftMouseButton(e)) {
            /*
             * int row = table.getSelectedRow(); int col =
             * table.getSelectedColumn();

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 insertCondition has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring.
Open

    private Integer insertCondition(Integer condId, final Integer tempId, final Integer phId, final Integer awId, final String agentName, final String matrixName,
            final String combaseId, Integer matrixId, Integer agentId, final String agentDetail, final String matrixDetail, PmmXmlDoc misc, final String comment, final Integer qs, final Boolean checked, PmmXmlDoc lit,
            PmmTimeSeries ts) {

        String warnings = "";

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

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ConsumptionModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DataModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ExposureModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/HealthModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/OtherModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ProcessModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/QraModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/RiskModel.java on lines 1..168
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/ToxicologicalModel.java on lines 1..168

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 515.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function notify has 210 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            function notify(map) {
                var options = getOptions();
                var iconClass = map.iconClass || options.iconClass;

                if (typeof (map.optionsOverride) !== 'undefined') {
Severity: Major
Found in de.bund.bfr.knime.pmm.nodes/js-lib/toastr/2_1_3/debug/js/toastr.js - About 1 day to fix

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    _createDialogs() {
      let schema = schemas.doseResponseModel;

      return {
        authorDialog: new Dialog("authorDialog", "Add dialog", schema.contact),
de.bund.bfr.knime.fsklab.deprecatednodes/js-src/de/bund/bfr/knime/fsklab/1.7.2/editor/editor.js on lines 459..477
de.bund.bfr.knime.fsklab.deprecatednodes/js-src/de/bund/bfr/knime/fsklab/1.7.2/editor/editor.js on lines 1118..1136
de.bund.bfr.knime.fsklab.deprecatednodes/js-src/de/bund/bfr/knime/fsklab/1.7.2/editor/editor.js on lines 1249..1267

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 203.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language