neyric/wireit

View on GitHub
build/wireit-all/wireit-all-debug.js

Summary

Maintainability
F
3 mos
Test Coverage

File wireit-all-debug.js has 1408 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* This file is auto-generated by src/loader/scripts/meta_join.js */

YUI().use(function(Y) {
   var CONFIG = {
      groups: {
Severity: Major
Found in build/wireit-all/wireit-all-debug.js - About 3 days to fix

    Function LocalStorageSync has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function LocalStorageSync(key) {
        var localStorage;
    
        if (!key) {
            Y.error('No storage key specified.');
    Severity: Major
    Found in build/wireit-all/wireit-all-debug.js - About 2 hrs to fix

      Function _drawArrow has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

         _drawArrow: function(src, tgt) {
      
      
            var d = 7, // arrow width/2
                distance = Math.sqrt(Math.pow(src[0]-tgt[0],2) + Math.pow(src[1]-tgt[1],2)),
      Severity: Minor
      Found in build/wireit-all/wireit-all-debug.js - About 2 hrs to fix

        Function saveWiring has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

           saveWiring: function (e) {
              var o = {
                 name: Y.one('#wiring-name').get('value') || 'Unnamed'
              };
              
        Severity: Minor
        Found in build/wireit-all/wireit-all-debug.js - About 1 hr to fix

          Function _renderInputsOutputs has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

             _renderInputsOutputs: function () {
          
                this.setStdModContent(Y.WidgetStdMod.BODY, "<ul class='inputs'></ul><ul class='outputs'></ul>");
          
                var bb = this.get('boundingBox'),
          Severity: Minor
          Found in build/wireit-all/wireit-all-debug.js - About 1 hr to fix

            Function _onDragEditStart has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

               _onDragEditStart: function (ev) {
                  // save the position
                  this._editwireX = ev.pageX;
                  this._editwireY = ev.pageY;
                  
            Severity: Minor
            Found in build/wireit-all/wireit-all-debug.js - About 1 hr to fix

              Function setWiring has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                 setWiring: function (wiring) {
                    
                    var that = this,
                        layer = this.layer;
              
              
              Severity: Minor
              Found in build/wireit-all/wireit-all-debug.js - About 1 hr to fix

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

                YUI.add('wireit-app', function (Y, NAME) {
                
                
                // -- LocalStorageSync ---------------------------------------------------------------------
                // Saves WiringModel
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 2 wks to fix
                build/wireit-all/wireit-all.js on lines 1887..2346
                build/wireit-app/wireit-app-debug.js on lines 1..460
                build/wireit-app/wireit-app.js on lines 1..460

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

                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

                YUI.add('terminal-dragedit', function (Y, NAME) {
                
                /**
                 * @module terminal-dragedit
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 1 wk to fix
                build/terminal-dragedit/terminal-dragedit-debug.js on lines 1..259
                build/terminal-dragedit/terminal-dragedit.js on lines 1..259
                build/wireit-all/wireit-all.js on lines 1123..1381

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

                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

                YUI.add('arrow-wire', function (Y, NAME) {
                
                'use strict';
                
                /**
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 6 days to fix
                build/arrow-wire/arrow-wire-debug.js on lines 1..120
                build/arrow-wire/arrow-wire.js on lines 1..120
                build/wireit-all/wireit-all.js on lines 159..278

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

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

                YUI.add('container', function (Y, NAME) {
                
                'use strict';
                
                /**
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 6 days to fix
                build/container/container-debug.js on lines 1..223
                build/container/container.js on lines 1..223
                build/wireit-all/wireit-all.js on lines 404..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 1024.

                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

                YUI.add('wire-base', function (Y, NAME) {
                
                /**
                 * @module wire-base
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 5 days to fix
                build/wire-base/wire-base-debug.js on lines 1..191
                build/wire-base/wire-base.js on lines 1..191
                build/wireit-all/wireit-all.js on lines 1696..1886

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

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

                YUI.add('terminal', function (Y, NAME) {
                
                /**
                 * @module terminal
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 4 days to fix
                build/terminal/terminal-debug.js on lines 1..154
                build/terminal/terminal.js on lines 1..154
                build/wireit-all/wireit-all.js on lines 908..1061

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

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

                YUI.add('wires-delegate', function (Y, NAME) {
                
                /**
                 * @module wires-delegate
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 4 days to fix
                build/wireit-all/wireit-all.js on lines 2347..2481
                build/wires-delegate/wires-delegate-debug.js on lines 1..135
                build/wires-delegate/wires-delegate.js on lines 1..135

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

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

                YUI.add('inout-container', function (Y, NAME) {
                
                /**
                 * @module inout-container
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 4 days to fix
                build/inout-container/inout-container-debug.js on lines 1..106
                build/inout-container/inout-container.js on lines 1..106
                build/wireit-all/wireit-all.js on lines 714..819

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

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

                YUI.add('textarea-container', function (Y, NAME) {
                
                /**
                 * @module textarea-container
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 3 days to fix
                build/textarea-container/textarea-container-debug.js on lines 1..89
                build/textarea-container/textarea-container.js on lines 1..89
                build/wireit-all/wireit-all.js on lines 1558..1646

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

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

                YUI.add('terminal-scissors', function (Y, NAME) {
                
                /**
                 * @module terminal-scissors
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 3 days to fix
                build/terminal-scissors/terminal-scissors-debug.js on lines 1..89
                build/terminal-scissors/terminal-scissors.js on lines 1..89
                build/wireit-all/wireit-all.js on lines 1469..1557

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

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

                YUI.add('image-container', function (Y, NAME) {
                
                /**
                 * @module image-container
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 3 days to fix
                build/image-container/image-container-debug.js on lines 1..87
                build/image-container/image-container.js on lines 1..87
                build/wireit-all/wireit-all.js on lines 627..713

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

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

                YUI.add('bezier-wire', function (Y, NAME) {
                
                /**
                 * @module bezier-wire
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 2 days to fix
                build/bezier-wire/bezier-wire-debug.js on lines 1..82
                build/bezier-wire/bezier-wire.js on lines 1..82
                build/wireit-all/wireit-all.js on lines 279..360

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

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

                YUI().use(function(Y) {
                   var CONFIG = {
                      groups: {
                         'wireit': {
                            base: 'wireit/src/',
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 4 other locations - About 2 days to fix
                build/wireit-all/wireit-all.js on lines 3..158
                build/wireit-loader/wireit-loader-debug.js on lines 3..158
                build/wireit-loader/wireit-loader.js on lines 3..158
                src/wireit-loader/js/wireit.js on lines 3..158

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

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

                YUI.add('terminal-ddgroups', function (Y, NAME) {
                
                /**
                 * @module terminal-ddgroups
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 1 day to fix
                build/terminal-ddgroups/terminal-ddgroups-debug.js on lines 1..61
                build/terminal-ddgroups/terminal-ddgroups.js on lines 1..61
                build/wireit-all/wireit-all.js on lines 1062..1122

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

                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

                YUI.add('bidirectional-arrow-wire', function (Y, NAME) {
                
                /**
                 * @module bidirectional-arrow-wire
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 1 day to fix
                build/bidirectional-arrow-wire/bidirectional-arrow-wire-debug.js on lines 1..43
                build/bidirectional-arrow-wire/bidirectional-arrow-wire.js on lines 1..43
                build/wireit-all/wireit-all.js on lines 361..403

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

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

                YUI.add('widget-icons', function (Y, NAME) {
                
                /**
                 * @module widget-icons
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 1 day to fix
                build/widget-icons/widget-icons-debug.js on lines 1..49
                build/widget-icons/widget-icons.js on lines 1..49
                build/wireit-all/wireit-all.js on lines 1647..1695

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

                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

                YUI.add('straight-wire', function (Y, NAME) {
                
                /**
                 * @module straight-wire
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 1 day to fix
                build/straight-wire/straight-wire-debug.js on lines 1..43
                build/straight-wire/straight-wire.js on lines 1..43
                build/wireit-all/wireit-all.js on lines 865..907

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

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

                YUI.add('layer', function (Y, NAME) {
                
                /**
                 * @module layer
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 6 hrs to fix
                build/layer/layer-debug.js on lines 1..45
                build/layer/layer.js on lines 1..45
                build/wireit-all/wireit-all.js on lines 820..864

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

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

                YUI.add('terminal-input', function (Y, NAME) {
                
                /**
                 * @module terminal-input
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 5 hrs to fix
                build/terminal-input/terminal-input-debug.js on lines 1..44
                build/terminal-input/terminal-input.js on lines 1..44
                build/wireit-all/wireit-all.js on lines 1382..1425

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

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

                YUI.add('terminal-output', function (Y, NAME) {
                
                /**
                 * @module terminal-output
                 */
                Severity: Major
                Found in build/wireit-all/wireit-all-debug.js and 3 other locations - About 5 hrs to fix
                build/terminal-output/terminal-output-debug.js on lines 1..43
                build/terminal-output/terminal-output.js on lines 1..43
                build/wireit-all/wireit-all.js on lines 1426..1468

                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

                There are no issues that match your filters.

                Category
                Status