SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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

        de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem mdLiteratureItem = new de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem(
                de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem.Type.MD, "author", 0, "title", "abstractText",
                "journal", "volume", "issue", 0, 0, "website", 0, "comment");
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/PmmXmlDocTest.java on lines 71..73
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/PmmXmlDocTest.java on lines 87..89

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

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

        de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem mLiteratureItem = new de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem(
                de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem.Type.M, "author", 0, "title", "abstractText",
                "journal", "volume", "issue", 0, 0, "website", 0, "comment");
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/PmmXmlDocTest.java on lines 79..81
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/PmmXmlDocTest.java on lines 87..89

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

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

                manageForeign(textField6, rs.getObject("Inzidenz"), getForeignVal("DoubleKennzahlen", rs.getInt("Inzidenz"), DBKernel.delimitL("Wert") + "," + DBKernel.delimitL("Minimum") + "," + DBKernel.delimitL("Maximum")));
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java and 9 other locations - About 40 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 185..185
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 186..186
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 189..189
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 191..191
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 193..193
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 197..197
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 202..202
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 203..203
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 204..204

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

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

        try {
            RScript rScript = readScript(m_paramScript.getStringValue()); // May throw IOException

            portObj.param = rScript.getScript();
            libraries.addAll(rScript.getLibraries());
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeModel.java on lines 162..169
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeModel.java on lines 182..189

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

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

                manageForeign(textField12, rs.getObject("Letalitaetsdosis100"), getForeignVal("DoubleKennzahlen", rs.getInt("Letalitaetsdosis100"), DBKernel.delimitL("Wert") + "," + DBKernel.delimitL("Minimum") + "," + DBKernel.delimitL("Maximum")));
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java and 9 other locations - About 40 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 184..184
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 185..185
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 186..186
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 189..189
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 191..191
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 193..193
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 202..202
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 203..203
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 204..204

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

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

                manageForeign(textField9, rs.getObject("Symptomdauer"), getForeignVal("DoubleKennzahlen", rs.getInt("Symptomdauer"), DBKernel.delimitL("Wert") + "," + DBKernel.delimitL("Minimum") + "," + DBKernel.delimitL("Maximum")));
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java and 9 other locations - About 40 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 184..184
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 185..185
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 186..186
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 191..191
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 193..193
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 197..197
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 202..202
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 203..203
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 204..204

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

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

                manageForeign(textField10, rs.getObject("Infektionsdosis"), getForeignVal("DoubleKennzahlen", rs.getInt("Infektionsdosis"), DBKernel.delimitL("Wert") + "," + DBKernel.delimitL("Minimum") + "," + DBKernel.delimitL("Maximum")));
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java and 9 other locations - About 40 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 184..184
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 185..185
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 186..186
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 189..189
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 193..193
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 197..197
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 202..202
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 203..203
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 204..204

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

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

                manageForeign(textField14, rs.getObject("Mortalitaet"), getForeignVal("DoubleKennzahlen", rs.getInt("Mortalitaet"), DBKernel.delimitL("Wert") + "," + DBKernel.delimitL("Minimum") + "," + DBKernel.delimitL("Maximum")));
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java and 9 other locations - About 40 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 184..184
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 185..185
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 186..186
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 189..189
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 191..191
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 193..193
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 197..197
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 202..202
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 204..204

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

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

        try {
            RScript rScript = readScript(m_vizScript.getStringValue()); // May throw IOException

            portObj.viz = rScript.getScript();
            libraries.addAll(rScript.getLibraries());
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeModel.java on lines 162..169
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeModel.java on lines 172..179

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

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

        de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem emLiteratureItem = new de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem(
                de.bund.bfr.knime.pmm.extendedtable.items.LiteratureItem.Type.EM, "author", 0, "title", "abstractText",
                "journal", "volume", "issue", 0, 0, "website", 0, "comment");
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/PmmXmlDocTest.java on lines 71..73
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/PmmXmlDocTest.java on lines 79..81

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

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

                manageForeign(textField15, rs.getObject("Letalitaet"), getForeignVal("DoubleKennzahlen", rs.getInt("Letalitaet"), DBKernel.delimitL("Wert") + "," + DBKernel.delimitL("Minimum") + "," + DBKernel.delimitL("Maximum")));
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java and 9 other locations - About 40 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 184..184
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 185..185
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 186..186
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 189..189
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 191..191
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 193..193
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 197..197
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 202..202
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 203..203

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

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

                manageForeign(textField8, rs.getObject("Inkubationszeit"), getForeignVal("DoubleKennzahlen", rs.getInt("Inkubationszeit"), DBKernel.delimitL("Wert") + "," + DBKernel.delimitL("Minimum") + "," + DBKernel.delimitL("Maximum")));
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java and 9 other locations - About 40 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 184..184
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 185..185
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 189..189
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 191..191
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 193..193
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 197..197
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 202..202
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 203..203
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java on lines 204..204

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

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

        try {
            RScript rScript = readScript(m_modelScript.getStringValue()); // May throw IOException

            portObj.model = rScript.getScript();
            libraries.addAll(rScript.getLibraries());
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeModel.java on lines 172..179
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeModel.java on lines 182..189

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

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

        try {
            if (inSchema.conforms(inSpec)) {
                result = (result == null ? inSchema : KnimeSchema.merge(result, inSchema));
                hasM2 = true;
            }
de.bund.bfr.knime.pmm.nodes/src/de/bund/bfr/knime/pmm/estimatedmodelwriter/EstimatedModelWriterNodeModel.java on lines 654..660

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

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

                    if (rowuuid == null && ts.getMatrix() != null && ts.getMatrix().size() > 0) {
                        rowuuid = ((MatrixXml) ts.getMatrix().get(0)).dbuuid;
                    }
de.bund.bfr.knime.pmm.nodes/src/de/bund/bfr/knime/pmm/timeserieswriter/TimeSeriesWriterNodeModel.java on lines 129..131

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

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

    if (obj1.containsKey("script")) {
      fskObject1.model = obj1.getString("script");
    } else {
      setScriptBack(((CombinedFskPortObject) fskObject1).getFirstFskPortObject(),
          ((CombinedFskPortObject) fskObject1).getSecondFskPortObject(),
de.bund.bfr.knime.fsklab.deprecatednodes/src-1_7_2/de/bund/bfr/knime/fsklab/nodes/v1_7_2/joiner/JoinerNodeModel.java on lines 423..429

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

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

    try {
      String connectionString = MAPPER.writeValueAsString(connections);
      settings.addString(CFG_JOIN_SCRIPT, connectionString);

      String joinerModelsDataAsString = MAPPER.writeValueAsString(joinerModelsData);
de.bund.bfr.knime.fsklab.nodes/src/de/bund/bfr/knime/fsklab/v2_0/joiner/JoinerViewValue.java on lines 63..71

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

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

    @Override
    protected void validateSettings(NodeSettingsRO settings) throws InvalidSettingsException {
        m_modelScript.validateSettings(settings);
        m_paramScript.validateSettings(settings);
        m_vizScript.validateSettings(settings);
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeDialog.java on lines 153..161
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeModel.java on lines 113..121
de.bund.bfr.knime.fsklab.deprecatednodes/src-prerakip/de/bund/bfr/knime/pmm/fskx/creator/FskxCreatorNodeModel.java on lines 133..141

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

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

    try {
      String relationsAsString = MAPPER.writeValueAsString(joinRelations);
      settings.addString(CFG_JOINER_RELATION, relationsAsString);

      String joinerModelsDataAsString = MAPPER.writeValueAsString(joinerModelsData);
de.bund.bfr.knime.fsklab.nodes/src/de/bund/bfr/knime/fsklab/v2_0/joiner/JoinerNodeSettings.java on lines 69..77

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

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

        for (int i=0;i<table1.getModel().getRowCount();i++) {
            table1.getModel().setValueAt(null, i, 0);
            table1.getModel().setValueAt(null, i, 1);
        }
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/editoren/MyChartDialog.java on lines 290..293

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

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