SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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

    @Override
    public Model retrieveModel(Sheet sheet) {
        OtherModel model = new OtherModel();
        model.setModelType("otherModel");
        model.setGeneralInformation(retrieveGeneralInformation(sheet));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ConsumptionModelSheetImporter.java on lines 636..646
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DoseResponseSheetImporter.java on lines 601..611
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ExposureModelSheetImporter.java on lines 677..687
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/GenericModelSheetImporter.java on lines 656..666
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/HealthModelSheetImporter.java on lines 608..618
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/PredictiveModelSheetImporter.java on lines 669..679
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ProcessModelSheetImporter.java on lines 609..620
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/QraModelSheetImporter.java on lines 658..669
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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

    @Override
    public Model retrieveModel(Sheet sheet) {
        ExposureModel exposureModel = new ExposureModel();
        exposureModel.setModelType("exposureModel");
        exposureModel.setGeneralInformation(retrieveGeneralInformation(sheet));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ConsumptionModelSheetImporter.java on lines 636..646
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DoseResponseSheetImporter.java on lines 601..611
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/GenericModelSheetImporter.java on lines 656..666
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/HealthModelSheetImporter.java on lines 608..618
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/OtherModelSheetImporter.java on lines 651..661
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/PredictiveModelSheetImporter.java on lines 669..679
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ProcessModelSheetImporter.java on lines 609..620
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/QraModelSheetImporter.java on lines 658..669
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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 14 locations. Consider refactoring.
Open

                result.add(new String[]{
                        "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                        " WHERE " + DBKernel.delimitL("Durchsatz") + " IS NOT NULL AND " + DBKernel.delimitL("DurchsatzEinheit") + " IS NULL",
                        GuiMessages.getString("Die Einheit für den Durchsatz sollte eingetragen werden!")
                        });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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 14 locations. Consider refactoring.
Open

                result.add(new String[]{
                        "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                        " WHERE " + DBKernel.delimitL("Kosten") + " IS NULL OR " + DBKernel.delimitL("KostenEinheit") + " IS NULL",
                        GuiMessages.getString("Die Kosten und deren Einheit sollte eingetragen werden!")
                        });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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 14 locations. Consider refactoring.
Open

                result.add(new String[]{
                        "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                        " WHERE " + DBKernel.delimitL("Kosten") + " IS NULL OR " + DBKernel.delimitL("KostenEinheit") + " IS NULL",
                        GuiMessages.getString("Die Kosten und deren Einheit sollte eingetragen werden!")
                        });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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 14 locations. Consider refactoring.
Open

                result.add(new String[]{
                        "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                        " WHERE " + DBKernel.delimitL("Kosten") + " IS NULL OR " + DBKernel.delimitL("KostenEinheit") + " IS NULL",
                        GuiMessages.getString("Die Kosten und deren Einheit sollte eingetragen werden!")
                        });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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 14 locations. Consider refactoring.
Open

                    result.add(new String[]{
                            "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                            " WHERE " + DBKernel.delimitL("EMail") + " IS NULL OR " + DBKernel.delimitL("Telefon") + " IS NULL",
                            GuiMessages.getString("Eine E-Mail Adresse oder eine Telefonnummer sollte angegeben werden!")
                            });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254

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 64.

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 14 locations. Consider refactoring.
Open

                result.add(new String[]{
                        "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                        " WHERE " + DBKernel.delimitL("Krankheitsverlauf") + " IS NOT NULL AND " + DBKernel.delimitL("Zielpopulation") + " IS NULL",
                        GuiMessages.getString("Bei Dateneingabe in \"Krankheitsverlauf\" muss Dateneingabe in \"Zielpopulation\" vorhanden sein")
                        });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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

    @Override
    public Model retrieveModel(Sheet sheet) {

        ProcessModel model = new ProcessModel();
        model.setModelType("processModel");
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ConsumptionModelSheetImporter.java on lines 636..646
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DoseResponseSheetImporter.java on lines 601..611
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ExposureModelSheetImporter.java on lines 677..687
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/GenericModelSheetImporter.java on lines 656..666
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/HealthModelSheetImporter.java on lines 608..618
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/OtherModelSheetImporter.java on lines 651..661
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/PredictiveModelSheetImporter.java on lines 669..679
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/QraModelSheetImporter.java on lines 658..669
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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

    @Override
    public Model retrieveModel(Sheet sheet) {
        PredictiveModel model = new PredictiveModel();
        model.setModelType("predictiveModel");
        model.setGeneralInformation(retrieveGeneralInformation(sheet));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ConsumptionModelSheetImporter.java on lines 636..646
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DoseResponseSheetImporter.java on lines 601..611
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ExposureModelSheetImporter.java on lines 677..687
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/GenericModelSheetImporter.java on lines 656..666
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/HealthModelSheetImporter.java on lines 608..618
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/OtherModelSheetImporter.java on lines 651..661
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ProcessModelSheetImporter.java on lines 609..620
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/QraModelSheetImporter.java on lines 658..669
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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

    @Override
    public Model retrieveModel(Sheet sheet) {
        DoseResponseModel model = new DoseResponseModel();
        model.setModelType("doseResponseModel");
        model.setGeneralInformation(retrieveGeneralInformation(sheet));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ConsumptionModelSheetImporter.java on lines 636..646
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ExposureModelSheetImporter.java on lines 677..687
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/GenericModelSheetImporter.java on lines 656..666
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/HealthModelSheetImporter.java on lines 608..618
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/OtherModelSheetImporter.java on lines 651..661
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/PredictiveModelSheetImporter.java on lines 669..679
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ProcessModelSheetImporter.java on lines 609..620
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/QraModelSheetImporter.java on lines 658..669
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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

    @Override
    public Model retrieveModel(Sheet sheet) {

        QraModel model = new QraModel();
        model.setModelType("qraModel");
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ConsumptionModelSheetImporter.java on lines 636..646
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DoseResponseSheetImporter.java on lines 601..611
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ExposureModelSheetImporter.java on lines 677..687
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/GenericModelSheetImporter.java on lines 656..666
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/HealthModelSheetImporter.java on lines 608..618
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/OtherModelSheetImporter.java on lines 651..661
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/PredictiveModelSheetImporter.java on lines 669..679
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ProcessModelSheetImporter.java on lines 609..620
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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 14 locations. Consider refactoring.
Open

                result.add(new String[]{
                        "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                        " WHERE " + DBKernel.delimitL("Nachweisgrenze") + " IS NOT NULL AND " + DBKernel.delimitL("NG_Einheit") + " IS NULL",
                        GuiMessages.getString("Die Einheit für die Nachweisgrenze sollte eingetragen werden!")
                        });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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

    @Override
    public Model retrieveModel(Sheet sheet) {
        ConsumptionModel model = new ConsumptionModel();
        model.setModelType("consumptionModel");
        model.setGeneralInformation(retrieveGeneralInformation(sheet));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DoseResponseSheetImporter.java on lines 601..611
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ExposureModelSheetImporter.java on lines 677..687
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/GenericModelSheetImporter.java on lines 656..666
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/HealthModelSheetImporter.java on lines 608..618
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/OtherModelSheetImporter.java on lines 651..661
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/PredictiveModelSheetImporter.java on lines 669..679
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ProcessModelSheetImporter.java on lines 609..620
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/QraModelSheetImporter.java on lines 658..669
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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

    @Override
    public Model retrieveModel(Sheet sheet) {
        GenericModel gm = new GenericModel();
        gm.setModelType("genericModel");
        gm.setGeneralInformation(retrieveGeneralInformation(sheet));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ConsumptionModelSheetImporter.java on lines 636..646
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DoseResponseSheetImporter.java on lines 601..611
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ExposureModelSheetImporter.java on lines 677..687
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/HealthModelSheetImporter.java on lines 608..618
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/OtherModelSheetImporter.java on lines 651..661
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/PredictiveModelSheetImporter.java on lines 669..679
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ProcessModelSheetImporter.java on lines 609..620
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/QraModelSheetImporter.java on lines 658..669
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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

    @Override
    public Model retrieveModel(Sheet sheet) {
        HealthModel model = new HealthModel();
        model.setModelType("healthModel");
        model.setGeneralInformation(retrieveGeneralInformation(sheet));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ConsumptionModelSheetImporter.java on lines 636..646
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DataModelSheetImporter.java on lines 551..562
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/DoseResponseSheetImporter.java on lines 601..611
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ExposureModelSheetImporter.java on lines 677..687
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/GenericModelSheetImporter.java on lines 656..666
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/OtherModelSheetImporter.java on lines 651..661
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/PredictiveModelSheetImporter.java on lines 669..679
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ProcessModelSheetImporter.java on lines 609..620
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/QraModelSheetImporter.java on lines 658..669
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/RiskModelSheetImporter.java on lines 654..664
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/swagger/ToxicologicalModelSheetImporter.java on lines 623..633

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 64.

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 14 locations. Consider refactoring.
Open

                result.add(new String[]{
                        "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                        " WHERE " + DBKernel.delimitL("Personalressourcen") + " IS NOT NULL AND " + DBKernel.delimitL("ZeitEinheit") + " IS NULL",
                        GuiMessages.getString("Die Zeiteinheit für die Personalressourcen sollte eingetragen werden!")
                        });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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 14 locations. Consider refactoring.
Open

                result.add(new String[]{
                        "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                        " WHERE " + DBKernel.delimitL("Kosten") + " IS NOT NULL AND " + DBKernel.delimitL("KostenEinheit") + " IS NULL",
                        GuiMessages.getString("Die Einheit für die Kosten sollte eingetragen werden!")
                        });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 359..363
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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 14 locations. Consider refactoring.
Open

            result.add(new String[]{
                    "SELECT " + idConf + " FROM " + DBKernel.delimitL(tablename) +
                    " WHERE " + DBKernel.delimitL("Delta") + " AND " + DBKernel.delimitL("Zeit") + " = 0",
                    GuiMessages.getString("Für den Zeitpunkt 0 kann das Delta Feld nicht angehakt sein!")
                    });
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java and 13 other locations - About 55 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 529..533
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 534..538
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 505..509
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 481..485
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 491..495
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 496..500
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 457..461
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 462..466
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 467..471
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 438..442
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 448..452
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 250..254
org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java on lines 215..219

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 64.

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

    if (annotations != null && annotations.size() > 0) {
      org.jlibsedml.Annotation indexAnnotation = annotations.get(0);
      Text indexAnnotationText = (Text) indexAnnotation.getAnnotationElement().getContent().get(0);
      selectedSimulationIndex = Integer.parseInt(indexAnnotationText.getText());
    }
de.bund.bfr.knime.fsklab.deprecatednodes/src-1_7_2/de/bund/bfr/knime/fsklab/nodes/v1_7_2/reader/ReaderNodeModel.java on lines 571..576
de.bund.bfr.knime.fsklab.nodes/src/de/bund/bfr/knime/fsklab/v2_0/reader/ReaderNodeUtil.java on lines 855..859

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 64.

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