Floppy/dataslate

View on GitHub

Showing 242 of 242 total issues

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

      <Phase name='deployment'>
        <AbilityList abilities={props.abilities} phase='deployment' />
        <>
          {props.units.map((unit: Unit) => (
            <DeploymentPhaseDetails key={unit.id} unit={unit} />
Severity: Major
Found in src/components/WH40k9e/Roster.tsx and 1 other location - About 4 hrs to fix
src/components/WH40k9e/Roster.tsx on lines 70..78

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

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

      <Phase name='start of battle round'>
        <AbilityList abilities={props.abilities} phase='battle_round_start' />
        <>
          {props.units.map((unit: Unit) => (
            <BattleRoundStartPhaseDetails key={unit.id} unit={unit} />
Severity: Major
Found in src/components/WH40k9e/Roster.tsx and 1 other location - About 4 hrs to fix
src/components/WH40k9e/Roster.tsx on lines 61..69

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

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

      <Phase name='command'>
        <AbilityList abilities={props.abilities} phase='command' />
        <>
          {props.units.map((unit: Unit) => (
            <CommandPhaseDetails key={unit.id} unit={unit} />
Severity: Major
Found in src/components/WH40k9e/Roster.tsx and 3 other locations - About 4 hrs to fix
src/components/WH40k9e/Roster.tsx on lines 106..114
src/components/WH40k9e/Roster.tsx on lines 115..123
src/components/WH40k9e/Roster.tsx on lines 124..132

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

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

      {_.some(selectedModels, hasPsychicPhase) &&
        <Phase name='psychic'>
          <>
            <AbilityList abilities={props.forceRules} phase='psychic' highlight />
            {selectedModels.map((model: Model) => (
Severity: Major
Found in src/components/KillTeam2018/Roster.tsx and 3 other locations - About 4 hrs to fix
src/components/KillTeam2018/Roster.tsx on lines 58..67
src/components/KillTeam2018/Roster.tsx on lines 68..77
src/components/KillTeam2018/Roster.tsx on lines 78..87

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

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

      {_.some(selectedModels, hasInitiativePhase) &&
        <Phase name='initiative'>
          <>
            <AbilityList abilities={props.forceRules} phase='initiative' highlight />
            {selectedModels.map((model: Model) => (
Severity: Major
Found in src/components/KillTeam2018/Roster.tsx and 3 other locations - About 4 hrs to fix
src/components/KillTeam2018/Roster.tsx on lines 58..67
src/components/KillTeam2018/Roster.tsx on lines 68..77
src/components/KillTeam2018/Roster.tsx on lines 96..105

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

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

      {_.some(selectedModels, hasDeploymentPhase) &&
        <Phase name='deployment'>
          <>
            <AbilityList abilities={props.forceRules} phase='deployment' highlight />
            {selectedModels.map((model: Model) => (
Severity: Major
Found in src/components/KillTeam2018/Roster.tsx and 3 other locations - About 4 hrs to fix
src/components/KillTeam2018/Roster.tsx on lines 58..67
src/components/KillTeam2018/Roster.tsx on lines 78..87
src/components/KillTeam2018/Roster.tsx on lines 96..105

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

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

      {_.some(selectedModels, hasScoutingPhase) &&
        <Phase name='scouting'>
          <>
            <AbilityList abilities={props.forceRules} phase='scouting' highlight />
            {selectedModels.map((model: Model) => (
Severity: Major
Found in src/components/KillTeam2018/Roster.tsx and 3 other locations - About 4 hrs to fix
src/components/KillTeam2018/Roster.tsx on lines 68..77
src/components/KillTeam2018/Roster.tsx on lines 78..87
src/components/KillTeam2018/Roster.tsx on lines 96..105

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

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

const tacticalPloys: Ploy[] = [
  {
    name: 'Opportunistic Fighters',
    cost: 1,
    description: `Use this Tactical Ploy when an enemy operative performs a **Fall Back** action. Before it moves, that enemy
Severity: Major
Found in src/components/KillTeam2021/data/corsairVoidscarred.ts and 2 other locations - About 4 hrs to fix
src/components/KillTeam2021/data/corsairVoidscarred.ts on lines 11..43
src/components/KillTeam2021/data/handOfTheArchon.ts on lines 14..42

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

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

const strategicPloys: Ploy[] = [
  {
    name: 'Blade Artists',
    cost: 1,
    description: `Until the end of the Turning Point, melee weapons friendly ${factionLabel} operatives are equipped with
Severity: Major
Found in src/components/KillTeam2021/data/handOfTheArchon.ts and 2 other locations - About 4 hrs to fix
src/components/KillTeam2021/data/corsairVoidscarred.ts on lines 11..43
src/components/KillTeam2021/data/corsairVoidscarred.ts on lines 45..73

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

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

const strategicPloys: Ploy[] = [
  {
    name: 'Plunderers',
    cost: 1,
    description: `Select up to three friendly ${factionLabel} operatives. Each of those operatives can 
Severity: Major
Found in src/components/KillTeam2021/data/corsairVoidscarred.ts and 2 other locations - About 4 hrs to fix
src/components/KillTeam2021/data/corsairVoidscarred.ts on lines 45..73
src/components/KillTeam2021/data/handOfTheArchon.ts on lines 14..42

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

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 tacOps: TacOp[] = [
  {
    id: 1,
    name: 'Rampant Nightmare',
    description: `Reveal this Tac Op in the Target Reveal step of any Turning Point. Start a Rampant Nightmare 
Severity: Major
Found in src/components/KillTeam2021/data/gellerpoxInfected.ts and 1 other location - About 4 hrs to fix
src/components/KillTeam2021/data/elucidianStarStriders.ts on lines 77..117

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

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

describe('triangle', () => {
  it('translates ▲ correctly', () => {
    const text = 'There is a ▲ in the text'
    const component = TestRenderer.create(
      <HighlightedText>{text}</HighlightedText>
Severity: Major
Found in src/components/KillTeam2021/HighlightedText.test.tsx and 1 other location - About 4 hrs to fix
src/components/KillTeam2021/HighlightedText.test.tsx on lines 60..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 118.

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

describe('pentagon', () => {
  it('translates ⬟ correctly', () => {
    const text = 'There is a ⬟ in the text'
    const component = TestRenderer.create(
      <HighlightedText>{text}</HighlightedText>
Severity: Major
Found in src/components/KillTeam2021/HighlightedText.test.tsx and 1 other location - About 4 hrs to fix
src/components/KillTeam2021/HighlightedText.test.tsx on lines 5..20

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

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 tacOps: TacOp[] = [
  {
    id: 1,
    name: 'Reputation to Maintain',
    description: `Reveal this Tac Op the first time a **Fight** or **Shoot** action is declared for a **LEADER**
Severity: Major
Found in src/components/KillTeam2021/data/elucidianStarStriders.ts and 1 other location - About 4 hrs to fix
src/components/KillTeam2021/data/gellerpoxInfected.ts on lines 82..122

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

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 Roster has 102 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function Roster (props: Props): JSX.Element {
  // Display models sorted by category and type
  const sortedModels = _.sortBy(props.models, (x: Model) => ([x.category == null, x.category, x.type]))
  // Work out which models are actually selected
  const selectedModels = _.filter(sortedModels, (x: Model) => (x.selected > 0))
Severity: Major
Found in src/components/KillTeam2018/Roster.tsx - About 4 hrs to fix

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

    const tacOps: TacOp[] = [
      {
        id: 1,
        name: 'Butcher',
        description: `Reveal this Tac Op the first time an enemy operative is incapacitated. Each time an enemy operative
    Severity: Major
    Found in src/components/KillTeam2021/data/farstalkerKinband.ts and 1 other location - About 3 hrs to fix
    src/components/KillTeam2021/data/wyrmblade.ts on lines 77..110

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

    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 tacOps: TacOp[] = [
      {
        id: 1,
        name: 'Nowhere Unreachable',
        description: `Reveal this Tac Op in the Target Reveal step of the first Turning Point. Your opponent places one of your Location tokens anywhere in the killzone that 
    Severity: Major
    Found in src/components/KillTeam2021/data/wyrmblade.ts and 1 other location - About 3 hrs to fix
    src/components/KillTeam2021/data/farstalkerKinband.ts on lines 78..116

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

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

    const strategicPloys: Ploy[] = [
      {
        name: 'Blessings of Pox',
        cost: 1,
        description: `Until the end of the Turning Point, each time a shooting attack is made against a 
    Severity: Major
    Found in src/components/KillTeam2021/data/gellerpoxInfected.ts and 4 other locations - About 3 hrs to fix
    src/components/KillTeam2021/data/elucidianStarStriders.ts on lines 45..75
    src/components/KillTeam2021/data/farstalkerKinband.ts on lines 11..42
    src/components/KillTeam2021/data/imperialNavyBreachers.ts on lines 11..47
    src/components/KillTeam2021/data/kasrkin.ts on lines 10..42

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

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

    const strategicPloys: Ploy[] = [
      {
        name: 'Attack Order',
        cost: 1,
        description: `Place one of your Attack Order tokens anywhere in the killzone. Each time a friendly
    Severity: Major
    Found in src/components/KillTeam2021/data/imperialNavyBreachers.ts and 4 other locations - About 3 hrs to fix
    src/components/KillTeam2021/data/elucidianStarStriders.ts on lines 45..75
    src/components/KillTeam2021/data/farstalkerKinband.ts on lines 11..42
    src/components/KillTeam2021/data/gellerpoxInfected.ts on lines 11..46
    src/components/KillTeam2021/data/kasrkin.ts on lines 10..42

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

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

    const strategicPloys: Ploy[] = [
      {
        name: 'Cut-Throats',
        cost: 1,
        description: `Until the end of the Turning Point, add 1 to the Attacks characteristic of melee weapons
    Severity: Major
    Found in src/components/KillTeam2021/data/farstalkerKinband.ts and 4 other locations - About 3 hrs to fix
    src/components/KillTeam2021/data/elucidianStarStriders.ts on lines 45..75
    src/components/KillTeam2021/data/gellerpoxInfected.ts on lines 11..46
    src/components/KillTeam2021/data/imperialNavyBreachers.ts on lines 11..47
    src/components/KillTeam2021/data/kasrkin.ts on lines 10..42

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

    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