bastienrobert/la-ferme

View on GitHub
packages/shared/data/cards/uncivil.ts

Summary

Maintainability
F
3 days
Test Coverage

File uncivil.ts has 266 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Card, CardRewardType } from '../../typings'

const uncivil: Card[] = [
  {
    name: 'not-polite',
Severity: Minor
Found in packages/shared/data/cards/uncivil.ts - About 2 hrs to fix

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

      {
        name: 'go-home',
        displayName: 'Rentre chez toi',
        playerText:
          "C'est un vrai poulailler ici ! Vu le bruit, vous êtes obligés de rentrer chez vous pour faire du télé-travail.",
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 228..246
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'leave-it-here',
        displayName: 'Laisse tout ici',
        playerText:
          'Mr Chabichou à oublier de prendre des courgettes et laisse son cadis en plan. Vous le poussez pour passer.',
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 228..246

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

    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

      {
        name: 'stuck',
        displayName: 'Coincé!',
        playerText:
          "Votre patte est coincée!! Remerciez Monsieur Joe Jumper de s'être adosser à la barre du métro sans gêne.",
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 228..246
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'big-party',
        displayName: 'Big party!',
        playerText:
          "C'est la fièvre du samedi soir chez votre voisinne Claudine! Vous décidez d'appeler la brigade!",
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 228..246
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'jostle',
        displayName: 'Bousculade',
        playerText:
          'Aussi jolie soit-elle, Madame Burrata est très impolie. Elle vous bouscule et vous tombez sur un passant. ',
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 228..246
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'clean-it-up',
        displayName: 'Nettoie tout!',
        playerText:
          "Personne ne nettoie les toilettes a part vous. Aujourd'hui, vous désignez quelqu'un pour passer le balais.",
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 228..246
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'throw-phone',
        displayName: 'Jette ton tel!',
        playerText:
          'Madame Blanquette a failli vous percuter étant sur son bigo ! Elle vous dépose donc quelques rues plus loin. ',
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'not-polite',
        displayName: 'Pas aimable...',
        playerText:
          'Quelle peau de vache ! Madame Kirry ne se lêve pas du strapontin et vous empêche de rentrer dans le métro.',
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 228..246
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'damn-door',
        displayName: 'Sacré porte',
        playerText:
          'Madame Potté oublie de vous tenir la porte, quelle tête de linotte ! Cela entraine une prise de bec.',
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 209..227
    packages/shared/data/cards/uncivil.ts on lines 228..246
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'bye-bike',
        displayName: 'Adieu, mon vélo',
        playerText:
          'Felicia Felix paraît douce au premier bord. Elle a pourtant crevé les pneux des velibs de votre station, pour le fun.',
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 9 other locations - About 2 hrs to fix
    packages/shared/data/cards/uncivil.ts on lines 4..22
    packages/shared/data/cards/uncivil.ts on lines 41..59
    packages/shared/data/cards/uncivil.ts on lines 78..96
    packages/shared/data/cards/uncivil.ts on lines 97..115
    packages/shared/data/cards/uncivil.ts on lines 134..152
    packages/shared/data/cards/uncivil.ts on lines 153..171
    packages/shared/data/cards/uncivil.ts on lines 172..190
    packages/shared/data/cards/uncivil.ts on lines 228..246
    packages/shared/data/cards/uncivil.ts on lines 247..265

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

    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

      {
        name: 'stinky-mattress',
        displayName: 'Matelas puant',
        playerText:
          "Un matelas pourri encombre l'ascenseur. Vous devez prendre l'escalier.",
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 3 other locations - About 1 hr to fix
    packages/shared/data/cards/uncivil.ts on lines 23..40
    packages/shared/data/cards/uncivil.ts on lines 60..77
    packages/shared/data/cards/uncivil.ts on lines 191..208

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

    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

      {
        name: 'bullying',
        displayName: 'Harcélement',
        playerText:
          "Un chaud lapin s'approche près de vous et vous siffle. Vous décidez d'appeler à l'aide.",
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 3 other locations - About 1 hr to fix
    packages/shared/data/cards/uncivil.ts on lines 23..40
    packages/shared/data/cards/uncivil.ts on lines 60..77
    packages/shared/data/cards/uncivil.ts on lines 116..133

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

    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

      {
        name: 'stay-here',
        displayName: 'Reste ici',
        playerText:
          'Monsieur Bourguignon ne laisse personne descendre. Les portes se referment, vous avez raté votre arrêt.',
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 3 other locations - About 1 hr to fix
    packages/shared/data/cards/uncivil.ts on lines 23..40
    packages/shared/data/cards/uncivil.ts on lines 116..133
    packages/shared/data/cards/uncivil.ts on lines 191..208

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

    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

      {
        name: 'smart-bill',
        displayName: 'Habille, Bill',
        playerText:
          'Monsieur Ponpon est très en retard. Hop! Ni vu ni connu il double tout le monde dans la file aux champs.',
    Severity: Major
    Found in packages/shared/data/cards/uncivil.ts and 3 other locations - About 1 hr to fix
    packages/shared/data/cards/uncivil.ts on lines 60..77
    packages/shared/data/cards/uncivil.ts on lines 116..133
    packages/shared/data/cards/uncivil.ts on lines 191..208

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

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status