Floppy/dataslate

View on GitHub

Showing 242 of 242 total issues

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

const tacticalPloys: Ploy[] = [
  {
    name: 'Treasure Hunter',
    cost: 1,
    description: `Use this Tactical Ploy when a friendly TAZAANGOR operative is activated. During that activation, that operative can perform a mission action or the Pick Up action
Severity: Major
Found in src/components/KillTeam2021/data/thousandSons.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/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 13 locations. Consider refactoring.
Open

const strategicPloys: Ploy[] = [
  {
    name: 'Malicious Volleys',
    cost: 1,
    description: `Until the end of the Turning Point, each time a friendly BUBONIC ASTARTES operative is activated, if it does not perform a **Fight** action during that activation, it
Severity: Major
Found in src/components/KillTeam2021/data/deathGuard.ts and 12 other locations - About 2 hrs to fix
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
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 13 locations. Consider refactoring.
Open

const strategicPloys: Ploy[] = [
  {
    name: 'Emporer\'s Guidance',
    cost: 1,
    description: `Until the end of the Turning Point, each time a friendly ADEPTA SORORITAS operative fights in combat or makes a shooting attack, in the Roll Attack Dice step of that
Severity: Major
Found in src/components/KillTeam2021/data/ecclesiarchy.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 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
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: 'Relentless Pursuit',
    description: `You can reveal this Tac Op in the Target Reveal step of any Turning Point.
Severity: Major
Found in src/components/KillTeam2021/data/hunterClade.ts and 9 other locations - About 2 hrs to fix
src/components/KillTeam2021/data/blooded.ts on lines 74..98
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/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 10 locations. Consider refactoring.
Open

const tacOps: TacOp[] = [
  {
    id: 1,
    name: 'Storm Target',
    description: `Reveal this Tac Op in the Target Reveal step of the first Turning Point. Your opponent selects
Severity: Major
Found in src/components/KillTeam2021/data/imperialNavyBreachers.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/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/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 10 locations. Consider refactoring.
Open

const tacOps: TacOp[] = [
  {
    id: 1,
    name: 'Mythic Play',
    description: `If you are using the Saedath ability, reveal this Tac Op in the Target Reveal step of the first Turning Point.
Severity: Major
Found in src/components/KillTeam2021/data/voidDancer.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/veteranGuardsmen.ts on lines 53..71

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: 'Shock and Awe',
    description: `You can reveal this Tac Op in the Target Reveal step of any Turning Point.
Severity: Major
Found in src/components/KillTeam2021/data/intercessionSquad.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/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/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: '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 10 locations. Consider refactoring.
Open

const tacOps: TacOp[] = [
  {
    id: 1,
    name: 'Worthy Champion',
    description: `You can reveal this Tac Op in the Target Reveal step of any Turning Point.
Severity: Major
Found in src/components/KillTeam2021/data/blooded.ts and 9 other locations - About 2 hrs to fix
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/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: 'Arcane Genetic Alchemy',
    cost: 1,
    description: `Use this Tactical Ploy in the Roll Defence Dice step of a shooting attack, after rolling defence dice for a friendly ADEPTUS CUSTODES operative. You can change one of
Severity: Major
Found in src/components/KillTeam2021/data/talonsOfTheEmperor.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/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 13 locations. Consider refactoring.
Open

const strategicPloys: Ploy[] = [
  {
    name: 'Malicious Volleys',
    cost: 1,
    description: `Until the end of the Turning Point, each time a friendly ARCANA ASTARTES operative is activated, if it does not perform a **Fight** action during that activation, it
Severity: Major
Found in src/components/KillTeam2021/data/thousandSons.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 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

Function SettingsDialog has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function SettingsDialog (props: Props): JSX.Element {
  const handleWoundTrackChange = (event: any): void => {
    const target = event.target
    const showWoundTrack: boolean = target.checked
    const newSettings = {
Severity: Major
Found in src/components/SettingsDialog.tsx - About 2 hrs to fix

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

      const abilities = props.phase !== ''
        ? props.abilities.filter((x) => (x.phases?.includes(props.phase)))
        : props.abilities.filter((x) => (x.phases?.length === 0))
    Severity: Major
    Found in src/components/KillTeam2018/AbilityList.tsx and 1 other location - About 2 hrs to fix
    src/components/WH40k9e/StratagemList.tsx 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 80.

    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 stratagems = props.phase !== ''
        ? props.stratagems.filter((x) => (x.phases?.includes(props.phase)))
        : props.stratagems.filter((x) => (x.phases?.length === 0))
    Severity: Major
    Found in src/components/WH40k9e/StratagemList.tsx and 1 other location - About 2 hrs to fix
    src/components/KillTeam2018/AbilityList.tsx on lines 13..15

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

    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

    Function HierotekCircle has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const HierotekCircle: FC<Props> = (props) => {
      const headingStyle = {
        background: '#FF6F2D',
        color: 'black',
        padding: '10px',
    Severity: Major
    Found in src/components/KillTeam2021/FactionSpecificData/HierotekCircle.tsx - About 2 hrs to fix

      Function ElucidianStarstrider has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const ElucidianStarstrider: FC<Props> = (props) => {
        const headingStyle = {
          background: '#FF6F2D',
          color: 'black',
          padding: '10px',

        Function ImperialNavyBreachers has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export const ImperialNavyBreachers: FC<Props> = (props) => {
          const headingStyle = {
            background: '#FF6F2D',
            color: 'black',
            padding: '10px',

          Function VoidDancerTroupe has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export const VoidDancerTroupe: FC<Props> = (props) => {
            const headingStyle = {
              background: '#FF6F2D',
              color: 'black',
              padding: '10px',
          Severity: Major
          Found in src/components/KillTeam2021/FactionSpecificData/VoidDancerTroupe.tsx - About 2 hrs to fix

            Function Blooded has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export const Blooded: FC<Props> = (props) => {
              const headingStyle = {
                background: '#FF6F2D',
                color: 'black',
                padding: '10px',
            Severity: Major
            Found in src/components/KillTeam2021/FactionSpecificData/Blooded.tsx - About 2 hrs to fix
              Severity
              Category
              Status
              Source
              Language