AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public mintForReportingParticipant = async(amountMigrated: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amountMigrated","type":"uint256"}],"name":"mintForReportingParticipant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [amountMigrated], "mintForReportingParticipant", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 16 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 638..643
source/libraries/ContractInterfaces.ts on lines 946..951
source/libraries/ContractInterfaces.ts on lines 1156..1161
source/libraries/ContractInterfaces.ts on lines 1562..1567
source/libraries/ContractInterfaces.ts on lines 1576..1581
source/libraries/ContractInterfaces.ts on lines 2843..2848
source/libraries/ContractInterfaces.ts on lines 2969..2974
source/libraries/ContractInterfaces.ts on lines 3879..3884
source/libraries/ContractInterfaces.ts on lines 4215..4220
source/libraries/ContractInterfaces.ts on lines 4306..4311
source/libraries/ContractInterfaces.ts on lines 4334..4339
source/libraries/ContractInterfaces.ts on lines 4439..4444
source/libraries/ContractInterfaces.ts on lines 4663..4668
source/libraries/ContractInterfaces.ts on lines 4677..4682
source/libraries/ContractInterfaces.ts on lines 4761..4766
source/libraries/ContractInterfaces.ts on lines 5055..5060

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

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

        public buy = async(attotokens: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_attotokens","type":"uint256"}],"name":"buy","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [attotokens], "buy", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 16 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 638..643
source/libraries/ContractInterfaces.ts on lines 946..951
source/libraries/ContractInterfaces.ts on lines 1156..1161
source/libraries/ContractInterfaces.ts on lines 1394..1399
source/libraries/ContractInterfaces.ts on lines 1562..1567
source/libraries/ContractInterfaces.ts on lines 1576..1581
source/libraries/ContractInterfaces.ts on lines 2843..2848
source/libraries/ContractInterfaces.ts on lines 3879..3884
source/libraries/ContractInterfaces.ts on lines 4215..4220
source/libraries/ContractInterfaces.ts on lines 4306..4311
source/libraries/ContractInterfaces.ts on lines 4334..4339
source/libraries/ContractInterfaces.ts on lines 4439..4444
source/libraries/ContractInterfaces.ts on lines 4663..4668
source/libraries/ContractInterfaces.ts on lines 4677..4682
source/libraries/ContractInterfaces.ts on lines 4761..4766
source/libraries/ContractInterfaces.ts on lines 5055..5060

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

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

        public decrementOpenInterestFromMarket = async(amount: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"decrementOpenInterestFromMarket","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [amount], "decrementOpenInterestFromMarket", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 16 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 638..643
source/libraries/ContractInterfaces.ts on lines 946..951
source/libraries/ContractInterfaces.ts on lines 1156..1161
source/libraries/ContractInterfaces.ts on lines 1394..1399
source/libraries/ContractInterfaces.ts on lines 1562..1567
source/libraries/ContractInterfaces.ts on lines 1576..1581
source/libraries/ContractInterfaces.ts on lines 2843..2848
source/libraries/ContractInterfaces.ts on lines 2969..2974
source/libraries/ContractInterfaces.ts on lines 3879..3884
source/libraries/ContractInterfaces.ts on lines 4215..4220
source/libraries/ContractInterfaces.ts on lines 4306..4311
source/libraries/ContractInterfaces.ts on lines 4439..4444
source/libraries/ContractInterfaces.ts on lines 4663..4668
source/libraries/ContractInterfaces.ts on lines 4677..4682
source/libraries/ContractInterfaces.ts on lines 4761..4766
source/libraries/ContractInterfaces.ts on lines 5055..5060

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

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

        public logTimestampSet = async(newTimestamp: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newTimestamp","type":"uint256"}],"name":"logTimestampSet","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [newTimestamp], "logTimestampSet", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 16 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 946..951
source/libraries/ContractInterfaces.ts on lines 1156..1161
source/libraries/ContractInterfaces.ts on lines 1394..1399
source/libraries/ContractInterfaces.ts on lines 1562..1567
source/libraries/ContractInterfaces.ts on lines 1576..1581
source/libraries/ContractInterfaces.ts on lines 2843..2848
source/libraries/ContractInterfaces.ts on lines 2969..2974
source/libraries/ContractInterfaces.ts on lines 3879..3884
source/libraries/ContractInterfaces.ts on lines 4215..4220
source/libraries/ContractInterfaces.ts on lines 4306..4311
source/libraries/ContractInterfaces.ts on lines 4334..4339
source/libraries/ContractInterfaces.ts on lines 4439..4444
source/libraries/ContractInterfaces.ts on lines 4663..4668
source/libraries/ContractInterfaces.ts on lines 4677..4682
source/libraries/ContractInterfaces.ts on lines 4761..4766
source/libraries/ContractInterfaces.ts on lines 5055..5060

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

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

        public mintForReportingParticipant = async(amountMigrated: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amountMigrated","type":"uint256"}],"name":"mintForReportingParticipant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [amountMigrated], "mintForReportingParticipant", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 16 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 638..643
source/libraries/ContractInterfaces.ts on lines 946..951
source/libraries/ContractInterfaces.ts on lines 1156..1161
source/libraries/ContractInterfaces.ts on lines 1394..1399
source/libraries/ContractInterfaces.ts on lines 1562..1567
source/libraries/ContractInterfaces.ts on lines 1576..1581
source/libraries/ContractInterfaces.ts on lines 2843..2848
source/libraries/ContractInterfaces.ts on lines 2969..2974
source/libraries/ContractInterfaces.ts on lines 3879..3884
source/libraries/ContractInterfaces.ts on lines 4306..4311
source/libraries/ContractInterfaces.ts on lines 4334..4339
source/libraries/ContractInterfaces.ts on lines 4439..4444
source/libraries/ContractInterfaces.ts on lines 4663..4668
source/libraries/ContractInterfaces.ts on lines 4677..4682
source/libraries/ContractInterfaces.ts on lines 4761..4766
source/libraries/ContractInterfaces.ts on lines 5055..5060

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

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

        public incrementTimestamp = async(amount: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"incrementTimestamp","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [amount], "incrementTimestamp", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 16 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 638..643
source/libraries/ContractInterfaces.ts on lines 946..951
source/libraries/ContractInterfaces.ts on lines 1156..1161
source/libraries/ContractInterfaces.ts on lines 1394..1399
source/libraries/ContractInterfaces.ts on lines 1562..1567
source/libraries/ContractInterfaces.ts on lines 2843..2848
source/libraries/ContractInterfaces.ts on lines 2969..2974
source/libraries/ContractInterfaces.ts on lines 3879..3884
source/libraries/ContractInterfaces.ts on lines 4215..4220
source/libraries/ContractInterfaces.ts on lines 4306..4311
source/libraries/ContractInterfaces.ts on lines 4334..4339
source/libraries/ContractInterfaces.ts on lines 4439..4444
source/libraries/ContractInterfaces.ts on lines 4663..4668
source/libraries/ContractInterfaces.ts on lines 4677..4682
source/libraries/ContractInterfaces.ts on lines 4761..4766
source/libraries/ContractInterfaces.ts on lines 5055..5060

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

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

        public setRepPriceInAttoEth = async(repPriceInAttoEth: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_repPriceInAttoEth","type":"uint256"}],"name":"setRepPriceInAttoEth","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [repPriceInAttoEth], "setRepPriceInAttoEth", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 16 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 638..643
source/libraries/ContractInterfaces.ts on lines 946..951
source/libraries/ContractInterfaces.ts on lines 1156..1161
source/libraries/ContractInterfaces.ts on lines 1394..1399
source/libraries/ContractInterfaces.ts on lines 1562..1567
source/libraries/ContractInterfaces.ts on lines 1576..1581
source/libraries/ContractInterfaces.ts on lines 2843..2848
source/libraries/ContractInterfaces.ts on lines 2969..2974
source/libraries/ContractInterfaces.ts on lines 4215..4220
source/libraries/ContractInterfaces.ts on lines 4306..4311
source/libraries/ContractInterfaces.ts on lines 4334..4339
source/libraries/ContractInterfaces.ts on lines 4439..4444
source/libraries/ContractInterfaces.ts on lines 4663..4668
source/libraries/ContractInterfaces.ts on lines 4677..4682
source/libraries/ContractInterfaces.ts on lines 4761..4766
source/libraries/ContractInterfaces.ts on lines 5055..5060

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

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 mintForReportingParticipant_ = async(amountMigrated: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amountMigrated","type":"uint256"}],"name":"mintForReportingParticipant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [amountMigrated], 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 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 decrementOpenInterest_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"decrementOpenInterest","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 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 incrementOpenInterest_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"incrementOpenInterest","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 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 getShareToken_ = async(outcome: BN, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_outcome","type":"uint256"}],"name":"getShareToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [outcome], 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 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 16 locations. Consider refactoring.
Open

        public decrementOpenInterestFromMarket_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"decrementOpenInterestFromMarket","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 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 mintForReportingParticipant_ = async(amountMigrated: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amountMigrated","type":"uint256"}],"name":"mintForReportingParticipant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [amountMigrated], 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 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 mintFeeTokens_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"mintFeeTokens","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 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 setTimestamp_ = async(timestamp: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_timestamp","type":"uint256"}],"name":"setTimestamp","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [timestamp], 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 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 incrementTimestamp_ = async(amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"incrementTimestamp","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 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 buy_ = async(attotokens: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_attotokens","type":"uint256"}],"name":"buy","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [attotokens], 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 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 setRepPriceInAttoEth_ = async(repPriceInAttoEth: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_repPriceInAttoEth","type":"uint256"}],"name":"setRepPriceInAttoEth","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [repPriceInAttoEth], 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 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 buyParticipationTokens_ = async(attotokens: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_attotokens","type":"uint256"}],"name":"buyParticipationTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [attotokens], 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 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 logTimestampSet_ = async(newTimestamp: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newTimestamp","type":"uint256"}],"name":"logTimestampSet","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [newTimestamp], 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 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
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

Severity
Category
Status
Source
Language