eduardomoroni/trading-card-manager

View on GitHub

Showing 244 of 244 total issues

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

  cards: <T = Promise<AsyncIterator<CardSubscription>>>(
    args?: {
      where?: CardWhereInput;
      orderBy?: CardOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3311..3321
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4056..4066
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4067..4077
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4078..4088
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4089..4099

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

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

  subTypes: <T = Promise<AsyncIterator<SubTypeSubscription>>>(
    args?: {
      where?: SubTypeWhereInput;
      orderBy?: SubTypeOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3311..3321
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3322..3332
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4056..4066
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4078..4088
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4089..4099

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

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

  printings: <T = Promise<AsyncIterator<PrintingSubscription>>>(
    args?: {
      where?: PrintingWhereInput;
      orderBy?: PrintingOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3311..3321
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3322..3332
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4067..4077
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4078..4088
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4089..4099

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

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

  superTypes: <T = Promise<AsyncIterator<SuperTypeSubscription>>>(
    args?: {
      where?: SuperTypeWhereInput;
      orderBy?: SuperTypeOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3311..3321
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3322..3332
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4056..4066
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4067..4077
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4089..4099

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

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

  try {
    const card = await CardService.saveAll(req.body);
    res.status(201).json(card);
  } catch (error) {
    console.error(error);
packages/backend/functions/src/presentation/rest/routes/card.route.js on lines 12..20

Duplicated Code

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

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

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

Tuning

This issue has a mass of 99.

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

  try {
    const card = await CardService.save(req.body);
    res.status(201).json(card);
  } catch (error) {
    console.error(error);
packages/backend/functions/src/presentation/rest/routes/card.route.js on lines 24..32

Duplicated Code

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

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

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

Tuning

This issue has a mass of 99.

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

  tokens: <T = FragmentableArray<Token>>(
    args?: {
      where?: TokenWhereInput;
      orderBy?: TokenOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3289..3299
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3985..3995
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3996..4006
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4007..4017
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4018..4028

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

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

  types: <T = FragmentableArray<Type>>(
    args?: {
      where?: TypeWhereInput;
      orderBy?: TypeOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3278..3288
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3289..3299
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3985..3995
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3996..4006
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4007..4017

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

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

  superTypes: <T = FragmentableArray<SuperType>>(
    args?: {
      where?: SuperTypeWhereInput;
      orderBy?: SuperTypeOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3278..3288
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3289..3299
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3985..3995
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3996..4006
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4018..4028

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

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

  subTypes: <T = FragmentableArray<SubType>>(
    args?: {
      where?: SubTypeWhereInput;
      orderBy?: SubTypeOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3278..3288
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3289..3299
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3985..3995
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4007..4017
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4018..4028

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

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

  cards: <T = FragmentableArray<Card>>(
    args?: {
      where?: CardWhereInput;
      orderBy?: CardOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3278..3288
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3985..3995
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3996..4006
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4007..4017
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4018..4028

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

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

  printings: <T = FragmentableArray<Printing>>(
    args?: {
      where?: PrintingWhereInput;
      orderBy?: PrintingOrderByInput;
      skip?: Int;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3278..3288
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3289..3299
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3996..4006
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4007..4017
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4018..4028

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

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

export const ActiveFilters: React.FC<Props> = (props: Props) => {
  const {
    colors,
    colorIdentities,
    cardName,
Severity: Major
Found in packages/frontend/src/presentation/components/ActiveFilters.tsx - About 3 hrs to fix

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

    export interface CardConnectionPromise
      extends Promise<CardConnection>,
        Fragmentable {
      pageInfo: <T = PageInfoPromise>() => T;
      edges: <T = FragmentableArray<CardEdge>>() => T;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2905..2911
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3129..3135
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3246..3252
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3418..3424
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3628..3634
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4108..4114

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

    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 SuperTypeConnectionPromise
      extends Promise<SuperTypeConnection>,
        Fragmentable {
      pageInfo: <T = PageInfoPromise>() => T;
      edges: <T = FragmentableArray<SuperTypeEdge>>() => T;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2905..2911
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3129..3135
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3150..3156
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3418..3424
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3628..3634
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4108..4114

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

    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 SubTypeConnectionPromise
      extends Promise<SubTypeConnection>,
        Fragmentable {
      pageInfo: <T = PageInfoPromise>() => T;
      edges: <T = FragmentableArray<SubTypeEdge>>() => T;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2905..2911
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3129..3135
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3150..3156
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3246..3252
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3418..3424
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3628..3634

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

    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 SetConnectionPromise
      extends Promise<SetConnection>,
        Fragmentable {
      pageInfo: <T = PageInfoPromise>() => T;
      edges: <T = FragmentableArray<SetEdge>>() => T;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2905..2911
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3129..3135
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3150..3156
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3246..3252
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3628..3634
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4108..4114

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

    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 TokenConnectionPromise
      extends Promise<TokenConnection>,
        Fragmentable {
      pageInfo: <T = PageInfoPromise>() => T;
      edges: <T = FragmentableArray<TokenEdge>>() => T;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2905..2911
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3129..3135
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3150..3156
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3246..3252
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3418..3424
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4108..4114

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

    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 TypeConnectionPromise
      extends Promise<TypeConnection>,
        Fragmentable {
      pageInfo: <T = PageInfoPromise>() => T;
      edges: <T = FragmentableArray<TypeEdge>>() => T;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2905..2911
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3150..3156
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3246..3252
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3418..3424
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3628..3634
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4108..4114

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

    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 PrintingConnectionPromise
      extends Promise<PrintingConnection>,
        Fragmentable {
      pageInfo: <T = PageInfoPromise>() => T;
      edges: <T = FragmentableArray<PrintingEdge>>() => T;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3129..3135
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3150..3156
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3246..3252
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3418..3424
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3628..3634
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 4108..4114

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

    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