eduardomoroni/trading-card-manager

View on GitHub

Showing 244 of 244 total issues

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

export interface CardSubscriptionWhereInput {
  mutation_in?: MutationType[] | MutationType;
  updatedFields_contains?: String;
  updatedFields_contains_every?: String[] | String;
  updatedFields_contains_some?: String[] | String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 967..974
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1004..1011
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1020..1027
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1038..1045
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1970..1977
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2727..2734

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

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

export interface SubTypeSubscriptionWhereInput {
  mutation_in?: MutationType[] | MutationType;
  updatedFields_contains?: String;
  updatedFields_contains_every?: String[] | String;
  updatedFields_contains_some?: String[] | String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 967..974
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1004..1011
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1038..1045
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1970..1977
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2727..2734
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2868..2875

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

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

export interface SetSubscriptionWhereInput {
  mutation_in?: MutationType[] | MutationType;
  updatedFields_contains?: String;
  updatedFields_contains_every?: String[] | String;
  updatedFields_contains_some?: String[] | String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 967..974
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1004..1011
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1020..1027
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1038..1045
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2727..2734
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2868..2875

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

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

export interface TokenSubscriptionWhereInput {
  mutation_in?: MutationType[] | MutationType;
  updatedFields_contains?: String;
  updatedFields_contains_every?: String[] | String;
  updatedFields_contains_some?: String[] | String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1004..1011
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1020..1027
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1038..1045
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1970..1977
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2727..2734
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2868..2875

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

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

export interface SuperTypeSubscriptionWhereInput {
  mutation_in?: MutationType[] | MutationType;
  updatedFields_contains?: String;
  updatedFields_contains_every?: String[] | String;
  updatedFields_contains_some?: String[] | String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 967..974
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1020..1027
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1038..1045
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1970..1977
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2727..2734
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2868..2875

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

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

export interface PrintingSubscriptionWhereInput {
  mutation_in?: MutationType[] | MutationType;
  updatedFields_contains?: String;
  updatedFields_contains_every?: String[] | String;
  updatedFields_contains_some?: String[] | String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 967..974
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1004..1011
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1020..1027
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1970..1977
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2727..2734
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2868..2875

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

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

export interface TypeSubscriptionWhereInput {
  mutation_in?: MutationType[] | MutationType;
  updatedFields_contains?: String;
  updatedFields_contains_every?: String[] | String;
  updatedFields_contains_some?: String[] | String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 967..974
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1004..1011
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1020..1027
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1038..1045
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1970..1977
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2868..2875

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

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

export const CardSearchFilterLayout: React.FC<Props> = (props: Props) => {
  const {
    onSubmitFilter,
    cardName,
    setCardName,

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

      types: (
        args?: {
          where?: TypeWhereInput;
          orderBy?: TypeOrderByInput;
          skip?: Int;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 46..56
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 69..79
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 92..102
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 115..125
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 138..148
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 161..171

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

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

      superTypes: (
        args?: {
          where?: SuperTypeWhereInput;
          orderBy?: SuperTypeOrderByInput;
          skip?: Int;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 46..56
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 69..79
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 92..102
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 115..125
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 161..171
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 184..194

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

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

      tokens: (
        args?: {
          where?: TokenWhereInput;
          orderBy?: TokenOrderByInput;
          skip?: Int;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 46..56
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 69..79
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 92..102
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 115..125
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 138..148
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 184..194

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

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

      printings: (
        args?: {
          where?: PrintingWhereInput;
          orderBy?: PrintingOrderByInput;
          skip?: Int;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 46..56
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 92..102
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 115..125
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 138..148
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 161..171
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 184..194

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

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

      cards: (
        args?: {
          where?: CardWhereInput;
          orderBy?: CardOrderByInput;
          skip?: Int;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 69..79
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 92..102
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 115..125
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 138..148
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 161..171
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 184..194

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

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

      subTypes: (
        args?: {
          where?: SubTypeWhereInput;
          orderBy?: SubTypeOrderByInput;
          skip?: Int;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 46..56
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 69..79
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 92..102
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 138..148
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 161..171
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 184..194

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

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

      sets: (
        args?: {
          where?: SetWhereInput;
          orderBy?: SetOrderByInput;
          skip?: Int;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 46..56
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 69..79
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 115..125
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 138..148
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 161..171
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 184..194

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

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

    export const Welcome: React.FC<Props> = (props: Props) => {
      const { navigation } = props;
      const { user } = useSelector(authSelector);
      const { t } = useTranslation();
      const styles = WelcomeStyles;
    Severity: Major
    Found in packages/frontend/src/presentation/screens/Welcome/index.tsx - About 2 hrs to fix

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

        function renderSupertypeFilter(): React.ReactElement | null {
          if (!supertype) {
            return null;
          }
          return (
      packages/frontend/src/presentation/components/ActiveFilters.tsx on lines 52..62
      packages/frontend/src/presentation/components/ActiveFilters.tsx on lines 74..84

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

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

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

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

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

      Refactorings

      Further Reading

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

        function renderSubtypeFilter(): React.ReactElement | null {
          if (!subtype) {
            return null;
          }
          return (
      packages/frontend/src/presentation/components/ActiveFilters.tsx on lines 52..62
      packages/frontend/src/presentation/components/ActiveFilters.tsx on lines 63..73

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 86.

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

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

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

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

      Refactorings

      Further Reading

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

        function renderCardNameFilter(): React.ReactElement | null {
          if (!cardName) {
            return null;
          }
          return (
      packages/frontend/src/presentation/components/ActiveFilters.tsx on lines 63..73
      packages/frontend/src/presentation/components/ActiveFilters.tsx on lines 74..84

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

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

        tokensConnection: (
          args?: {
            where?: TokenWhereInput;
            orderBy?: TokenOrderByInput;
            skip?: Int;
      packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 57..67
      packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 80..90
      packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 103..113
      packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 126..136
      packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 149..159
      packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 195..205

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

      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