eduardomoroni/trading-card-manager

View on GitHub

Showing 244 of 244 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

export const styles = StyleSheet.create({
  container: {
    marginVertical: 8,
    alignItems: 'flex-start',
    justifyContent: 'center',
packages/frontend/src/presentation/components/activeFilters/styles.ts on lines 3..15

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

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

Identical blocks of code found in 2 locations. Consider refactoring.
Open

export const styles = StyleSheet.create({
  container: {
    marginVertical: 8,
    alignItems: 'flex-start',
    justifyContent: 'center',
packages/frontend/src/presentation/components/styles/ActiveFilters.styles.ts on lines 3..15

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

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

export async function addToken(token: any, set: any) {
  try {
    console.log(`Adding Token ${token.name}`);
    const uuid: string = token.uuid;
    const data: TokenCreateInput = {
Severity: Minor
Found in packages/backend/db-migration/prisma/seed/set.ts - About 1 hr to fix

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

    interface Props {
      navigation: CompositeNavigationProp<
        StackNavigationProp<ParamListBase, ROUTES.CARD_DETAILS>,
        NavigationHelpers<ParamListBase>
      >;
    packages/frontend/src/presentation/screens/CardSearch/CardSearchResults.tsx on lines 21..27

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

    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

    interface Props {
      navigation: CompositeNavigationProp<
        StackNavigationProp<ParamListBase, ROUTES.CARD_SEARCH_RESULTS>,
        NavigationHelpers<ParamListBase>
      >;
    packages/frontend/src/presentation/screens/CardSearch/CardDetails.tsx on lines 14..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 65.

    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 TokenEdgePromise extends Promise<TokenEdge>, Fragmentable {
      node: <T = TokenPromise>() => T;
      cursor: () => Promise<String>;
    }
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3022..3025
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3340..3343
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3592..3595
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3709..3712
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3757..3762
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3870..3875

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

    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 SubTypeEdgePromise extends Promise<SubTypeEdge>, Fragmentable {
      node: <T = SubTypePromise>() => T;
      cursor: () => Promise<String>;
    }
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3022..3025
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3171..3174
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3592..3595
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3709..3712
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3757..3762
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3870..3875

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

    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 PrintingEdgePromise
      extends Promise<PrintingEdge>,
        Fragmentable {
      node: <T = PrintingPromise>() => T;
      cursor: () => Promise<String>;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3022..3025
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3171..3174
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3340..3343
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3592..3595
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3709..3712
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3870..3875

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

    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 TypeEdgePromise extends Promise<TypeEdge>, Fragmentable {
      node: <T = TypePromise>() => T;
      cursor: () => Promise<String>;
    }
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3022..3025
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3171..3174
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3340..3343
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3709..3712
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3757..3762
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3870..3875

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

    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 SuperTypeEdgePromise
      extends Promise<SuperTypeEdge>,
        Fragmentable {
      node: <T = SuperTypePromise>() => T;
      cursor: () => Promise<String>;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3022..3025
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3171..3174
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3340..3343
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3592..3595
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3709..3712
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3757..3762

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

    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 CardEdgePromise extends Promise<CardEdge>, Fragmentable {
      node: <T = CardPromise>() => T;
      cursor: () => Promise<String>;
    }
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3171..3174
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3340..3343
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3592..3595
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3709..3712
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3757..3762
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3870..3875

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

    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 SetEdgePromise extends Promise<SetEdge>, Fragmentable {
      node: <T = SetPromise>() => T;
      cursor: () => Promise<String>;
    }
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3022..3025
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3171..3174
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3340..3343
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3592..3595
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3757..3762
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3870..3875

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

    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 a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
    Open

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

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

    export interface SetUpdateWithoutCardsDataInput {
      code?: String;
      block?: String;
      name?: String;
      releaseDate?: DateTimeInput;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1106..1113
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3262..3269
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3721..3728

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

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

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

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

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

    Refactorings

    Further Reading

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

    export interface Set {
      id: ID_Output;
      code: String;
      block?: String;
      name?: String;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1029..1036
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1106..1113
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3721..3728

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

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

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

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

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

    Refactorings

    Further Reading

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

    export interface SetPreviousValues {
      id: ID_Output;
      code: String;
      block?: String;
      name?: String;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1029..1036
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1106..1113
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3262..3269

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

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

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

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

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

    Refactorings

    Further Reading

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

    export interface SetUpdateWithoutTokensDataInput {
      code?: String;
      block?: String;
      name?: String;
      releaseDate?: DateTimeInput;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 1029..1036
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3262..3269
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3721..3728

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

    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 TypePreviousValuesPromise
      extends Promise<TypePreviousValues>,
        Fragmentable {
      id: () => Promise<ID_Output>;
      name: () => Promise<String>;
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3229..3232
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3525..3528
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3609..3614
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3649..3654
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3792..3795
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3809..3814
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3853..3856

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

    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 TypePromise extends Promise<Type>, Fragmentable {
      id: () => Promise<ID_Output>;
      name: () => Promise<String>;
    }
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2886..2891
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3525..3528
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3609..3614
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3649..3654
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3792..3795
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3809..3814
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3853..3856

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

    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 SuperTypePromise extends Promise<SuperType>, Fragmentable {
      id: () => Promise<ID_Output>;
      name: () => Promise<String>;
    }
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2886..2891
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3229..3232
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3609..3614
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3649..3654
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3792..3795
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3809..3814
    packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3853..3856

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

    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