IL2HorusTeam/il2fb-game-log-parser

View on GitHub

Showing 139 of 141 total issues

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

class TreeWasDestroyedByMovingUnitMember(ParsableEvent):
    """
    Examples:

        "[8:33:05 PM] 3do/Tree/Line_W/live.sim destroyed by 0_Chief0 at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 10 other locations - About 3 hrs to fix
il2fb/parsers/game_log/events.py on lines 378..401
il2fb/parsers/game_log/events.py on lines 405..428
il2fb/parsers/game_log/events.py on lines 510..534
il2fb/parsers/game_log/events.py on lines 538..562
il2fb/parsers/game_log/events.py on lines 1713..1738
il2fb/parsers/game_log/events.py on lines 1742..1767
il2fb/parsers/game_log/events.py on lines 1771..1796
il2fb/parsers/game_log/events.py on lines 1829..1854
il2fb/parsers/game_log/events.py on lines 2663..2687
il2fb/parsers/game_log/events.py on lines 2691..2715

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

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

class HumanHasDestroyedOwnAircraft(ParsableEvent):
    """
    Examples:

        "[8:33:05 PM] User0:Pe-8 shot down by landscape at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 10 other locations - About 3 hrs to fix
il2fb/parsers/game_log/events.py on lines 378..401
il2fb/parsers/game_log/events.py on lines 405..428
il2fb/parsers/game_log/events.py on lines 538..562
il2fb/parsers/game_log/events.py on lines 1713..1738
il2fb/parsers/game_log/events.py on lines 1742..1767
il2fb/parsers/game_log/events.py on lines 1771..1796
il2fb/parsers/game_log/events.py on lines 1800..1825
il2fb/parsers/game_log/events.py on lines 1829..1854
il2fb/parsers/game_log/events.py on lines 2663..2687
il2fb/parsers/game_log/events.py on lines 2691..2715

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

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

class TreeWasDestroyedByStationaryUnit(ParsableEvent):
    """
    Examples:

        "[8:33:05 PM] 3do/Tree/Line_W/live.sim destroyed by 0_Static at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 10 other locations - About 3 hrs to fix
il2fb/parsers/game_log/events.py on lines 378..401
il2fb/parsers/game_log/events.py on lines 405..428
il2fb/parsers/game_log/events.py on lines 510..534
il2fb/parsers/game_log/events.py on lines 538..562
il2fb/parsers/game_log/events.py on lines 1713..1738
il2fb/parsers/game_log/events.py on lines 1771..1796
il2fb/parsers/game_log/events.py on lines 1800..1825
il2fb/parsers/game_log/events.py on lines 1829..1854
il2fb/parsers/game_log/events.py on lines 2663..2687
il2fb/parsers/game_log/events.py on lines 2691..2715

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

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

class AIHasDestroyedOwnAircraft(ParsableEvent):
    """
    Examples:

        "[8:33:05 PM] r01000 shot down by landscape at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 10 other locations - About 3 hrs to fix
il2fb/parsers/game_log/events.py on lines 378..401
il2fb/parsers/game_log/events.py on lines 405..428
il2fb/parsers/game_log/events.py on lines 510..534
il2fb/parsers/game_log/events.py on lines 538..562
il2fb/parsers/game_log/events.py on lines 1713..1738
il2fb/parsers/game_log/events.py on lines 1742..1767
il2fb/parsers/game_log/events.py on lines 1771..1796
il2fb/parsers/game_log/events.py on lines 1800..1825
il2fb/parsers/game_log/events.py on lines 1829..1854
il2fb/parsers/game_log/events.py on lines 2663..2687

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

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

class HumanAircraftWasDamagedOnGround(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8 damaged on the ground at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class AIAircraftCrewMemberWasWounded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000(0) was wounded at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class AIAircraftCrewMemberHasLanded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000(0) successfully bailed out at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603

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

class HumanAircraftCrewMemberWasKilled(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8(0) was killed at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class AIAircraftCrewMemberWasHeavilyWounded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000(0) was heavily wounded at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class AIAircraftHasDespawned(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000 removed at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class HumanAircraftHasLanded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8 landed at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class HumanAircraftCrewMemberWasCaptured(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8(0) was captured at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class HumanAircraftCrewMemberHasBailedOut(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8(0) bailed out at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class AIAircraftCrewMemberParachuteWasDestroyed(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000(0) has chute destroyed at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class MissionWasWon(ParsableEvent):
    """
    Example:

        "[Sep 15, 2013 8:33:05 PM] Mission: RED WON"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class HumanAircraftCrewMemberHasLanded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8(0) successfully bailed out at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class AIAircraftWasDamagedOnGround(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000 damaged on the ground at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class HumanAircraftCrewMemberWasWounded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8(0) was wounded at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class AIAircraftHasLanded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000 landed at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3581..3603
il2fb/parsers/game_log/events.py on lines 3607..3629

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

class AIAircraftCrewMemberHasBailedOut(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000(0) bailed out at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 22 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 140..162
il2fb/parsers/game_log/events.py on lines 432..454
il2fb/parsers/game_log/events.py on lines 458..480
il2fb/parsers/game_log/events.py on lines 484..506
il2fb/parsers/game_log/events.py on lines 566..588
il2fb/parsers/game_log/events.py on lines 992..1014
il2fb/parsers/game_log/events.py on lines 1018..1040
il2fb/parsers/game_log/events.py on lines 1044..1066
il2fb/parsers/game_log/events.py on lines 1070..1092
il2fb/parsers/game_log/events.py on lines 1096..1118
il2fb/parsers/game_log/events.py on lines 1122..1144
il2fb/parsers/game_log/events.py on lines 1885..1907
il2fb/parsers/game_log/events.py on lines 2471..2493
il2fb/parsers/game_log/events.py on lines 2497..2519
il2fb/parsers/game_log/events.py on lines 2719..2741
il2fb/parsers/game_log/events.py on lines 2745..2767
il2fb/parsers/game_log/events.py on lines 3031..3053
il2fb/parsers/game_log/events.py on lines 3477..3499
il2fb/parsers/game_log/events.py on lines 3503..3525
il2fb/parsers/game_log/events.py on lines 3529..3551
il2fb/parsers/game_log/events.py on lines 3555..3577
il2fb/parsers/game_log/events.py on lines 3607..3629

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

Severity
Category
Status
Source
Language