Floppy/dataslate

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

Summary

Maintainability
B
5 hrs
Test Coverage

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

const tacOps: TacOp[] = [{
  id: 1,
  name: 'Boots on the ground',
  description: `You can reveal this Tac Op at the end of any Turning Point.
  - At the end of that Turning Point, if there are more friendly operatives than enemy operatives within ⬟ of your drop zone, and there are more friendly
Severity: Major
Found in src/components/KillTeam2021/data/veteranGuardsmen.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/pathfinder.ts on lines 59..83
src/components/KillTeam2021/data/phobosStrikeTeam.ts on lines 81..110
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: 'Inspirational leadership',
    cost: 1,
    description: `Use this Tactical Ploy during a VETERAN GUARDSMAN💀 LEADER operative's operation. That operative issues a
Severity: Major
Found in src/components/KillTeam2021/data/veteranGuardsmen.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/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

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: 'Veteran Guardsmen' as const,
  strategicPloys,
  tacticalPloys,
  archetypes,
Severity: Minor
Found in src/components/KillTeam2021/data/veteranGuardsmen.ts and 1 other location - About 40 mins to fix
src/components/KillTeam2021/data/pathfinder.ts on lines 130..138

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