eduardomoroni/trading-card-manager

View on GitHub

Showing 244 of 244 total issues

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

  superTypesConnection: (
    args?: {
      where?: SuperTypeWhereInput;
      orderBy?: SuperTypeOrderByInput;
      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 172..182
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

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

  cardsConnection: (
    args?: {
      where?: CardWhereInput;
      orderBy?: CardOrderByInput;
      skip?: Int;
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 172..182
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

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

  subTypesConnection: (
    args?: {
      where?: SubTypeWhereInput;
      orderBy?: SubTypeOrderByInput;
      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 149..159
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 172..182
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

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

  printingsConnection: (
    args?: {
      where?: PrintingWhereInput;
      orderBy?: PrintingOrderByInput;
      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 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 172..182
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

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

  typesConnection: (
    args?: {
      where?: TypeWhereInput;
      orderBy?: TypeOrderByInput;
      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 172..182

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

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

  setsConnection: (
    args?: {
      where?: SetWhereInput;
      orderBy?: SetOrderByInput;
      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 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 172..182
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

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

export interface ForeignData {
  id: ID_Output;
  multiverseId: Int;
  flavorText?: String;
  language: String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2711..2720
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2853..2862

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

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

export interface SetCreateInput {
  id?: ID_Input;
  code: String;
  block?: String;
  name?: String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2711..2720
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3034..3043

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

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

export interface ForeignDataCreateInput {
  id?: ID_Input;
  multiverseId: Int;
  flavorText?: String;
  language: String;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2853..2862
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3034..3043

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

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

export interface SuperTypeSubscription
  extends Promise<AsyncIterator<SuperType>>,
    Fragmentable {
  id: () => Promise<AsyncIterator<ID_Output>>;
  name: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2893..2898
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3234..3239
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3616..3621
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3656..3661
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3797..3802
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3816..3821
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3858..3863

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

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

export interface PrintingPreviousValuesSubscription
  extends Promise<AsyncIterator<PrintingPreviousValues>>,
    Fragmentable {
  id: () => Promise<AsyncIterator<ID_Output>>;
  name: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2893..2898
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3234..3239
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3530..3535
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3656..3661
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3797..3802
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3816..3821
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3858..3863

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

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

export interface SuperTypePreviousValuesSubscription
  extends Promise<AsyncIterator<SuperTypePreviousValues>>,
    Fragmentable {
  id: () => Promise<AsyncIterator<ID_Output>>;
  name: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2893..2898
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3234..3239
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3530..3535
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3616..3621
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3797..3802
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3816..3821
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3858..3863

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

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

export interface TypePreviousValuesSubscription
  extends Promise<AsyncIterator<TypePreviousValues>>,
    Fragmentable {
  id: () => Promise<AsyncIterator<ID_Output>>;
  name: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3234..3239
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3530..3535
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3616..3621
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3656..3661
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3797..3802
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3816..3821
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3858..3863

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

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

export interface TypeSubscription
  extends Promise<AsyncIterator<Type>>,
    Fragmentable {
  id: () => Promise<AsyncIterator<ID_Output>>;
  name: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2893..2898
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3530..3535
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3616..3621
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3656..3661
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3797..3802
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3816..3821
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3858..3863

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

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

export interface PrintingSubscription
  extends Promise<AsyncIterator<Printing>>,
    Fragmentable {
  id: () => Promise<AsyncIterator<ID_Output>>;
  name: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2893..2898
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3234..3239
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3530..3535
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3616..3621
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3656..3661
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3816..3821
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3858..3863

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

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

export interface SubTypePreviousValuesSubscription
  extends Promise<AsyncIterator<SubTypePreviousValues>>,
    Fragmentable {
  id: () => Promise<AsyncIterator<ID_Output>>;
  name: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2893..2898
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3234..3239
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3530..3535
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3616..3621
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3656..3661
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3797..3802
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3858..3863

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

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

export interface SubTypeSubscription
  extends Promise<AsyncIterator<SubType>>,
    Fragmentable {
  id: () => Promise<AsyncIterator<ID_Output>>;
  name: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2893..2898
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3234..3239
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3530..3535
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3616..3621
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3656..3661
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3797..3802
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3816..3821

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

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

export async function createFacebookCredential(
  accessToken: string,
): Promise<auth.OAuthCredential | void> {
  try {
    return await auth.FacebookAuthProvider.credential(accessToken);
Severity: Major
Found in packages/frontend/src/data/firebase/authentication.ts and 1 other location - About 2 hrs to fix
packages/frontend/src/data/firebase/authentication.ts on lines 76..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 76.

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 SubTypeEdgeSubscription
  extends Promise<AsyncIterator<SubTypeEdge>>,
    Fragmentable {
  node: <T = SubTypeSubscription>() => T;
  cursor: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3027..3032
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3176..3181
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3597..3602
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3714..3719
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3764..3769
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3877..3882

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

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 CardEdgeSubscription
  extends Promise<AsyncIterator<CardEdge>>,
    Fragmentable {
  node: <T = CardSubscription>() => T;
  cursor: () => Promise<AsyncIterator<String>>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3176..3181
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3345..3350
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3597..3602
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3714..3719
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3764..3769
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3877..3882

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

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