Floppy/dataslate

View on GitHub

Showing 242 of 242 total issues

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

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

Function Pathfinder has 75 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

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

    const parseAbility = (ability) => {
      const description = xpath(".//roster:characteristic[@name='Description']", ability)[0].childNodes[0].nodeValue
      return {
        id: xpath('string(@id)', ability, true).toString(),
        name: ability.getAttribute('name'),
    Severity: Major
    Found in src/parsers/KillTeam2018/BattlescribeParser.js and 1 other location - About 2 hrs to fix
    src/parsers/KillTeam2018/BattlescribeParser.js on lines 77..85

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

    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 parseWargear = (wargear) => {
      const description = xpath(".//roster:characteristic[@name='Ability']", wargear)[0].childNodes[0].nodeValue
      return {
        id: xpath('string(@id)', wargear, true).toString(),
        name: wargear.getAttribute('name'),
    Severity: Major
    Found in src/parsers/KillTeam2018/BattlescribeParser.js and 1 other location - About 2 hrs to fix
    src/parsers/KillTeam2018/BattlescribeParser.js on lines 39..47

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

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

    function Homepage (props: Props): JSX.Element {
      const [showSettings, setShowSettings] = useState(false)
    
      return (
        <>
    Severity: Major
    Found in src/components/Homepage.tsx - About 2 hrs to fix

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

        return (
          <h4 style={headingStyle}>
            <Col>
              <strong>{titleComponents[0]} </strong>
              <small>{_.join(_.slice(titleComponents, 1), ', ')}</small>
      Severity: Major
      Found in src/components/WH40k9e/ProfileTitle.tsx and 1 other location - About 2 hrs to fix
      src/components/WH40k9e/UnitTitle.tsx on lines 25..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 87.

      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

        return (
          <h3 style={headingStyle}>
            <Col>
              <strong>{titleComponents[0]} </strong>
              <small>{_.join(_.slice(titleComponents, 1), ', ')}</small>
      Severity: Major
      Found in src/components/WH40k9e/UnitTitle.tsx and 1 other location - About 2 hrs to fix
      src/components/WH40k9e/ProfileTitle.tsx on lines 21..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 87.

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

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

        Function App has 62 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function App (): JSX.Element {
          const [roster, setRoster] = useState<Roster2018 | Roster2021 | RosterWH40k9e | null>(null)
        
          const [settings, setSettings] = useState(DEFAULT_SETTINGS)
        
        
        Severity: Major
        Found in src/App.tsx - About 2 hrs to fix

          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 HERETIC ASTARTES operative is activated, if it does not perform a **Fight** action during that activation, it
          Severity: Major
          Found in src/components/KillTeam2021/data/traitorSpaceMarine.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 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: '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/phobosStrikeTeam.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/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: 'A Worthy Cause',
              cost: 2,
              description: `Use this tactical Ploy at the start of the Firefight phase. Select one friendly PATHFINDERđź’€ operative (excluding a **DRONE** operative) that is within â–  of any
          Severity: Major
          Found in src/components/KillTeam2021/data/pathfinder.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/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 tacticalPloys: Ploy[] = [
            {
              name: 'Penance Through Death',
              cost: 1,
              description: `Use this Tactical Ploy when a friendly SISTER REPENTIA or ARCO-FLAGELLANT operative is incapacitated in combat by an enemy operative. Before that friendly operative is
          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 11..31
          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: 'Purge With Flame',
              description: `You can reveal this Tac Op in the Target Reveal Step of any Turning Point.  
          Severity: Major
          Found in src/components/KillTeam2021/data/novitiate.ts and 9 other locations - About 2 hrs to fix
          src/components/KillTeam2021/data/blooded.ts on lines 74..98
          src/components/KillTeam2021/data/hunterClade.ts on lines 67..92
          src/components/KillTeam2021/data/imperialNavyBreachers.ts on lines 85..113
          src/components/KillTeam2021/data/intercessionSquad.ts on lines 74..105
          src/components/KillTeam2021/data/kasrkin.ts on lines 75..104
          src/components/KillTeam2021/data/pathfinder.ts on lines 59..83
          src/components/KillTeam2021/data/phobosStrikeTeam.ts on lines 81..110
          src/components/KillTeam2021/data/veteranGuardsmen.ts on lines 53..71
          src/components/KillTeam2021/data/voidDancer.ts on lines 75..99

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 82.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

          const strategicPloys: Ploy[] = [
            {
              name: 'Bolter Discipline',
              cost: 1,
              description: `Until the end of the Turning Point, each time a friendly SPACE MARINEđź’€ operative (excluding a SCOUT operative) is activated, if it does not perform a **Fight** action
          Severity: Major
          Found in src/components/KillTeam2021/data/spaceMarine.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/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: 'Vital Objective',
              description: `Reveal this Tac Op in the Target Reveal step of any Turning Point after the first. If this Tac Op is
          Severity: Major
          Found in src/components/KillTeam2021/data/kasrkin.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/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: 'Glorious Martyrdom',
              cost: 1,
              description: `Use this Tactical Ploy when a friendly NOVITIATE💀 operative is incapacitated. Each enemy operative within ⬤ of and Visible to that operative suffer 1 
          Severity: Major
          Found in src/components/KillTeam2021/data/novitiate.ts and 12 other locations - About 2 hrs to fix
          src/components/KillTeam2021/data/deathGuard.ts on lines 10..29
          src/components/KillTeam2021/data/ecclesiarchy.ts on lines 11..31
          src/components/KillTeam2021/data/ecclesiarchy.ts on lines 33..51
          src/components/KillTeam2021/data/pathfinder.ts on lines 36..57
          src/components/KillTeam2021/data/spaceMarine.ts on lines 17..36
          src/components/KillTeam2021/data/talonsOfTheEmperor.ts on lines 28..48
          src/components/KillTeam2021/data/thousandSons.ts on lines 12..31
          src/components/KillTeam2021/data/thousandSons.ts on lines 33..50
          src/components/KillTeam2021/data/traitorSpaceMarine.ts on lines 10..30
          src/components/KillTeam2021/data/traitorSpaceMarine.ts on lines 32..49
          src/components/KillTeam2021/data/troupe.ts on lines 9..28
          src/components/KillTeam2021/data/veteranGuardsmen.ts on lines 33..51

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 82.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

          const strategicPloys: Ploy[] = [
            {
              name: 'Rising Crescendo',
              cost: 1,
              description: `Until the end of the Turning Point, each time a friendly TROUPEđź’€ operative is activated:
          Severity: Major
          Found in src/components/KillTeam2021/data/troupe.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/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: 'Boots on the ground',
            description: `You can reveal this Tac Op at the end of any Turning Point.
            - At the end of that Turning Point, if there are more friendly operatives than enemy operatives within ⬟ of your drop zone, and there are more friendly
          Severity: Major
          Found in src/components/KillTeam2021/data/veteranGuardsmen.ts and 9 other locations - About 2 hrs to fix
          src/components/KillTeam2021/data/blooded.ts on lines 74..98
          src/components/KillTeam2021/data/hunterClade.ts on lines 67..92
          src/components/KillTeam2021/data/imperialNavyBreachers.ts on lines 85..113
          src/components/KillTeam2021/data/intercessionSquad.ts on lines 74..105
          src/components/KillTeam2021/data/kasrkin.ts on lines 75..104
          src/components/KillTeam2021/data/novitiate.ts on lines 63..83
          src/components/KillTeam2021/data/pathfinder.ts on lines 59..83
          src/components/KillTeam2021/data/phobosStrikeTeam.ts on lines 81..110
          src/components/KillTeam2021/data/voidDancer.ts on lines 75..99

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 82.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

          const tacticalPloys: Ploy[] = [
            {
              name: 'Veteran of the Long War',
              cost: 1,
              description: `Use this Tactical Ploy in a friendly HERETIC ASTARTES operative's activation, after it fights in combat or makes a shooting attack. If the target did not lose any
          Severity: Major
          Found in src/components/KillTeam2021/data/traitorSpaceMarine.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/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

          Severity
          Category
          Status
          Source
          Language