Floppy/dataslate

View on GitHub
src/components/KillTeam2021/data/pathfinder.ts

Summary

Maintainability
C
1 day
Test Coverage

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

const strategicPloys: Ploy[] = [
  {
    name: 'Recon Sweep',
    cost: 1,
    description: `Friendly PATHFINDER💀 operatives that are wholly within ⬟ of any killzone edge can immediately perform a free **Dash** action, but only if they can finish
Severity: Major
Found in src/components/KillTeam2021/data/pathfinder.ts and 16 other locations - About 3 hrs to fix
src/components/KillTeam2021/data/blooded.ts on lines 9..37
src/components/KillTeam2021/data/farstalkerKinband.ts on lines 44..76
src/components/KillTeam2021/data/forgeWorld.ts on lines 11..45
src/components/KillTeam2021/data/gellerpoxInfected.ts on lines 48..80
src/components/KillTeam2021/data/hierotekCircle.ts on lines 47..81
src/components/KillTeam2021/data/hunterClade.ts on lines 11..38
src/components/KillTeam2021/data/imperialNavyBreachers.ts on lines 49..83
src/components/KillTeam2021/data/intercessionSquad.ts on lines 9..42
src/components/KillTeam2021/data/intercessionSquad.ts on lines 44..72
src/components/KillTeam2021/data/kommando.ts on lines 9..32
src/components/KillTeam2021/data/phobosStrikeTeam.ts on lines 45..79
src/components/KillTeam2021/data/voidDancer.ts on lines 9..44
src/components/KillTeam2021/data/voidDancer.ts on lines 46..73
src/components/KillTeam2021/data/warpCoven.ts on lines 42..68
src/components/KillTeam2021/data/wyrmblade.ts on lines 9..37
src/components/KillTeam2021/data/wyrmblade.ts on lines 39..75

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

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

const tacticalPloys: Ploy[] = [
  {
    name: 'A Worthy Cause',
    cost: 2,
    description: `Use this tactical Ploy at the start of the Firefight phase. Select one friendly PATHFINDERđź’€ operative (excluding a **DRONE** operative) that is within â–  of any
Severity: Major
Found in src/components/KillTeam2021/data/pathfinder.ts and 12 other locations - About 2 hrs to fix
src/components/KillTeam2021/data/deathGuard.ts on lines 10..29
src/components/KillTeam2021/data/ecclesiarchy.ts on lines 11..31
src/components/KillTeam2021/data/ecclesiarchy.ts on lines 33..51
src/components/KillTeam2021/data/novitiate.ts on lines 37..61
src/components/KillTeam2021/data/spaceMarine.ts on lines 17..36
src/components/KillTeam2021/data/talonsOfTheEmperor.ts on lines 28..48
src/components/KillTeam2021/data/thousandSons.ts on lines 12..31
src/components/KillTeam2021/data/thousandSons.ts on lines 33..50
src/components/KillTeam2021/data/traitorSpaceMarine.ts on lines 10..30
src/components/KillTeam2021/data/traitorSpaceMarine.ts on lines 32..49
src/components/KillTeam2021/data/troupe.ts on lines 9..28
src/components/KillTeam2021/data/veteranGuardsmen.ts on lines 33..51

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

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

const tacOps: TacOp[] = [
  {
    id: 1,
    name: 'Mark Enemy Movements',
    description: `You can reveal this Tac Op in the Target Reveal Step of any Turning Point.  
Severity: Major
Found in src/components/KillTeam2021/data/pathfinder.ts and 9 other locations - About 2 hrs to fix
src/components/KillTeam2021/data/blooded.ts on lines 74..98
src/components/KillTeam2021/data/hunterClade.ts on lines 67..92
src/components/KillTeam2021/data/imperialNavyBreachers.ts on lines 85..113
src/components/KillTeam2021/data/intercessionSquad.ts on lines 74..105
src/components/KillTeam2021/data/kasrkin.ts on lines 75..104
src/components/KillTeam2021/data/novitiate.ts on lines 63..83
src/components/KillTeam2021/data/phobosStrikeTeam.ts on lines 81..110
src/components/KillTeam2021/data/veteranGuardsmen.ts on lines 53..71
src/components/KillTeam2021/data/voidDancer.ts on lines 75..99

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

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

const data = {
  name: 'Pathfinder' as const,
  strategicPloys,
  tacticalPloys,
  archetypes,
Severity: Minor
Found in src/components/KillTeam2021/data/pathfinder.ts and 1 other location - About 40 mins to fix
src/components/KillTeam2021/data/veteranGuardsmen.ts on lines 123..131

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

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

There are no issues that match your filters.

Category
Status