Floppy/dataslate

View on GitHub

Showing 242 of 242 total issues

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

const tacticalPloys: Ploy[] = [
  {
    name: 'Effluent Demise',
    cost: 1,
    description: `Use this Tactical Ploy when a friendly BUBONIC ASTARTES operative is incapacitated. Inflict D3 mortal wounds on each enemy operative Visible to and within ⬤ of
Severity: Major
Found in src/components/KillTeam2021/data/deathGuard.ts and 1 other location - About 3 hrs to fix
src/components/KillTeam2021/data/troupe.ts on lines 30..52

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

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

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

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

    const strategicPloys: Ploy[] = [
      {
        name: 'Exalted Astartes',
        cost: 0,
        description: `Until the end of the Turning Point, each time a friendly SORCERER operative is activated:
    Severity: Major
    Found in src/components/KillTeam2021/data/warpCoven.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/novitiate.ts on lines 9..35

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

    const tacticalPloys: Ploy[] = [
      {
        name: 'Underground',
        cost: 1,
        description: `Use this Tactical Ploy in the Set Up Operatives step of the mission sequence. Select one friendly BROOD COVEN💀 operative. That operative can be set up with a Conceal order
    Severity: Major
    Found in src/components/KillTeam2021/data/broodCoven.ts and 3 other locations - About 3 hrs to fix
    src/components/KillTeam2021/data/blooded.ts on lines 39..72
    src/components/KillTeam2021/data/novitiate.ts on lines 9..35
    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 2 locations. Consider refactoring.
    Open

    const tacticalPloys: Ploy[] = [
      {
        name: 'Cover Retreat',
        cost: 1,
        description: `Use this Tactical Ploy when a friendly **KASRKIN💀** operative is activated. Until the end of that
    Severity: Major
    Found in src/components/KillTeam2021/data/kasrkin.ts and 1 other location - About 3 hrs to fix
    src/components/KillTeam2021/data/greenskin.ts on lines 11..32

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

    const strategicPloys: Ploy[] = [
      {
        name: 'Fleet',
        cost: 1,
        description: 'Until the end of the Turning Point, each time a friendly CRAFTWORLD💀 operative performs a **Fall Back** or **Normal Move** action, it can perform a free **Dash** action with that action.'
    Severity: Major
    Found in src/components/KillTeam2021/data/craftworld.ts and 1 other location - About 3 hrs to fix
    src/components/KillTeam2021/data/commorrite.ts on lines 10..35

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

    const tacticalPloys: Ploy[] = [
      {
        name: 'Callous Disregard',
        cost: 1,
        description: `Use this Tactical Ploy when a **Shoot** action is declared for a friendly **BLOODED💀** operative. For that shooting attack:
    Severity: Major
    Found in src/components/KillTeam2021/data/blooded.ts and 3 other locations - About 3 hrs to fix
    src/components/KillTeam2021/data/broodCoven.ts on lines 26..48
    src/components/KillTeam2021/data/novitiate.ts on lines 9..35
    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 2 locations. Consider refactoring.
    Open

    const strategicPloys: Ploy[] = [
      {
        name: 'Bolter Discipline',
        cost: 1,
        description: `Until the end of the Turning Point, each time a friendly GREY KNIGHT💀 operative is activated, if it does not perform a **Fight** action during that activation, it
    Severity: Major
    Found in src/components/KillTeam2021/data/greyKnights.ts and 1 other location - About 3 hrs to fix
    src/components/KillTeam2021/data/hunterClade.ts on lines 40..65

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

    const tacticalPloys: Ploy[] = [
      {
        name: 'Pursuers',
        cost: 1,
        description: `Use this Tactical Ploy in the Scouting step of the mission sequence, when you resolve your scouting option.
    Severity: Major
    Found in src/components/KillTeam2021/data/hunterClade.ts and 1 other location - About 3 hrs to fix
    src/components/KillTeam2021/data/greyKnights.ts on lines 9..31

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

    const strategicPloys: Ploy[] = [
      {
        name: 'Fleet',
        cost: 1,
        description: 'Until the end of the Turning Point, each time a friendly COMMORRITE💀 operative performs a **Fall Back** or **Normal Move** action, it can perform a free **Dash** action with that action.'
    Severity: Major
    Found in src/components/KillTeam2021/data/commorrite.ts and 1 other location - About 3 hrs to fix
    src/components/KillTeam2021/data/craftworld.ts on lines 12..33

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

    const strategicPloys: Ploy[] = [
      {
        name: 'Dakka! Dakka! Dakka!',
        cost: 1,
        description: `Until the end of the Turning Point, each time a friendly GREENSKIN💀 operative makes a shooting attack, in the Roll Attack Dice step of that shooting attack,
    Severity: Major
    Found in src/components/KillTeam2021/data/greenskin.ts and 1 other location - About 3 hrs to fix
    src/components/KillTeam2021/data/kasrkin.ts on lines 44..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 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 4 locations. Consider refactoring.
    Open

          <Phase name='movement'>
            <>
              <AbilityList abilities={props.forceRules} phase='movement' highlight />
              {selectedModels.map((model: Model) => (
                <MovementPhaseDetails key={model.name} model={model} />
    Severity: Major
    Found in src/components/KillTeam2018/Roster.tsx and 3 other locations - About 3 hrs to fix
    src/components/KillTeam2018/Roster.tsx on lines 106..113
    src/components/KillTeam2018/Roster.tsx on lines 114..121
    src/components/KillTeam2018/Roster.tsx on lines 122..129

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

    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='fight'>
            <>
              <AbilityList abilities={props.forceRules} phase='fight' highlight />
              {selectedModels.map((model: Model) => (
                <FightPhaseDetails key={model.name} model={model} />
    Severity: Major
    Found in src/components/KillTeam2018/Roster.tsx and 3 other locations - About 3 hrs to fix
    src/components/KillTeam2018/Roster.tsx on lines 88..95
    src/components/KillTeam2018/Roster.tsx on lines 106..113
    src/components/KillTeam2018/Roster.tsx on lines 122..129

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

    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 parseOperativeRule = (rule: Node): Ability => {
      return {
        id: xpSelect('string(@id)', rule, true).toString(),
        name: xpSelect('string(@name)', rule, true).toString(),
        description: (xpSelect('.//bs:description/text()', rule, true) ?? '-').toString(),
    Severity: Major
    Found in src/parsers/KillTeam2021/BattlescribeParser.ts and 1 other location - About 3 hrs to fix
    src/parsers/KillTeam2021/BattlescribeParser.ts on lines 27..35

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

    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

    export function DeploymentPhaseDetails (props: Props): JSX.Element {
      return (
        <Row>
          <Col>
            <ModelTitle {...props.model} />
    Severity: Major
    Found in src/components/KillTeam2018/DeploymentPhaseDetails.tsx and 2 other locations - About 3 hrs to fix
    src/components/KillTeam2018/InitiativePhaseDetails.tsx on lines 11..20
    src/components/KillTeam2018/ScoutingPhaseDetails.tsx on lines 11..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 98.

    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='shooting'>
            <>
              <AbilityList abilities={props.forceRules} phase='shooting' highlight />
              {selectedModels.map((model: Model) => (
                <ShootingPhaseDetails key={model.name} model={model} />
    Severity: Major
    Found in src/components/KillTeam2018/Roster.tsx and 3 other locations - About 3 hrs to fix
    src/components/KillTeam2018/Roster.tsx on lines 88..95
    src/components/KillTeam2018/Roster.tsx on lines 114..121
    src/components/KillTeam2018/Roster.tsx on lines 122..129

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

    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

    export function ScoutingPhaseDetails (props: Props): JSX.Element {
      return (
        <Row>
          <Col>
            <ModelTitle {...props.model} />
    Severity: Major
    Found in src/components/KillTeam2018/ScoutingPhaseDetails.tsx and 2 other locations - About 3 hrs to fix
    src/components/KillTeam2018/DeploymentPhaseDetails.tsx on lines 11..20
    src/components/KillTeam2018/InitiativePhaseDetails.tsx on lines 11..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 98.

    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='morale'>
            <>
              <AbilityList abilities={props.forceRules} phase='morale' highlight />
              {selectedModels.map((model: Model) => (
                <MoralePhaseDetails key={model.name} model={model} />
    Severity: Major
    Found in src/components/KillTeam2018/Roster.tsx and 3 other locations - About 3 hrs to fix
    src/components/KillTeam2018/Roster.tsx on lines 88..95
    src/components/KillTeam2018/Roster.tsx on lines 106..113
    src/components/KillTeam2018/Roster.tsx on lines 114..121

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

    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 parseAbility = (ability: Node): Ability => {
      return {
        id: xpSelect('string(@id)', ability, true).toString(),
        name: xpSelect('string(@name)', ability, true).toString(),
        description: (xpSelect(".//bs:characteristic[@name='Ability']/text()", ability, true) ?? '-').toString(),
    Severity: Major
    Found in src/parsers/KillTeam2021/BattlescribeParser.ts and 1 other location - About 3 hrs to fix
    src/parsers/KillTeam2021/BattlescribeParser.ts on lines 37..45

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

    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