neyric/wireit

View on GitHub

Showing 497 of 497 total issues

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

        {
            "name": "Data Object",
            "category": "dataobject",
            "container": {
              "xtype":"Y.ImageContainer", 
Severity: Major
Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 6 other locations - About 2 hrs to fix
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 175..187
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 221..233
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 313..325
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 457..469
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 614..626
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 716..728

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

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

        {
            "name": "Pool",
            "category": "swimlane",
            "container": {
              "xtype":"Y.ImageContainer", 
Severity: Major
Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 6 other locations - About 2 hrs to fix
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 221..233
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 253..265
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 313..325
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 457..469
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 614..626
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 716..728

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

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

        {
            "name": "Intermediate Message Event",
            "category": "catching",
            "container": {
              "xtype":"Y.ImageContainer", 
Severity: Major
Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 6 other locations - About 2 hrs to fix
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 175..187
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 221..233
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 253..265
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 313..325
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 614..626
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 716..728

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

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

        for (var gI in this.groups)
        {
        var go = {};
        go.group = this.groups[gI].group;
        go.overrides = overrides.groupOverrides[gI];
Severity: Major
Found in sandbox/grouping/js/Group.js and 1 other location - About 2 hrs to fix
sandbox/grouping/js/Group.js on lines 466..473

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

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

        {
            "name": "Start Event",
            "category": "startevent",
            "container": {
              "xtype":"Y.ImageContainer", 
Severity: Major
Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 6 other locations - About 2 hrs to fix
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 175..187
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 221..233
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 253..265
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 457..469
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 614..626
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 716..728

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

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

        for (var cI in this.containers)
        {
        var co = {};
        co.container = this.containers[cI].container;
        co.overrides = overrides.containerOverrides[cI];
Severity: Major
Found in sandbox/grouping/js/Group.js and 1 other location - About 2 hrs to fix
sandbox/grouping/js/Group.js on lines 474..481

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

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

        {
            "name": "Intermediate Event",
            "category": "throwing",
            "container": {
              "xtype":"Y.ImageContainer", 
Severity: Major
Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 6 other locations - About 2 hrs to fix
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 175..187
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 221..233
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 253..265
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 313..325
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 457..469
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 716..728

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

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

        {
            "name": "End Event",
            "category": "endevent",
            "container": {
              "xtype":"Y.ImageContainer", 
Severity: Major
Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 6 other locations - About 2 hrs to fix
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 175..187
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 221..233
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 253..265
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 313..325
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 457..469
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 614..626

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

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

Consider simplifying this complex logical expression.
Open

    if (rule &&
        (rule == TOK_DIV ||
         rule == TOK_MOD ||
         rule == TOK_AND ||
         rule == TOK_OR) &&
Severity: Critical
Found in sandbox/grouping/examples/sawire/xml/xpath.js - About 2 hrs to fix

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

            {
                "name": "Association (unidirectional)",
                "category": "connector",
                "container": {
                  "xtype":"Y.ImageContainer",  // TODO: Y.Wire
    Severity: Major
    Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 3 other locations - About 2 hrs to fix
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 860..872
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 874..886
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 902..914

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

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

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

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

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

    Refactorings

    Further Reading

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

           var C = -2*z[1]*bProst + Math.pow(z[0],2) + Math.pow(z[1],2) - Math.pow(d,2) + Math.pow(bProst,2);
    sandbox/wireit-rightsquarearrow-wire/wireit-rightsquarearrow-wire.js on lines 127..127

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

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

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

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

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

    Refactorings

    Further Reading

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

            {
                "name": "Message Flow",
                "category": "connector",
                "container": {
                  "xtype":"Y.ImageContainer",  // TODO: Y.Wire
    Severity: Major
    Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 3 other locations - About 2 hrs to fix
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 874..886
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 888..900
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 902..914

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

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

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

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

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

    Refactorings

    Further Reading

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

            {
                "name": "Association (undirected)",
                "category": "connector",
                "container": {
                  "xtype":"Y.ImageContainer",  // TODO: Y.Wire
    Severity: Major
    Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 3 other locations - About 2 hrs to fix
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 860..872
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 888..900
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 902..914

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

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

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

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

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

    Refactorings

    Further Reading

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

           var C = -2*z[1]*bProst + Math.pow(z[0],2) + Math.pow(z[1],2) - Math.pow(d,2) + Math.pow(bProst,2);
    sandbox/wireit-leftsquarearrow-wire/wireit-leftsquarearrow-wire.js on lines 133..133

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

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

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

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

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

    Refactorings

    Further Reading

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

            {
                "name": "Association (bidirectional)",
                "category": "connector",
                "container": {
                  "xtype":"Y.ImageContainer",  // TODO: Y.Wire
    Severity: Major
    Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 3 other locations - About 2 hrs to fix
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 860..872
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 874..886
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 888..900

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

    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

    Function initializer has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            initializer: function(args) {
    
               var oMenuBar = new YAHOO.widget.MenuBar("menuContainer2", { 
                   autosubmenudisplay: true, 
                     hidedelay: 750, 
    Severity: Major
    Found in sandbox/yide/menuBar.js - About 2 hrs to fix

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

              {
                  "name": "IT System",
                  "category": "dataobject",
                  "container": {
                    "xtype":"Y.ImageContainer", 
      Severity: Major
      Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 46 other locations - About 2 hrs to fix
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 39..51
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 53..65
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 67..79
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 81..93
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 114..126
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 128..140
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 142..154
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 156..168
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 189..201
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 203..215
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 235..247
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 281..293
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 295..307
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 327..339
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 341..353
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 355..367
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 369..381
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 383..395
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 397..409
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 411..423
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 425..437
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 439..451
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 471..483
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 485..497
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 499..511
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 513..525
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 527..539
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 541..553
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 555..567
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 569..581
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 582..594
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 596..608
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 628..640
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 642..654
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 656..668
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 670..682
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 684..696
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 698..710
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 730..742
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 744..756
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 758..770
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 772..784
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 786..798
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 800..812
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 814..826
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 828..840

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

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

              {
                  "name": "Data Store",
                  "category": "dataobject",
                  "container": {
                    "xtype":"Y.ImageContainer", 
      Severity: Major
      Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 46 other locations - About 2 hrs to fix
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 39..51
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 53..65
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 67..79
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 81..93
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 114..126
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 128..140
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 142..154
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 156..168
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 189..201
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 203..215
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 235..247
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 267..279
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 295..307
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 327..339
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 341..353
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 355..367
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 369..381
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 383..395
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 397..409
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 411..423
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 425..437
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 439..451
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 471..483
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 485..497
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 499..511
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 513..525
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 527..539
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 541..553
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 555..567
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 569..581
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 582..594
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 596..608
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 628..640
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 642..654
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 656..668
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 670..682
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 684..696
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 698..710
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 730..742
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 744..756
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 758..770
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 772..784
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 786..798
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 800..812
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 814..826
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 828..840

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

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

              {
                  "name": "Intermediate Signal Event",
                  "category": "throwing",
                  "container": {
                    "xtype":"Y.ImageContainer", 
      Severity: Major
      Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 46 other locations - About 2 hrs to fix
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 39..51
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 53..65
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 67..79
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 81..93
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 114..126
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 128..140
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 142..154
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 156..168
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 189..201
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 203..215
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 235..247
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 267..279
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 281..293
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 295..307
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 327..339
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 341..353
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 355..367
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 369..381
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 383..395
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 397..409
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 411..423
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 425..437
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 439..451
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 471..483
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 485..497
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 499..511
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 513..525
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 527..539
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 541..553
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 555..567
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 569..581
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 582..594
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 596..608
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 628..640
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 642..654
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 656..668
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 684..696
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 698..710
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 730..742
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 744..756
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 758..770
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 772..784
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 786..798
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 800..812
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 814..826
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 828..840

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

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

              {
                  "name": "End Escalation Event",
                  "category": "endevent",
                  "container": {
                    "xtype":"Y.ImageContainer", 
      Severity: Major
      Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 46 other locations - About 2 hrs to fix
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 39..51
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 53..65
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 67..79
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 81..93
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 114..126
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 128..140
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 142..154
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 156..168
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 189..201
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 203..215
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 235..247
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 267..279
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 281..293
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 295..307
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 327..339
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 341..353
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 355..367
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 369..381
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 383..395
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 397..409
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 411..423
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 425..437
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 439..451
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 471..483
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 485..497
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 499..511
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 513..525
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 527..539
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 541..553
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 555..567
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 569..581
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 582..594
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 596..608
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 628..640
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 642..654
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 656..668
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 670..682
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 684..696
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 698..710
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 730..742
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 744..756
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 758..770
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 772..784
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 786..798
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 800..812
      sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 814..826

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

      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