SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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

        isLeapYear: function(year){
            return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0));
        },
de.bund.bfr.knime.pmm.nodes/js-lib/bootstrap-editable/1_5_1/debug/js/bootstrap-editable.js on lines 5973..5975

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

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

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

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

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

Refactorings

Further Reading

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

      if (stream.match('TH ') || stream.match('SH ') || stream.match('SS ') || stream.match('HP ')) {
        stream.skipToEnd();
        return 'quote';
      }
de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js on lines 1196..1221

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

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

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

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

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

Refactorings

Further Reading

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

                                $('#commandLanguage').change(function() {
                                    window.sJoinRealtion.language_written_in = $('#commandLanguage').val();
                                });
de.bund.bfr.knime.fsklab.deprecatednodes/js-src/de/bund/bfr/knime/fsklab/nodes/joiner/joiner.js on lines 1803..1805

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

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

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

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

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

Refactorings

Further Reading

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

      var index = -1,
          length = array.length,
          othIndex = -1,
          othLength = other.length,
          result = Array(length + othLength);
de.bund.bfr.knime.fsklab.deprecatednodes/js-src/de/bund/bfr/knime/fsklab/nodes/joiner/jointjs/lodash.min.js on lines 3579..3583

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

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

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

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

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

Refactorings

Further Reading

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

                        if(stream.eatWhile(/[\w$\[\]]/)||stream.eat("{")&&stream.eatWhile(/[\w$\[\]]/)&&stream.eat("}")){
                                var c=stream.current();
                                if(PERL[c])
                                        return "variable-2";
                                else
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/perl/perl.js and 1 other location - About 35 mins to fix
de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/perl/perl.js on lines 688..691

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

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

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

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

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

Refactorings

Further Reading

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

                if (bs) {
                    ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top;
                }
de.bund.bfr.knime.pmm.nodes/js-src/de/bund/bfr/knime/pmm/js/modelplotter/jquery-ui.js on lines 2605..2607

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

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

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

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

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

Refactorings

Further Reading

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

    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([ "jquery" ], factory );
    } else {
de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/textile/textile.js on lines 7..11

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

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

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

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

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

Refactorings

Further Reading

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

                if (target.hasClass('month')
                        || target.hasClass('year')
                        || target.hasClass('decade')
                        || target.hasClass('century')) {
                    this.viewDate.setUTCDate(1);
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js and 1 other location - About 35 mins to fix
de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/troff/troff.js on lines 55..58

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

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

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

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

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

Refactorings

Further Reading

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

                O._$toolbar._$btnToggleView = $('<button class="btn btn-outline-secondary btn-sm btn-icon toggle-card" type="button"><i class="feather icon-pause"></i></button>')
                    .attr('aria-label', 'Toggle view')
                    .attr('title', 'Toggle view')
                    .attr('data-tooltip', '')
                    .attr('data-toggle-table-view', '')
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.table.js and 1 other location - About 35 mins to fix
de.bund.bfr.knime.js/src/js/app/app.editable.mt.Dialog.js on lines 87..92

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

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

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

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

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

Refactorings

Further Reading

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

            if (val[0] && val[0] == +val[0]) {
                val[0] = +val[0];
            }
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/ion.rangeSlider.js and 1 other location - About 35 mins to fix
de.bund.bfr.knime.js/src/js/lib/ion.rangeSlider.js on lines 417..419

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

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

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

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

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

Refactorings

Further Reading

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

        getDaysInMonth: function (year, month) {
            return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
        },
de.bund.bfr.knime.fsklab.deprecatednodes/js-src/bootstrap-datepicker/1_6_4/debug/js/bootstrap-datepicker.js on lines 1816..1818

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

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

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

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

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

Refactorings

Further Reading

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

                if (ls) {
                    ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left;
                }
de.bund.bfr.knime.pmm.nodes/js-src/de/bund/bfr/knime/pmm/js/modelplotter/jquery-ui.js on lines 2593..2595

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

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

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("pd_day") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

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

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

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("MHD_day") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

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

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

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Latitude") + " DOUBLE BEFORE " + DBKernel.delimitL("Ansprechpartner"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

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

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

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Produktkatalog") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

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

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

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("MHD_month") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

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

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

        DBKernel.sendRequest("ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("pd_year") + " INTEGER BEFORE " + DBKernel.delimitL("Serial"),
                false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

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

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

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Station") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 250..251
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

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

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

        DBKernel.sendRequest(
                "ALTER TABLE " + DBKernel.delimitL("Chargen") + " ADD COLUMN " + DBKernel.delimitL("Serial") + " VARCHAR(16383) BEFORE " + DBKernel.delimitL("Kommentar"), false);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java and 42 other locations - About 30 mins to fix
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 168..169
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 174..175
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 177..178
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 221..222
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 241..242
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 245..247
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 253..255
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 257..259
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 261..262
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 264..265
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 267..268
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 270..270
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 272..273
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 275..276
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 279..281
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 283..285
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 287..289
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 291..292
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 294..296
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 298..299
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 301..302
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 304..305
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 307..308
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 310..311
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 468..470
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 474..475
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 490..491
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 493..493
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 501..502
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 504..506
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 508..510
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 512..514
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 516..517
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 519..520
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 522..524
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 526..527
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 529..531
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 533..534
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 536..537
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 539..540
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 542..544
org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java on lines 583..584

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

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