darkwallet/darkwallet

View on GitHub

Showing 392 of 903 total issues

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core"));
    }
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 4 other locations - About 4 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 2..228
src/vendors/crypto-js/cryptojs.js on lines 3526..3715
src/vendors/crypto-js/cryptojs.js on lines 3717..3908
src/vendors/crypto-js/cryptojs.js on lines 5482..6251

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

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

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

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

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

Refactorings

Further Reading

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

    this.aboutEquals=function( moduleSize,  i,  j)
        {
            if (Math.abs(i - this.y) <= moduleSize && Math.abs(j - this.x) <= moduleSize)
            {
                var moduleSizeDiff = Math.abs(moduleSize - this.estimatedModuleSize);
Severity: Major
Found in src/vendors/jsqrcode/jsqrcode.js and 1 other location - About 4 hrs to fix
src/vendors/jsqrcode/jsqrcode.js on lines 2677..2685

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

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

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

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

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

Refactorings

Further Reading

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

    this.aboutEquals=function( moduleSize,  i,  j)
        {
            if (Math.abs(i - this.y) <= moduleSize && Math.abs(j - this.x) <= moduleSize)
            {
                var moduleSizeDiff = Math.abs(moduleSize - this.estimatedModuleSize);
Severity: Major
Found in src/vendors/jsqrcode/jsqrcode.js and 1 other location - About 4 hrs to fix
src/vendors/jsqrcode/jsqrcode.js on lines 3259..3267

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

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./sha1"), require("./hmac"));
    }
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 2126..2257
src/vendors/crypto-js/cryptojs.js on lines 5074..5156

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

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./sha1"), require("./hmac"));
    }
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 3380..3524
src/vendors/crypto-js/cryptojs.js on lines 5074..5156

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

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

Object.defineProperty(HistoryRow.prototype, 'myOutValue', {
    get: function() {
        var res = 0;
        var impactkeys = Object.keys(this.impact);
        for(var i=0; i<impactkeys.length; i++) {
Severity: Major
Found in src/js/model/historyrow.js and 1 other location - About 3 hrs to fix
src/js/model/historyrow.js on lines 173..183

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

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

;(function (root, factory, undef) {
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha512"));
    }
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 2126..2257
src/vendors/crypto-js/cryptojs.js on lines 3380..3524

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

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

Object.defineProperty(HistoryRow.prototype, 'myInValue', {
    get: function() {
        var res = 0;
        var impactkeys = Object.keys(this.impact);
        for(var i=0; i<impactkeys.length; i++) {
Severity: Major
Found in src/js/model/historyrow.js and 1 other location - About 3 hrs to fix
src/js/model/historyrow.js on lines 188..198

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

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

            _doReset: function () {
                this._hash = new X64WordArray.init([
                    new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),
                    new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),
                    new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 1 other location - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 5102..5109

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

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

        if (!mpks[this.hdPockets.length]) {
            var keyStore = this.wallet.store.getPrivateData(password);
            var rootKey = Bitcoin.HDNode.fromBase58(keyStore.privKey);
            mpks[this.hdPockets.length] = rootKey.deriveHardened(this.hdPockets.length).toBase58(false);
        }
Severity: Major
Found in src/js/model/pockets.js and 1 other location - About 3 hrs to fix
src/js/model/pockets.js on lines 91..95

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

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

            _doReset: function () {
                this._hash = new X64WordArray.init([
                    new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),
                    new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),
                    new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),
Severity: Major
Found in src/vendors/crypto-js/cryptojs.js and 1 other location - About 3 hrs to fix
src/vendors/crypto-js/cryptojs.js on lines 5243..5250

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

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

        if (!pcodes[this.hdPockets.length]) {
            var keyStore = this.wallet.store.getPrivateData(password);
            var pCodeKey = Bitcoin.HDNode.fromBase58(keyStore.pCodeKey);
            pcodes[this.hdPockets.length] = pCodeKey.deriveHardened(this.hdPockets.length).toBase58(false);
        }
Severity: Major
Found in src/js/model/pockets.js and 1 other location - About 3 hrs to fix
src/js/model/pockets.js on lines 85..89

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

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 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 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 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 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 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 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 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 3112..3165
src/vendors/crypto-js/cryptojs.js on lines 3167..3215
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("./sha256"));
    }
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 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 3167..3215
src/vendors/crypto-js/cryptojs.js on lines 3217..3260
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 4750..5072

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

Severity
Category
Status
Source
Language