Floppy/dataslate

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

Summary

Maintainability
C
7 hrs
Test Coverage

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

const strategicPloys: Ploy[] = [
  {
    name: 'Eyes of the Emperor',
    cost: 1,
    description: `Until the end of the Turning Point, remove the Range special rule from autopistols, bolt pistols and plasma pistols that friendly NOVITIATEđź’€ operatives
Severity: Major
Found in src/components/KillTeam2021/data/novitiate.ts and 3 other locations - About 3 hrs to fix
src/components/KillTeam2021/data/blooded.ts on lines 39..72
src/components/KillTeam2021/data/broodCoven.ts on lines 26..48
src/components/KillTeam2021/data/warpCoven.ts on lines 11..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 99.

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: 'Purge With Flame',
    description: `You can reveal this Tac Op in the Target Reveal Step of any Turning Point.  
Severity: Major
Found in src/components/KillTeam2021/data/novitiate.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/pathfinder.ts on lines 59..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 13 locations. Consider refactoring.
Open

const tacticalPloys: Ploy[] = [
  {
    name: 'Glorious Martyrdom',
    cost: 1,
    description: `Use this Tactical Ploy when a friendly NOVITIATE💀 operative is incapacitated. Each enemy operative within ⬤ of and Visible to that operative suffer 1 
Severity: Major
Found in src/components/KillTeam2021/data/novitiate.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/pathfinder.ts on lines 36..57
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

There are no issues that match your filters.

Category
Status