LearnPAd/learnpad

View on GitHub

Showing 1,823 of 4,261 total issues

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

    applyIfToFields : function(o){
        this.items.each(function(f){
           Ext.applyIf(f, o);
        });
        return this;
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 5984..5989

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

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(idx < (this.items.getCount() -1)){
                    nextFocus = this.items.itemAt(idx+1);
                }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/ux/superbox/SuperBoxSelect.js on lines 756..758

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

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

        this.mon(this.ul, {
            scope: this,
            click: this.onClick,
            mouseover: this.onMouseOver,
            mouseout: this.onMouseOut
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 975..980
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-menu-debug.js on lines 1012..1017

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

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

            return function() {
                var retval = origFn.apply(this || window, arguments);
                newFn.apply(scope || this || window, arguments);
                return retval;
            };
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/ext-foundation-debug.js on lines 577..581

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

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

    applyToFields : function(o){
        this.items.each(function(f){
           Ext.apply(f, o);
        });
        return this;
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 5996..6001

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

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(!this.isHiddenRoot() && (this.getOwnerTree().animate && anim !== false) || anim){
                this.ui.animExpand(function(){
                    this.fireEvent('expand', this);
                    this.runCallback(callback, scope || this, [this]);
                    if(deep === true){
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-tree-debug.js on lines 2746..2759

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

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(idx < (this.items.getCount() -1)){
                nextFocus = this.items.itemAt(idx+1);
            }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/ux/superbox/SuperBoxSelect.js on lines 828..830

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

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

            this.mon(this.el, {
                scope: this,
                click: this.onClick,
                mouseenter: this.activate,
                mouseleave: this.deactivate
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 975..980
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-menu-debug.js on lines 221..226

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

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

    setEditable: function(editable){
        if(editable != this.editable){
            this.editable = editable;
            this.updateEditState();
        }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 1445..1450
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 1473..1478

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

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

    setReadOnly: function(readOnly){
        if(readOnly != this.readOnly){
            this.readOnly = readOnly;
            this.updateEditState();
        }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 1445..1450
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 1459..1464

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

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((this.getOwnerTree().animate && anim !== false) || anim){
                this.ui.animCollapse(function(){
                    this.fireEvent('collapse', this);
                    this.runCallback(callback, scope || this, [this]);
                    if(deep === true){
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-tree-debug.js on lines 2699..2712

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

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

    setHideTrigger: function(hideTrigger){
        if(hideTrigger != this.hideTrigger){
            this.hideTrigger = hideTrigger;
            this.updateEditState();
        }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 1459..1464
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 1473..1478

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

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

    public Main() {
        String confFileName = System.getProperty(configFileLocationLabel);
        if (confFileName == null) {
            this.conf = new PropertyUtil();
        } else {
Severity: Minor
Found in lp-content-analysis/src/main/java/eu/learnpad/ca/main/Main.java and 1 other location - About 40 mins to fix
lp-content-analysis/src/main/java/eu/learnpad/ca/impl/BridgeImpl.java on lines 58..65

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

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

    public BridgeImpl() {
        String confFileName = System.getProperty(configFileLocationLabel);
        if (confFileName == null) {
            this.conf = new PropertyUtil();
        } else {
lp-content-analysis/src/main/java/eu/learnpad/ca/main/Main.java on lines 29..36

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

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

            case AdoPackage.RECORD_TYPE: {
                RECORDType recordType = (RECORDType)theEObject;
                T result = caseRECORDType(recordType);
                if (result == null) result = defaultCase(theEObject);
                return result;
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 69..74
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 75..80
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 81..86
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 87..92
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 93..98
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 99..104
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 105..110
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 111..116
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 117..122
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 123..128
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 129..134
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 135..140
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 141..146
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 153..158
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 159..164
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 165..170
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 171..176
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 177..182
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 189..194
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 195..200
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 167..172
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 173..178

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

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

            case XwikiPackage.DOCUMENT_ROOT: {
                DocumentRoot documentRoot = (DocumentRoot)theEObject;
                T result = caseDocumentRoot(documentRoot);
                if (result == null) result = defaultCase(theEObject);
                return result;
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 69..74
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 75..80
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 81..86
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 87..92
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 93..98
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 99..104
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 105..110
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 111..116
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 117..122
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 123..128
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 129..134
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 135..140
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 141..146
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 153..158
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 159..164
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 165..170
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 171..176
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 177..182
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 183..188
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 189..194
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 195..200
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 167..172
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 173..178

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

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

            case AdoPackage.APPLICATIONMODEL_TYPE: {
                APPLICATIONMODELType applicationmodelType = (APPLICATIONMODELType)theEObject;
                T result = caseAPPLICATIONMODELType(applicationmodelType);
                if (result == null) result = defaultCase(theEObject);
                return result;
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 69..74
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 75..80
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 87..92
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 93..98
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 99..104
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 105..110
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 111..116
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 117..122
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 123..128
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 129..134
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 135..140
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 141..146
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 153..158
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 159..164
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 165..170
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 171..176
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 177..182
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 183..188
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 189..194
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 195..200
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 167..172
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 173..178

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

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

            case AdoPackage.MODEL_TYPE: {
                MODELType modelType = (MODELType)theEObject;
                T result = caseMODELType(modelType);
                if (result == null) result = defaultCase(theEObject);
                return result;
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 69..74
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 75..80
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 81..86
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 87..92
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 93..98
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 99..104
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 105..110
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 111..116
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 117..122
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 123..128
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 129..134
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 135..140
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 141..146
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 153..158
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 159..164
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 165..170
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 171..176
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 183..188
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 189..194
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 195..200
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 167..172
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 173..178

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

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

            case AdoPackage.IREF_TYPE: {
                IREFType irefType = (IREFType)theEObject;
                T result = caseIREFType(irefType);
                if (result == null) result = defaultCase(theEObject);
                return result;
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 69..74
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 75..80
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 81..86
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 87..92
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 93..98
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 99..104
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 105..110
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 111..116
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 117..122
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 123..128
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 129..134
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 135..140
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 153..158
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 159..164
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 165..170
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 171..176
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 177..182
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 183..188
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 189..194
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 195..200
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 167..172
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 173..178

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

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

            case AdoPackage.MODELREFERENCE_TYPE: {
                MODELREFERENCEType modelreferenceType = (MODELREFERENCEType)theEObject;
                T result = caseMODELREFERENCEType(modelreferenceType);
                if (result == null) result = defaultCase(theEObject);
                return result;
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 69..74
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 75..80
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 81..86
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 87..92
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 93..98
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 99..104
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 105..110
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 111..116
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 117..122
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 123..128
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 129..134
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 135..140
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 141..146
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 153..158
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 159..164
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 171..176
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 177..182
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 183..188
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 189..194
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/util/AdoSwitch.java on lines 195..200
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 147..152
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 167..172
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/util/XwikiSwitch.java on lines 173..178

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

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