fujaba/NetworkParser

View on GitHub

Showing 154 of 4,645 total issues

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

                if (quote) {
                    var txt = this.lastSearchText.substring(pos, i).trim();
                    if (txt.length > 0) {
                        split.push(txt);
                    }
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 7940..7959

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

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 (graph.edgeFactory[type]) {
            element = new graph.edgeFactory[type](data);
            util_1.Util.initControl(this, element, type, id, data);
            this.edges.push(element);
        }
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 3729..3733

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

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 (graph.nodeFactory[type]) {
            element = new graph.nodeFactory[type](data);
            util_1.Util.initControl(this, element, type, id, data);
            this.nodes.push(element);
        }
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 3734..3738

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

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

    ImportFile.prototype.setActive = function (active) {
        if (active) {
            EventBus_1.EventBus.setActiveHandler(ImportFile.name);
        }
        else {
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 6 other locations - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 1603..1610
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8295..8302
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8523..8530
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8805..8812
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9128..9135
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9196..9203

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

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

    PanelGroup.prototype.setActive = function (active) {
        if (active) {
            EventBus_1.EventBus.setActiveHandler(PanelGroup.name);
        }
        else {
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 6 other locations - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8295..8302
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8523..8530
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8651..8658
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8805..8812
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9128..9135
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9196..9203

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

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

    Select.prototype.setActive = function (active) {
        if (active) {
            EventBus_1.EventBus.setActiveHandler(Select.name);
        }
        else {
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 6 other locations - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 1603..1610
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8295..8302
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8523..8530
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8651..8658
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8805..8812
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9196..9203

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

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

    NewEdge.prototype.setActive = function (active) {
        if (active) {
            EventBus_1.EventBus.setActiveHandler(NewEdge.name);
        }
        else {
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 6 other locations - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 1603..1610
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8295..8302
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8523..8530
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8651..8658
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9128..9135
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9196..9203

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

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

    Drag.prototype.setActive = function (active) {
        if (active) {
            EventBus_1.EventBus.setActiveHandler(Drag.name);
        }
        else {
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 6 other locations - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 1603..1610
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8295..8302
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8651..8658
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8805..8812
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9128..9135
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9196..9203

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

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

    Zoom.prototype.setActive = function (active) {
        if (active) {
            EventBus_1.EventBus.setActiveHandler(Zoom.name);
        }
        else {
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 6 other locations - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 1603..1610
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8295..8302
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8523..8530
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8651..8658
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8805..8812
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9128..9135

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

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

    AddNode.prototype.setActive = function (active) {
        if (active) {
            EventBus_1.EventBus.setActiveHandler(AddNode.name);
        }
        else {
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 6 other locations - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 1603..1610
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8523..8530
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8651..8658
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 8805..8812
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9128..9135
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 9196..9203

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

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 (startPoint.x >= nextToStartPoint.x) {
                    x = startPoint.x + 5;
                }
                else {
                    x = startPoint.x - (infoTxt.getSize().x);
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 4145..4150

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

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

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

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

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

Refactorings

Further Reading

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

                if (startPoint.x >= nextToStartPoint.x) {
                    x = startPoint.x + 5;
                }
                else {
                    x = startPoint.x - (infoTxt.getSize().x);
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 4172..4177

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

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

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

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

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

Refactorings

Further Reading

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

                    var subBox = util_1.Util.create({
                        tag: 'rect',
                        rx: 0,
                        x: offsetX,
                        y: (offsetY + 28),
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 6819..6829

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

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

            box.appendChild(util_1.Util.create({
                tag: 'rect',
                rx: 0,
                x: offsetX,
                y: (offsetY + 28),
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 6871..6881

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

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 inputGeneratePackage = util_1.Util.createHTML({ tag: 'input', id: 'package', type: 'text', placeholder: 'Type your workspace for generated code...', value: '', style: { marginRight: '5px', width: '260px' } });
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 1764..1764

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

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 inputGenerateWorkspace = util_1.Util.createHTML({ tag: 'input', id: 'workspace', type: 'text', placeholder: 'Type your Folder for generated code...', value: 'src/main/java', style: { marginRight: '5px', width: '260px' } });
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 1766..1766

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

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

    Graph.prototype.init = function (owner, property, id) {
        _super.prototype.init.call(this, owner, property, id);
        this.layout();
        return this;
    };
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 3547..3551

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

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

    GraphModel.prototype.init = function (owner, property, id) {
        _super.prototype.init.call(this, owner, property, id);
        this.initCanvas();
        return this;
    };
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 3187..3191

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

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

    Object.defineProperty(Form.prototype, "lastProperty", {
        get: function () {
            return this.property.split('.')[0];
        },
        enumerable: true,
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 7501..7507

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

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

    Object.defineProperty(Table.prototype, "lastProperty", {
        get: function () {
            return this.property.split('.')[0];
        },
        enumerable: true,
Severity: Major
Found in src/main/resources/de/uniks/networkparser/graph/diagram.js and 1 other location - About 1 hr to fix
src/main/resources/de/uniks/networkparser/graph/diagram.js on lines 5794..5800

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

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