verse/verse-javascript

View on GitHub

Showing 104 of 104 total issues

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

            tagGroupUnSubscribe: function tagGroupUnSubscribe(prio, nodeId, tagGroupId) {
                var buf = tagGroup.unsubscribe(nodeId, tagGroupId);
                buf = request.message(buf);
                myWebscoket.send(buf);
            },
Severity: Major
Found in src/verse.js and 10 other locations - About 1 hr to fix
src/verse.js on lines 255..259
src/verse.js on lines 291..295
src/verse.js on lines 303..307
src/verse.js on lines 315..319
src/verse.js on lines 327..331
src/verse.js on lines 353..357
src/verse.js on lines 365..369
src/verse.js on lines 454..458
src/verse.js on lines 466..470
src/verse.js on lines 478..482

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

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

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

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

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

Refactorings

Further Reading

Function setValue has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        setValue: function(hi, lo) {
            var negate = false;
            if (arguments.length === 1) {
                if (typeof(hi) === 'number') {
                    // Simplify bitfield retrieval by using abs() value.  We restore sign
Severity: Minor
Found in src/Int64.js - About 1 hr to fix

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

                tagGroupDestroy: function tagGroupDestroy(prio, nodeId, tagGroupId) {
                    var buf = tagGroup.destroy(nodeId, tagGroupId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 291..295
    src/verse.js on lines 303..307
    src/verse.js on lines 315..319
    src/verse.js on lines 327..331
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 466..470
    src/verse.js on lines 478..482

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

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

                layerUnSubscribe: function layerUnSubscribe(prio, nodeId, layerId) {
                    var buf = layer.unsubscribe(nodeId, layerId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 291..295
    src/verse.js on lines 303..307
    src/verse.js on lines 315..319
    src/verse.js on lines 327..331
    src/verse.js on lines 353..357
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 466..470

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

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

                nodeUnLock: function nodeUnLock(prio, nodeId, avatarId) {
                    var buf = node.unlock(nodeId, avatarId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 291..295
    src/verse.js on lines 303..307
    src/verse.js on lines 327..331
    src/verse.js on lines 353..357
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 466..470
    src/verse.js on lines 478..482

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

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

                nodeLink: function nodeLink(prio, parenNodeId, childNodeId) {
                    var buf = node.link(parenNodeId, childNodeId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 291..295
    src/verse.js on lines 303..307
    src/verse.js on lines 315..319
    src/verse.js on lines 327..331
    src/verse.js on lines 353..357
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 466..470
    src/verse.js on lines 478..482

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

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

                nodeOwner: function nodeOwner(prio, nodeId, userId) {
                    var buf = node.owner(nodeId, userId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 303..307
    src/verse.js on lines 315..319
    src/verse.js on lines 327..331
    src/verse.js on lines 353..357
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 466..470
    src/verse.js on lines 478..482

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

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

                nodePrio: function nodePrio(prio, nodeId, priority) {
                    var buf = node.prio(nodeId, priority);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 291..295
    src/verse.js on lines 303..307
    src/verse.js on lines 315..319
    src/verse.js on lines 353..357
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 466..470
    src/verse.js on lines 478..482

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

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

                tagGroupSubscribe: function tagGroupSubscribe(prio, nodeId, tagGroupId) {
                    var buf = tagGroup.subscribe(nodeId, tagGroupId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 291..295
    src/verse.js on lines 303..307
    src/verse.js on lines 315..319
    src/verse.js on lines 327..331
    src/verse.js on lines 353..357
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 466..470
    src/verse.js on lines 478..482

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

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

                layerDestroy: function layerDestroy(prio, nodeId, layerId) {
                    var buf = layer.destroy(nodeId, layerId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 291..295
    src/verse.js on lines 303..307
    src/verse.js on lines 315..319
    src/verse.js on lines 327..331
    src/verse.js on lines 353..357
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 466..470
    src/verse.js on lines 478..482

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

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

                nodeLock: function nodeLock(prio, nodeId, avatarId) {
                    var buf = node.lock(nodeId, avatarId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 291..295
    src/verse.js on lines 315..319
    src/verse.js on lines 327..331
    src/verse.js on lines 353..357
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 466..470
    src/verse.js on lines 478..482

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

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

                layerSubscribe: function layerSubscribe(prio, nodeId, layerId) {
                    var buf = layer.subscribe(nodeId, layerId);
                    buf = request.message(buf);
                    myWebscoket.send(buf);
                },
    Severity: Major
    Found in src/verse.js and 10 other locations - About 1 hr to fix
    src/verse.js on lines 255..259
    src/verse.js on lines 291..295
    src/verse.js on lines 303..307
    src/verse.js on lines 315..319
    src/verse.js on lines 327..331
    src/verse.js on lines 353..357
    src/verse.js on lines 365..369
    src/verse.js on lines 377..381
    src/verse.js on lines 454..458
    src/verse.js on lines 478..482

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

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

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

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

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

    Refactorings

    Further Reading

    Function nodeHandler has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        nodeHandler = function nodeHandler(data) {
            data.forEach(function(cmd) {
                console.log(cmd);
                if (cmd.CMD === 'NODE_CREATE') {
                    // Subscribe to every node
    Severity: Minor
    Found in example/app_standalone.js - About 1 hr to fix

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

              } else if (opCode > 63 && opCode < 68) { //TagGroup commands
                  length = receivedView.getUint8(bufferPosition);
                  cmdValues = tagGroup.getTagGroupValues(opCode, receivedView, bufferPosition - 1, length);
      
                  return {
      Severity: Major
      Found in src/response.js and 3 other locations - About 1 hr to fix
      src/response.js on lines 83..127
      src/response.js on lines 101..127
      src/response.js on lines 110..127

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

              } else if (opCode > 127 && opCode < 162) { //Layer commands
                  length = receivedView.getUint8(bufferPosition);
                  cmdValues = layer.getLayerValues(opCode, receivedView, bufferPosition - 1, length);
      
                  return {
      Severity: Major
      Found in src/response.js and 3 other locations - About 1 hr to fix
      src/response.js on lines 83..127
      src/response.js on lines 92..127
      src/response.js on lines 101..127

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

              } else if (opCode > 31 && opCode < 44) { //node commands
                  length = receivedView.getUint8(bufferPosition);
                  cmdValues = node.getNodeValues(opCode, receivedView, bufferPosition - 1, length);
      
                  return {
      Severity: Major
      Found in src/response.js and 3 other locations - About 1 hr to fix
      src/response.js on lines 92..127
      src/response.js on lines 101..127
      src/response.js on lines 110..127

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

                  nodeSubscribe: function nodeSubscribe(prio, nodeId) {
                      var buf = node.subscribe(nodeId);
                      buf = request.message(buf);
                      myWebscoket.send(buf);
                  },
      Severity: Major
      Found in src/verse.js and 3 other locations - About 1 hr to fix
      src/verse.js on lines 221..225
      src/verse.js on lines 243..247
      src/verse.js on lines 279..283

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

                  nodeDestroy: function nodeDestroy(prio, nodeId) {
                      var buf = node.destroy(nodeId);
                      buf = request.message(buf);
                      myWebscoket.send(buf);
                  },
      Severity: Major
      Found in src/verse.js and 3 other locations - About 1 hr to fix
      src/verse.js on lines 232..236
      src/verse.js on lines 243..247
      src/verse.js on lines 279..283

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

                  nodeUmask: function nodeUmask(prio, permission) {
                      var buf = node.umask(permission);
                      buf = request.message(buf);
                      myWebscoket.send(buf);
                  },
      Severity: Major
      Found in src/verse.js and 3 other locations - About 1 hr to fix
      src/verse.js on lines 221..225
      src/verse.js on lines 232..236
      src/verse.js on lines 243..247

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

              } else if (opCode > 67 && opCode < 99) { //Tag commands
                  length = receivedView.getUint8(bufferPosition);
                  cmdValues = tag.getTagValues(opCode, receivedView, bufferPosition - 1, length);
      
                  return {
      Severity: Major
      Found in src/response.js and 3 other locations - About 1 hr to fix
      src/response.js on lines 83..127
      src/response.js on lines 92..127
      src/response.js on lines 110..127

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

      Severity
      Category
      Status
      Source
      Language