hellowin/kanca

View on GitHub

Showing 217 of 264 total issues

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

    filter<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    intersectionWith<T>(a1: Array<T>, comparator: Comparator<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 6 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 93..93
flow-typed/npm/lodash_v4.x.x.js on lines 130..130
flow-typed/npm/lodash_v4.x.x.js on lines 135..135
flow-typed/npm/lodash_v4.x.x.js on lines 147..147
flow-typed/npm/lodash_v4.x.x.js on lines 152..152
flow-typed/npm/lodash_v4.x.x.js on lines 164..164

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

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

    intersectionBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 6 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 98..98
flow-typed/npm/lodash_v4.x.x.js on lines 130..130
flow-typed/npm/lodash_v4.x.x.js on lines 135..135
flow-typed/npm/lodash_v4.x.x.js on lines 147..147
flow-typed/npm/lodash_v4.x.x.js on lines 152..152
flow-typed/npm/lodash_v4.x.x.js on lines 164..164

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

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

    uniqWith<T>(array: ?Array<T>, comparator?: Comparator<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    forEachRight<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    remove<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    unzipWith<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    unionBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 6 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 93..93
flow-typed/npm/lodash_v4.x.x.js on lines 98..98
flow-typed/npm/lodash_v4.x.x.js on lines 135..135
flow-typed/npm/lodash_v4.x.x.js on lines 147..147
flow-typed/npm/lodash_v4.x.x.js on lines 152..152
flow-typed/npm/lodash_v4.x.x.js on lines 164..164

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

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

    pullAll<T>(array: ?Array<T>, values: Array<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    partition<T>(array: ?Array<T>, predicate?: Predicate<T>): NestedArray<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    xorBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 6 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 93..93
flow-typed/npm/lodash_v4.x.x.js on lines 98..98
flow-typed/npm/lodash_v4.x.x.js on lines 130..130
flow-typed/npm/lodash_v4.x.x.js on lines 135..135
flow-typed/npm/lodash_v4.x.x.js on lines 152..152
flow-typed/npm/lodash_v4.x.x.js on lines 164..164

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

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

    xorWith<T>(a1: Array<T>, comparator?: Comparator<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 6 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 93..93
flow-typed/npm/lodash_v4.x.x.js on lines 98..98
flow-typed/npm/lodash_v4.x.x.js on lines 130..130
flow-typed/npm/lodash_v4.x.x.js on lines 135..135
flow-typed/npm/lodash_v4.x.x.js on lines 147..147
flow-typed/npm/lodash_v4.x.x.js on lines 164..164

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

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

    takeRightWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    uniqBy<T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    dropRightWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    unionWith<T>(a1: Array<T>, comparator?: Comparator<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 6 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 93..93
flow-typed/npm/lodash_v4.x.x.js on lines 98..98
flow-typed/npm/lodash_v4.x.x.js on lines 130..130
flow-typed/npm/lodash_v4.x.x.js on lines 147..147
flow-typed/npm/lodash_v4.x.x.js on lines 152..152
flow-typed/npm/lodash_v4.x.x.js on lines 164..164

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

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

    zipWith<T>(a1: NestedArray<T>, iteratee?: Iteratee<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 6 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 93..93
flow-typed/npm/lodash_v4.x.x.js on lines 98..98
flow-typed/npm/lodash_v4.x.x.js on lines 130..130
flow-typed/npm/lodash_v4.x.x.js on lines 135..135
flow-typed/npm/lodash_v4.x.x.js on lines 147..147
flow-typed/npm/lodash_v4.x.x.js on lines 152..152

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

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

    difference<T>(array: ?Array<T>, values?: Array<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    takeWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210
flow-typed/npm/lodash_v4.x.x.js on lines 216..216

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

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

    reject<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 14 other locations - About 40 mins to fix
flow-typed/npm/lodash_v4.x.x.js on lines 72..72
flow-typed/npm/lodash_v4.x.x.js on lines 77..77
flow-typed/npm/lodash_v4.x.x.js on lines 78..78
flow-typed/npm/lodash_v4.x.x.js on lines 107..107
flow-typed/npm/lodash_v4.x.x.js on lines 112..112
flow-typed/npm/lodash_v4.x.x.js on lines 126..126
flow-typed/npm/lodash_v4.x.x.js on lines 127..127
flow-typed/npm/lodash_v4.x.x.js on lines 140..140
flow-typed/npm/lodash_v4.x.x.js on lines 141..141
flow-typed/npm/lodash_v4.x.x.js on lines 143..143
flow-typed/npm/lodash_v4.x.x.js on lines 180..180
flow-typed/npm/lodash_v4.x.x.js on lines 192..192
flow-typed/npm/lodash_v4.x.x.js on lines 194..194
flow-typed/npm/lodash_v4.x.x.js on lines 210..210

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

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