darkwallet/darkwallet

View on GitHub

Showing 392 of 903 total issues

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./cipher-core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 13 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 2259..2324
src/vendors/crypto-js/cryptojs.js on lines 2816..2893
src/vendors/crypto-js/cryptojs.js on lines 2895..3010
src/vendors/crypto-js/cryptojs.js on lines 3071..3110
src/vendors/crypto-js/cryptojs.js on lines 3112..3165
src/vendors/crypto-js/cryptojs.js on lines 3167..3215
src/vendors/crypto-js/cryptojs.js on lines 3217..3260
src/vendors/crypto-js/cryptojs.js on lines 3262..3301
src/vendors/crypto-js/cryptojs.js on lines 3303..3332
src/vendors/crypto-js/cryptojs.js on lines 3334..3378
src/vendors/crypto-js/cryptojs.js on lines 4469..4548
src/vendors/crypto-js/cryptojs.js on lines 4750..5072
src/vendors/crypto-js/cryptojs.js on lines 5158..5480

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

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./cipher-core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 13 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 2259..2324
src/vendors/crypto-js/cryptojs.js on lines 2816..2893
src/vendors/crypto-js/cryptojs.js on lines 2895..3010
src/vendors/crypto-js/cryptojs.js on lines 3012..3069
src/vendors/crypto-js/cryptojs.js on lines 3071..3110
src/vendors/crypto-js/cryptojs.js on lines 3167..3215
src/vendors/crypto-js/cryptojs.js on lines 3217..3260
src/vendors/crypto-js/cryptojs.js on lines 3262..3301
src/vendors/crypto-js/cryptojs.js on lines 3303..3332
src/vendors/crypto-js/cryptojs.js on lines 3334..3378
src/vendors/crypto-js/cryptojs.js on lines 4469..4548
src/vendors/crypto-js/cryptojs.js on lines 4750..5072
src/vendors/crypto-js/cryptojs.js on lines 5158..5480

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

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./cipher-core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 13 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 2259..2324
src/vendors/crypto-js/cryptojs.js on lines 2816..2893
src/vendors/crypto-js/cryptojs.js on lines 2895..3010
src/vendors/crypto-js/cryptojs.js on lines 3012..3069
src/vendors/crypto-js/cryptojs.js on lines 3071..3110
src/vendors/crypto-js/cryptojs.js on lines 3112..3165
src/vendors/crypto-js/cryptojs.js on lines 3217..3260
src/vendors/crypto-js/cryptojs.js on lines 3262..3301
src/vendors/crypto-js/cryptojs.js on lines 3303..3332
src/vendors/crypto-js/cryptojs.js on lines 3334..3378
src/vendors/crypto-js/cryptojs.js on lines 4469..4548
src/vendors/crypto-js/cryptojs.js on lines 4750..5072
src/vendors/crypto-js/cryptojs.js on lines 5158..5480

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

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./x64-core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 13 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 2259..2324
src/vendors/crypto-js/cryptojs.js on lines 2816..2893
src/vendors/crypto-js/cryptojs.js on lines 2895..3010
src/vendors/crypto-js/cryptojs.js on lines 3012..3069
src/vendors/crypto-js/cryptojs.js on lines 3071..3110
src/vendors/crypto-js/cryptojs.js on lines 3112..3165
src/vendors/crypto-js/cryptojs.js on lines 3167..3215
src/vendors/crypto-js/cryptojs.js on lines 3217..3260
src/vendors/crypto-js/cryptojs.js on lines 3262..3301
src/vendors/crypto-js/cryptojs.js on lines 3303..3332
src/vendors/crypto-js/cryptojs.js on lines 3334..3378
src/vendors/crypto-js/cryptojs.js on lines 4469..4548
src/vendors/crypto-js/cryptojs.js on lines 5158..5480

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

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./cipher-core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 13 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 2259..2324
src/vendors/crypto-js/cryptojs.js on lines 2816..2893
src/vendors/crypto-js/cryptojs.js on lines 2895..3010
src/vendors/crypto-js/cryptojs.js on lines 3012..3069
src/vendors/crypto-js/cryptojs.js on lines 3071..3110
src/vendors/crypto-js/cryptojs.js on lines 3112..3165
src/vendors/crypto-js/cryptojs.js on lines 3167..3215
src/vendors/crypto-js/cryptojs.js on lines 3217..3260
src/vendors/crypto-js/cryptojs.js on lines 3262..3301
src/vendors/crypto-js/cryptojs.js on lines 3303..3332
src/vendors/crypto-js/cryptojs.js on lines 4469..4548
src/vendors/crypto-js/cryptojs.js on lines 4750..5072
src/vendors/crypto-js/cryptojs.js on lines 5158..5480

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

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./cipher-core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 13 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 2259..2324
src/vendors/crypto-js/cryptojs.js on lines 2895..3010
src/vendors/crypto-js/cryptojs.js on lines 3012..3069
src/vendors/crypto-js/cryptojs.js on lines 3071..3110
src/vendors/crypto-js/cryptojs.js on lines 3112..3165
src/vendors/crypto-js/cryptojs.js on lines 3167..3215
src/vendors/crypto-js/cryptojs.js on lines 3217..3260
src/vendors/crypto-js/cryptojs.js on lines 3262..3301
src/vendors/crypto-js/cryptojs.js on lines 3303..3332
src/vendors/crypto-js/cryptojs.js on lines 3334..3378
src/vendors/crypto-js/cryptojs.js on lines 4469..4548
src/vendors/crypto-js/cryptojs.js on lines 4750..5072
src/vendors/crypto-js/cryptojs.js on lines 5158..5480

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

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

GatewayClient.prototype.subscribe = function(
    address, handle_fetch, handle_update)
{
    var self = this;
    this.make_request("subscribe_address", [address], function(response) {
Severity: Major
Found in src/vendors/darkwallet_gateway/client/gateway.js and 1 other location - About 3 hrs to fix
src/vendors/darkwallet_gateway/client/gateway.js on lines 223..232

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

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

GatewayClient.prototype.renew = function(address, handle_fetch, handle_update)
{
    var self = this;
    this.make_request("renew_address", [address], function(response) {
        handle_fetch(response["error"], response["result"][0]);
Severity: Major
Found in src/vendors/darkwallet_gateway/client/gateway.js and 1 other location - About 3 hrs to fix
src/vendors/darkwallet_gateway/client/gateway.js on lines 126..136

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 4550..4748
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 4550..4748
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 4550..4748
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 4550..4748

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 4550..4748
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 4550..4748
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4550..4748
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 2547..2814
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 4550..4748
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

;(function (root, factory) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 9 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 230..1104
src/vendors/crypto-js/cryptojs.js on lines 1852..1974
src/vendors/crypto-js/cryptojs.js on lines 1976..2124
src/vendors/crypto-js/cryptojs.js on lines 2326..2468
src/vendors/crypto-js/cryptojs.js on lines 2470..2545
src/vendors/crypto-js/cryptojs.js on lines 4050..4316
src/vendors/crypto-js/cryptojs.js on lines 4318..4467
src/vendors/crypto-js/cryptojs.js on lines 4550..4748
src/vendors/crypto-js/cryptojs.js on lines 6253..6556

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

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

Wallet.prototype.generateAddress = function() {
  var k = this.addresses.length
  var address = this.getExternalAccount().derive(k).getAddress()

  this.addresses.push(address.toString())
Severity: Major
Found in src/vendors/bitcoinjs-lib/bitcoinjs.js and 1 other location - About 3 hrs to fix
src/vendors/bitcoinjs-lib/bitcoinjs.js on lines 6156..6163

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

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

        var _zr = WordArray.create([
            5, 14,  7,  0,  9,  2, 11,  4, 13,  6, 15,  8,  1, 10,  3, 12,
            6, 11,  3,  7,  0, 13,  5, 10, 14, 15,  8, 12,  4,  9,  1,  2,
            15,  5,  1,  3,  7, 14,  6,  9, 11,  8, 12,  2, 10,  0,  4, 13,
            8,  6,  4,  1,  3, 11, 15,  0,  5, 12,  2, 13,  9,  7, 10, 14,
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 2 other locations - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 4097..4102
src/vendors/crypto-js/cryptojs.js on lines 4103..4108

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

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