AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public faucet_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"faucet","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [amount], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 15 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 645..650
source/libraries/ContractInterfaces.ts on lines 953..958
source/libraries/ContractInterfaces.ts on lines 1401..1406
source/libraries/ContractInterfaces.ts on lines 1569..1574
source/libraries/ContractInterfaces.ts on lines 1583..1588
source/libraries/ContractInterfaces.ts on lines 2850..2855
source/libraries/ContractInterfaces.ts on lines 2976..2981
source/libraries/ContractInterfaces.ts on lines 3886..3891
source/libraries/ContractInterfaces.ts on lines 4222..4227
source/libraries/ContractInterfaces.ts on lines 4313..4318
source/libraries/ContractInterfaces.ts on lines 4341..4346
source/libraries/ContractInterfaces.ts on lines 4446..4451
source/libraries/ContractInterfaces.ts on lines 4670..4675
source/libraries/ContractInterfaces.ts on lines 4768..4773
source/libraries/ContractInterfaces.ts on lines 5062..5067

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

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

        public getFeeWindowByTimestamp_ = async(timestamp: BN, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_timestamp","type":"uint256"}],"name":"getFeeWindowByTimestamp","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [timestamp], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 5 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 3508..3513
source/libraries/ContractInterfaces.ts on lines 3592..3597
source/libraries/ContractInterfaces.ts on lines 3725..3730
source/libraries/ContractInterfaces.ts on lines 4390..4395
source/libraries/ContractInterfaces.ts on lines 4684..4689

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

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

        public getOrCreateFeeWindowByTimestamp_ = async(timestamp: BN, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_timestamp","type":"uint256"}],"name":"getOrCreateFeeWindowByTimestamp","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [timestamp], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 5 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 3508..3513
source/libraries/ContractInterfaces.ts on lines 3592..3597
source/libraries/ContractInterfaces.ts on lines 3725..3730
source/libraries/ContractInterfaces.ts on lines 4390..4395
source/libraries/ContractInterfaces.ts on lines 4628..4633

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

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

        public getFeeWindow_ = async(feeWindowId: BN, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_feeWindowId","type":"uint256"}],"name":"getFeeWindow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [feeWindowId], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 5 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 3508..3513
source/libraries/ContractInterfaces.ts on lines 3592..3597
source/libraries/ContractInterfaces.ts on lines 3725..3730
source/libraries/ContractInterfaces.ts on lines 4628..4633
source/libraries/ContractInterfaces.ts on lines 4684..4689

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

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

        public faucet_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"faucet","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [amount], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 15 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 645..650
source/libraries/ContractInterfaces.ts on lines 1163..1168
source/libraries/ContractInterfaces.ts on lines 1401..1406
source/libraries/ContractInterfaces.ts on lines 1569..1574
source/libraries/ContractInterfaces.ts on lines 1583..1588
source/libraries/ContractInterfaces.ts on lines 2850..2855
source/libraries/ContractInterfaces.ts on lines 2976..2981
source/libraries/ContractInterfaces.ts on lines 3886..3891
source/libraries/ContractInterfaces.ts on lines 4222..4227
source/libraries/ContractInterfaces.ts on lines 4313..4318
source/libraries/ContractInterfaces.ts on lines 4341..4346
source/libraries/ContractInterfaces.ts on lines 4446..4451
source/libraries/ContractInterfaces.ts on lines 4670..4675
source/libraries/ContractInterfaces.ts on lines 4768..4773
source/libraries/ContractInterfaces.ts on lines 5062..5067

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

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

        public incrementOpenInterestFromMarket_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"incrementOpenInterestFromMarket","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [amount], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 15 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 645..650
source/libraries/ContractInterfaces.ts on lines 953..958
source/libraries/ContractInterfaces.ts on lines 1163..1168
source/libraries/ContractInterfaces.ts on lines 1401..1406
source/libraries/ContractInterfaces.ts on lines 1569..1574
source/libraries/ContractInterfaces.ts on lines 1583..1588
source/libraries/ContractInterfaces.ts on lines 2850..2855
source/libraries/ContractInterfaces.ts on lines 2976..2981
source/libraries/ContractInterfaces.ts on lines 3886..3891
source/libraries/ContractInterfaces.ts on lines 4222..4227
source/libraries/ContractInterfaces.ts on lines 4341..4346
source/libraries/ContractInterfaces.ts on lines 4446..4451
source/libraries/ContractInterfaces.ts on lines 4670..4675
source/libraries/ContractInterfaces.ts on lines 4768..4773
source/libraries/ContractInterfaces.ts on lines 5062..5067

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

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

        public participants_ = async(arg0: BN, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"participants","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [arg0], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 5 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 3592..3597
source/libraries/ContractInterfaces.ts on lines 3725..3730
source/libraries/ContractInterfaces.ts on lines 4390..4395
source/libraries/ContractInterfaces.ts on lines 4628..4633
source/libraries/ContractInterfaces.ts on lines 4684..4689

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

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

        public getReportingParticipant_ = async(index: BN, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"getReportingParticipant","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [index], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 5 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 3508..3513
source/libraries/ContractInterfaces.ts on lines 3592..3597
source/libraries/ContractInterfaces.ts on lines 4390..4395
source/libraries/ContractInterfaces.ts on lines 4628..4633
source/libraries/ContractInterfaces.ts on lines 4684..4689

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

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

        public withdrawEther_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [amount], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 15 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 645..650
source/libraries/ContractInterfaces.ts on lines 953..958
source/libraries/ContractInterfaces.ts on lines 1163..1168
source/libraries/ContractInterfaces.ts on lines 1401..1406
source/libraries/ContractInterfaces.ts on lines 1569..1574
source/libraries/ContractInterfaces.ts on lines 1583..1588
source/libraries/ContractInterfaces.ts on lines 2850..2855
source/libraries/ContractInterfaces.ts on lines 2976..2981
source/libraries/ContractInterfaces.ts on lines 3886..3891
source/libraries/ContractInterfaces.ts on lines 4222..4227
source/libraries/ContractInterfaces.ts on lines 4313..4318
source/libraries/ContractInterfaces.ts on lines 4341..4346
source/libraries/ContractInterfaces.ts on lines 4446..4451
source/libraries/ContractInterfaces.ts on lines 4670..4675
source/libraries/ContractInterfaces.ts on lines 4768..4773

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

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

        public setController = async(controller: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [controller], "setController", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public initialize = async(universe: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"}],"name":"initialize","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [universe], "initialize", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public logMarketFinalized = async(universe: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"}],"name":"logMarketFinalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [universe], "logMarketFinalized", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public redeem = async(sender: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_sender","type":"address"}],"name":"redeem","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [sender], "redeem", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public setController = async(controller: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [controller], "setController", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public setController = async(controller: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [controller], "setController", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public updateSiblingMigrationTotal = async(token: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"updateSiblingMigrationTotal","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [token], "updateSiblingMigrationTotal", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public setController = async(controller: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [controller], "setController", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public transferOwnership = async(newOwner: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [newOwner], "transferOwnership", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public setController = async(controller: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [controller], "setController", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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

        public setController = async(controller: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [controller], "setController", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

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

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