neyric/wireit

View on GitHub
sandbox/editor-examples/BPMN-editor/bpmn-2.0.js

Summary

Maintainability
F
2 wks
Test Coverage

File bpmn-2.0.js has 785 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var bpmnLanguage = {
    
    // Set a unique name for the language
    languageName: "bpmn2.0",

Severity: Major
Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js - About 1 day to fix

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

                layoutOptions: {
                     units: [
                       { position: 'top', height: 57, body: 'top'},
                      { position: 'left', width: 290, resize: true, body: 'left', gutter: '5px', collapse: true, 
                        collapseSize: 25, header: 'BPMN Modules', scroll: true, animate: true },
    Severity: Major
    Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 1 other location - About 5 hrs to fix
    sandbox/editor-base/editor-base.js on lines 32..41

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

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

    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": "Group",
                "category": "artifact",
                "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 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 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 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

    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

    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

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

            {
                "name": "Lane",
                "category": "swimlane",
                "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 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
    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 Multiple 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 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": "Expanded Subprocess",
                "category": "activity",
                "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 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
    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": "Collapsed Event-Subprocess",
                "category": "activity",
                "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 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
    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": "Start Conditional Event",
                "category": "startevent",
                "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 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": "Start Compensation Event",
                "category": "startevent",
                "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 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 Cancel Event",
                "category": "catching",
                "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 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 Multiple Event",
                "category": "catching",
                "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 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": "End Message 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 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 Error 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 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": "Message",
                "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 281..293
    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 Link Event",
                "category": "catching",
                "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 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": "Cancel End 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 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": "Collapsed Subprocess",
                "category": "activity",
                "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 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
    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": "Event-Subprocess",
                "category": "activity",
                "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 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
    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": "Start Timer Event",
                "category": "startevent",
                "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 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": "Event-based Gateway",
                "category": "gateway",
                "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 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
    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": "catching",
                "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 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": "Inclusive Gateway",
                "category": "gateway",
                "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 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
    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": "Collapsed Pool",
                "category": "swimlane",
                "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 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
    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": "Start Signal Event",
                "category": "startevent",
                "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 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": "Start Multiple Event",
                "category": "startevent",
                "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 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 Escalation Event",
                "category": "catching",
                "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 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 Message 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 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": "Parallel Gateway",
                "category": "gateway",
                "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 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
    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 Conditional Event",
                "category": "catching",
                "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 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": "Start Message Event",
                "category": "startevent",
                "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 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": "Start Error Event",
                "category": "startevent",
                "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 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 Compensation 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 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 Error Event",
                "category": "catching",
                "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 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 Compensation Event",
                "category": "catching",
                "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 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": "End Compensation 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 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 Timer Event",
                "category": "catching",
                "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 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": "Complex Gateway",
                "category": "gateway",
                "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 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
    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": "Text Annotation",
                "category": "artifact",
                "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 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
    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": "Start Parallel Multiple Event",
                "category": "startevent",
                "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 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 Parallel Multiple Event",
                "category": "catching",
                "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 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 Link 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 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 Multiple 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 670..682
    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": "Terminate End 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 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

    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": "Start Escalation Event",
                "category": "startevent",
                "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 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 Escalation",
                "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 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 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 Signal 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 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 2 locations. Consider refactoring.
    Open

                  "terminals": [
                          {"direction": [-1,0], "offsetPosition": {"left": -20, "top": 7 }, "name": "in"},
                          {"direction": [1,0], "offsetPosition": {"right": -20, "top": 7 }, "name": "out"}
                  ]
    Severity: Major
    Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 1 other location - About 1 hr to fix
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 28..31

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

    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

                  "terminals": [
                          {"direction": [-1,0], "offsetPosition": {"left": -15, "top": 35 }, "name": "in"},
                            {"direction": [1,0], "offsetPosition": {"right": -15, "top": 35 }, "name": "out"}
                  ],
    Severity: Major
    Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 1 other location - About 1 hr to fix
    sandbox/editor-examples/BPMN-editor/bpmn-2.0.js on lines 107..110

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

    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

                    for(var i = 0 ; i < p.length ; i++) {
                        var v = p[i].split('=');
                        oP[v[0]]=window.decodeURIComponent(v[1]);
                    }
    Severity: Major
    Found in sandbox/editor-examples/BPMN-editor/bpmn-2.0.js and 1 other location - About 1 hr to fix
    sandbox/editor/editor.js on lines 425..428

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

    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

    There are no issues that match your filters.

    Category
    Status