bastienrobert/la-ferme

View on GitHub

Showing 148 of 214 total issues

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

const IconAction: FC<IconActionProps> = ({ onPress }) => {
  return (
    <IconContainer alignSelf="center">
      <Icon icon="cross" background="red" onPress={onPress} />
    </IconContainer>
packages/mobile/src/pages/samples/Game/Popup/Skill/SkillActions.tsx on lines 19..25

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

const IconAction: FC<IconActionProps> = ({ onPress }) => {
  return (
    <Container alignSelf="center">
      <Icon icon="cross" background="red" onPress={onPress} />
    </Container>
packages/mobile/src/pages/Game/Main/Popup/Skill/SkillActions.tsx on lines 22..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 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: '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: '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 2 locations. Consider refactoring.
Open

        <TextContainer>
          {content.text.map((line, i) => (
            <DescriptionText
              key={`pending-text-${i}`}
              color="beige"
Severity: Major
Found in packages/mobile/src/pages/samples/Pending.tsx and 1 other location - About 1 hr to fix
packages/mobile/src/pages/Onboarding/Pending/index.tsx on lines 103..112

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

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

      <TextContainer>
        {content.text.map((line, i) => (
          <DescriptionText
            key={`pending-text-${i}`}
            color="beige"
Severity: Major
Found in packages/mobile/src/pages/Onboarding/Pending/index.tsx and 1 other location - About 1 hr to fix
packages/mobile/src/pages/samples/Pending.tsx on lines 42..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 74.

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

      <BottomTexts>
        {t.bottom.map((l, i) => (
          <BottomText key={i} color="red">
            <span>{l}</span>
          </BottomText>
Severity: Major
Found in packages/website/src/components/slices/PlaySlice.tsx and 1 other location - About 1 hr to fix
packages/website/src/components/slices/PosterSlice/Poster.tsx on lines 19..25

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

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

      <ArrowTextContainer>
        {t.arrow.map((l, i) => (
          <Subtitle key={i} color="red">
            <Line>{l}</Line>
          </Subtitle>
packages/website/src/components/slices/PlaySlice.tsx on lines 63..69

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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: '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: '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

          <ButtonContainer alignSelf="center">
            <Button onPress={onConfirm}>{content.cta_yes}</Button>
            <Button onPress={onCancel}>{content.cta_no}</Button>
          </ButtonContainer>
Severity: Major
Found in packages/mobile/src/pages/Game/Main/Popup/Report/index.tsx and 3 other locations - About 1 hr to fix
packages/mobile/src/pages/Game/Main/Popup/GameOver/index.tsx on lines 52..55
packages/mobile/src/pages/Game/Main/Popup/Skill/SkillActions.tsx on lines 45..48
packages/mobile/src/pages/Game/Main/Popup/Skill/SkillRequest/SkillContent.tsx on lines 74..77

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

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

      <StyledTitleWithHashtag
        title={data.displayName}
        titleColor="gray"
        hashtag={[data.description]}
        hashtagColor="yellow"
packages/mobile/src/pages/Game/Main/MiniGame/MiniGameGoStop.tsx on lines 52..60

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

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