SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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

        for (String param : functionParameters.keySet()) {
            if (functionParameters.get(param) == null) {
                return null;
            }
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 333..339
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 420..426
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 564..570

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

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

                                boolean lookIn = (col > 0 && foreignFields != null && foreignFields.length > col-1 && foreignFields[col-1] != null && myDBTable1.hashBox[col-1] != null);
org.hsh.bfr.db/src/org/hsh/bfr/db/exports/ExcelExport.java on lines 113..113
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java on lines 393..393
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/editoren/MyFilter.java on lines 134..134

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

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

        JsonNode generalInformationNode = join(modelA.get(GENERAL_INFORMATION),
                (Map<String, Object>) modelATopComponents.get(GENERAL_INFORMATION), modelB.get(GENERAL_INFORMATION),
                (Map<String, Object>) modelBTopComponents.get(GENERAL_INFORMATION),
                (Map<String, Object>) targetTopComponents.get(GENERAL_INFORMATION));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 163..165
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 166..169
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 170..172

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

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

                 boolean isMN = (col > 0 && mnTable != null && mnTable.length > col-1 && mnTable[col-1] != null);
org.hsh.bfr.db/src/org/hsh/bfr/db/exports/ExcelExport.java on lines 113..113
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java on lines 393..393
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/editoren/MyFilter.java on lines 138..138

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

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

        for (String param : functionParameters.keySet()) {
            if (functionParameters.get(param) == null) {
                return null;
            }
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 333..339
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 420..426
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 849..855

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

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

        for (String param : functionParameters.keySet()) {
            if (functionParameters.get(param) == null) {
                return null;
            }
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 333..339
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 564..570
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 849..855

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

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

        JsonNode scopeNode = join(modelA.get(SCOPE), (Map<String, Object>) modelATopComponents.get(SCOPE),
                modelB.get(SCOPE), (Map<String, Object>) modelBTopComponents.get(SCOPE),
                (Map<String, Object>) targetTopComponents.get(SCOPE));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 159..162
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 166..169
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 170..172

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

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

              if (col > 0 && foreignFields != null && foreignFields.length > col-1 && foreignFields[col-1] != null && hashBox[col-1] != null) {
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java and 3 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/exports/ExcelExport.java on lines 113..113
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/editoren/MyFilter.java on lines 134..134
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/editoren/MyFilter.java on lines 138..138

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

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

        for (String param : functionParameters.keySet()) {
            if (functionParameters.get(param) == null) {
                return null;
            }
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 420..426
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 564..570
de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/chart/Plotable.java on lines 849..855

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

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

        JsonNode mathNode = join(modelA.get(MODEL_MATH), (Map<String, Object>) modelATopComponents.get(MODEL_MATH),
                modelB.get(MODEL_MATH), (Map<String, Object>) modelBTopComponents.get(MODEL_MATH),
                (Map<String, Object>) targetTopComponents.get(MODEL_MATH));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 159..162
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 163..165
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 166..169

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

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

        JsonNode backgroundNode = join(modelA.get(DATA_BACKGROUND),
                (Map<String, Object>) modelATopComponents.get(DATA_BACKGROUND), modelB.get(DATA_BACKGROUND),
                (Map<String, Object>) modelBTopComponents.get(DATA_BACKGROUND),
                (Map<String, Object>) targetTopComponents.get(DATA_BACKGROUND));
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 159..162
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 163..165
de.bund.bfr.knime.fsklab.metadata.model/src/metadata/ConversionUtils.java on lines 170..172

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

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

                      if (j>0 && myFs != null && myFs.length > j-1 && myFs[j-1] != null && myFs[j-1].getTablename().equals("DoubleKennzahlen")) {
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/exports/ExcelExport.java and 3 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java on lines 393..393
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/editoren/MyFilter.java on lines 134..134
org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/editoren/MyFilter.java on lines 138..138

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

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

                            + (rs.getObject("Postfach") != null ? DBKernel.delimitL("Postfach") + "='" + rs.getString("Postfach").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

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

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

                            + (rs.getObject("PLZ") != null ? DBKernel.delimitL("PLZ") + "='" + rs.getString("PLZ").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

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

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

                            + (rs.getObject("Ansprechpartner") != null ? DBKernel.delimitL("Ansprechpartner") + "='" + rs.getString("Ansprechpartner").replace("'", "''") + "',"
                                    : "") + (rs.getObject("Telefon") != null ? DBKernel.delimitL("Telefon") + "='" + rs.getString("Telefon").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

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

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

                            + (rs.getObject("Fax") != null ? DBKernel.delimitL("Fax") + "='" + rs.getString("Fax").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

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

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

                            + (rs.getObject("Webseite") != null ? DBKernel.delimitL("Webseite") + "='" + rs.getString("Webseite").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566

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

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

                            + (rs.getObject("Land") != null ? DBKernel.delimitL("Land") + "='" + rs.getString("Land").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

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

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

                            + (rs.getObject("Name") != null ? DBKernel.delimitL("Name") + "='" + rs.getString("Name").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 557..557
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

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

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

                            + (rs.getObject("Hausnummer") != null ? DBKernel.delimitL("Hausnummer") + "='" + rs.getString("Hausnummer").replace("'", "''") + "'," : "")
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 12 other locations - About 35 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 555..555
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 556..556
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 558..558
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 559..559
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 560..560
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 561..561
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 562..562
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 563..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 564..564
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 565..565
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 566..566
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 567..567

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

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