IL2HorusTeam/il2fb-game-log-parser

View on GitHub

Showing 139 of 141 total issues

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

class HumanAircraftHasTookOff(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8 in flight 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 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 StationaryUnitWasDestroyed(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] 0_Static crashed 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 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 HumanAircraftHasCrashed(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8 crashed 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 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 AIAircraftCrewMemberWasKilled(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000(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 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 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 HumanAircraftCrewMemberWasHeavilyWounded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0:Pe-8(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 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 AIAircraftHasCrashed(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000 crashed 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 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 AIAircraftCrewMemberWasCaptured(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] r01000(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 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 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 4 locations. Consider refactoring.
Open

class HumanHasWentToBriefing(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0 entered refly menu"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 3 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 193..214
il2fb/parsers/game_log/events.py on lines 218..239
il2fb/parsers/game_log/events.py on lines 1858..1881

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

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

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

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

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

Refactorings

Further Reading

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

class TreeWasDestroyed(ParsableEvent):
    """
    Examples:

        "[8:33:05 PM] 3do/Tree/Line_W/live.sim destroyed by at 100.0 200.99"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 3 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 193..214
il2fb/parsers/game_log/events.py on lines 218..239
il2fb/parsers/game_log/events.py on lines 299..320

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

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

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

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

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

Refactorings

Further Reading

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

class HumanHasConnected(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0 has connected"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 3 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 218..239
il2fb/parsers/game_log/events.py on lines 299..320
il2fb/parsers/game_log/events.py on lines 1858..1881

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

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

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

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

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

Refactorings

Further Reading

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

class HumanHasDisconnected(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] User0 has disconnected"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 3 other locations - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 193..214
il2fb/parsers/game_log/events.py on lines 299..320
il2fb/parsers/game_log/events.py on lines 1858..1881

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

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

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

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

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

Refactorings

Further Reading

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

class MissionHasBegun(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] Mission BEGIN"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 1 other location - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 117..136

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

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

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

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

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

Refactorings

Further Reading

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

class MissionHasEnded(ParsableEvent):
    """
    Example:

        "[8:33:05 PM] Mission END"
Severity: Major
Found in il2fb/parsers/game_log/events.py and 1 other location - About 2 hrs to fix
il2fb/parsers/game_log/events.py on lines 94..113

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

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

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

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

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

Refactorings

Further Reading

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

def transform_date(data):
    value = data['date']
    data['date'] = datetime.datetime.strptime(value, LOG_DATE_FORMAT).date()
Severity: Major
Found in il2fb/parsers/game_log/transformers.py and 1 other location - About 1 hr to fix
il2fb/parsers/game_log/transformers.py on lines 14..16

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

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

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

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

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

Refactorings

Further Reading

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

def transform_time(data):
    value = data['time']
    data['time'] = datetime.datetime.strptime(value, LOG_TIME_FORMAT).time()
Severity: Major
Found in il2fb/parsers/game_log/transformers.py and 1 other location - About 1 hr to fix
il2fb/parsers/game_log/transformers.py on lines 19..21

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

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

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

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

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

Refactorings

Further Reading

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

    if "AndHuman" in name:
        priority |= AND_HUMAN
    elif "AndAI" in name:
        priority |= AND_AI
Severity: Minor
Found in il2fb/parsers/game_log/priority.py and 1 other location - About 45 mins to fix
il2fb/parsers/game_log/priority.py on lines 37..40

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

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

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

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

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

Refactorings

Further Reading

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

    if "ByHuman" in name:
        priority |= BY_HUMAN
    elif "ByAI" in name:
        priority |= BY_AI
Severity: Minor
Found in il2fb/parsers/game_log/priority.py and 1 other location - About 45 mins to fix
il2fb/parsers/game_log/priority.py on lines 42..45

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

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

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

Severity: Minor
Found in il2fb/parsers/__init__.py and 1 other location - About 40 mins to fix
il2fb/__init__.py on lines 0..7

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

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

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

Severity: Minor
Found in il2fb/__init__.py and 1 other location - About 40 mins to fix
il2fb/parsers/__init__.py on lines 0..7

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

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