devevents/conf-app-boilerplate

View on GitHub

Showing 91 of 95 total issues

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

    post(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
Severity: Major
Found in src/typings/jquery/jquery.d.ts and 1 other location - About 1 hr to fix
src/typings/jquery/jquery.d.ts on lines 660..660

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

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

    reject<T>(
        object: _.Dictionary<T>,
        iterator: _.ObjectIterator<T, boolean>,
        context?: any): T[];
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 5 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 296..299
src/typings/underscore/underscore.d.ts on lines 304..307
src/typings/underscore/underscore.d.ts on lines 312..315
src/typings/underscore/underscore.d.ts on lines 320..323
src/typings/underscore/underscore.d.ts on lines 355..358

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

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

    select<T>(
        object: _.Dictionary<T>,
        iterator: _.ObjectIterator<T, boolean>,
        context?: any): T[];
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 5 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 296..299
src/typings/underscore/underscore.d.ts on lines 304..307
src/typings/underscore/underscore.d.ts on lines 312..315
src/typings/underscore/underscore.d.ts on lines 355..358
src/typings/underscore/underscore.d.ts on lines 363..366

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

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

    select<T>(
        list: _.List<T>,
        iterator: _.ListIterator<T, boolean>,
        context?: any): T[];
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 5 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 296..299
src/typings/underscore/underscore.d.ts on lines 304..307
src/typings/underscore/underscore.d.ts on lines 320..323
src/typings/underscore/underscore.d.ts on lines 355..358
src/typings/underscore/underscore.d.ts on lines 363..366

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

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

    filter<T>(
        list: _.List<T>,
        iterator: _.ListIterator<T, boolean>,
        context?: any): T[];
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 5 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 304..307
src/typings/underscore/underscore.d.ts on lines 312..315
src/typings/underscore/underscore.d.ts on lines 320..323
src/typings/underscore/underscore.d.ts on lines 355..358
src/typings/underscore/underscore.d.ts on lines 363..366

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

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

    filter<T>(
        object: _.Dictionary<T>,
        iterator: _.ObjectIterator<T, boolean>,
        context?: any): T[];
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 5 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 296..299
src/typings/underscore/underscore.d.ts on lines 312..315
src/typings/underscore/underscore.d.ts on lines 320..323
src/typings/underscore/underscore.d.ts on lines 355..358
src/typings/underscore/underscore.d.ts on lines 363..366

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

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

    reject<T>(
        list: _.List<T>,
        iterator: _.ListIterator<T, boolean>,
        context?: any): T[];
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 5 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 296..299
src/typings/underscore/underscore.d.ts on lines 304..307
src/typings/underscore/underscore.d.ts on lines 312..315
src/typings/underscore/underscore.d.ts on lines 320..323
src/typings/underscore/underscore.d.ts on lines 363..366

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

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

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

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

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

Refactorings

Further Reading

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

    find<T>(
        list: _.List<T>,
        iterator: _.ListIterator<T, boolean>,
        context?: any): T;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 3 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 252..255
src/typings/underscore/underscore.d.ts on lines 260..263
src/typings/underscore/underscore.d.ts on lines 268..271

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

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

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

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

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

Refactorings

Further Reading

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

    min<T>(
        list: _.List<T>,
        iterator?: _.ListIterator<T, any>,
        context?: any): T;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 1 other location - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 512..515

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

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

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

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

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

Refactorings

Further Reading

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

    find<T>(
        object: _.Dictionary<T>,
        iterator: _.ObjectIterator<T, boolean>,
        context?: any): T;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 3 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 244..247
src/typings/underscore/underscore.d.ts on lines 260..263
src/typings/underscore/underscore.d.ts on lines 268..271

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

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

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

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

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

Refactorings

Further Reading

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

    detect<T>(
        list: _.List<T>,
        iterator: _.ListIterator<T, boolean>,
        context?: any): T;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 3 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 244..247
src/typings/underscore/underscore.d.ts on lines 252..255
src/typings/underscore/underscore.d.ts on lines 268..271

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

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

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

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

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

Refactorings

Further Reading

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

    detect<T>(
        object: _.Dictionary<T>,
        iterator: _.ObjectIterator<T, boolean>,
        context?: any): T;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 3 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 244..247
src/typings/underscore/underscore.d.ts on lines 252..255
src/typings/underscore/underscore.d.ts on lines 260..263

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

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

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

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

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

Refactorings

Further Reading

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

    max<T>(
        list: _.List<T>,
        iterator?: _.ListIterator<T, any>,
        context?: any): T;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 1 other location - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 532..535

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

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

    foldr<TResult>(iterator: _.MemoIterator<T, TResult>, memo?: TResult, context?: any): _ChainSingle<TResult>;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 4 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 2522..2522
src/typings/underscore/underscore.d.ts on lines 2527..2527
src/typings/underscore/underscore.d.ts on lines 2532..2532
src/typings/underscore/underscore.d.ts on lines 2538..2538

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

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

    any<T>(
        object: _.Dictionary<T>,
        iterator?: _.ObjectIterator<T, boolean>,
        context?: any): boolean;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 7 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 376..379
src/typings/underscore/underscore.d.ts on lines 384..387
src/typings/underscore/underscore.d.ts on lines 392..395
src/typings/underscore/underscore.d.ts on lines 400..403
src/typings/underscore/underscore.d.ts on lines 413..416
src/typings/underscore/underscore.d.ts on lines 421..424
src/typings/underscore/underscore.d.ts on lines 429..432

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

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

    reduceRight<TResult>(iterator: _.MemoIterator<T, TResult>, memo?: TResult, context?: any): _ChainSingle<TResult>;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 4 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 2522..2522
src/typings/underscore/underscore.d.ts on lines 2527..2527
src/typings/underscore/underscore.d.ts on lines 2532..2532
src/typings/underscore/underscore.d.ts on lines 2543..2543

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

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

    every<T>(
        list: _.List<T>,
        iterator?: _.ListIterator<T, boolean>,
        context?: any): boolean;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 7 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 384..387
src/typings/underscore/underscore.d.ts on lines 392..395
src/typings/underscore/underscore.d.ts on lines 400..403
src/typings/underscore/underscore.d.ts on lines 413..416
src/typings/underscore/underscore.d.ts on lines 421..424
src/typings/underscore/underscore.d.ts on lines 429..432
src/typings/underscore/underscore.d.ts on lines 437..440

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

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

    some<T>(
        list: _.List<T>,
        iterator?: _.ListIterator<T, boolean>,
        context?: any): boolean;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 7 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 376..379
src/typings/underscore/underscore.d.ts on lines 384..387
src/typings/underscore/underscore.d.ts on lines 392..395
src/typings/underscore/underscore.d.ts on lines 400..403
src/typings/underscore/underscore.d.ts on lines 421..424
src/typings/underscore/underscore.d.ts on lines 429..432
src/typings/underscore/underscore.d.ts on lines 437..440

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

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

    all<T>(
        list: _.List<T>,
        iterator?: _.ListIterator<T, boolean>,
        context?: any): boolean;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 7 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 376..379
src/typings/underscore/underscore.d.ts on lines 384..387
src/typings/underscore/underscore.d.ts on lines 400..403
src/typings/underscore/underscore.d.ts on lines 413..416
src/typings/underscore/underscore.d.ts on lines 421..424
src/typings/underscore/underscore.d.ts on lines 429..432
src/typings/underscore/underscore.d.ts on lines 437..440

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

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

    reduce<TResult>(iterator: _.MemoIterator<T, TResult>, memo?: TResult, context?: any): _ChainSingle<TResult>;
Severity: Major
Found in src/typings/underscore/underscore.d.ts and 4 other locations - About 1 hr to fix
src/typings/underscore/underscore.d.ts on lines 2527..2527
src/typings/underscore/underscore.d.ts on lines 2532..2532
src/typings/underscore/underscore.d.ts on lines 2538..2538
src/typings/underscore/underscore.d.ts on lines 2543..2543

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

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