bastienrobert/la-ferme

View on GitHub

Showing 178 of 214 total issues

Function CarCounterPoints has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const CarCounterPoints: FC<SvgProps> = props => {
  return (
    <Svg viewBox={`0 0 ${WIDTH} ${HEIGHT}`} fill="none" {...props}>
      <Path
        fill={Colors.beige}
Severity: Major
Found in packages/mobile/src/components/svgs/CarCounterPoints.tsx - About 2 hrs to fix

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

            <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

    Function Scan has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Confirmed

    const Scan = () => {
      const fadeAnim = useRef(new Animated.Value(0)).current
    
      useEffect(() => {
        Animated.loop(
    Severity: Minor
    Found in packages/mobile/src/pages/Home/Main/QRCode/Scan.tsx - About 1 hr to fix

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

      Severity
      Category
      Status
      Source
      Language