withmoney/withmoney-api

View on GitHub

Showing 90 of 96 total issues

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

export const sendVerifyEmail = ({ firstName, email, hash }: IVerifyEmail) =>
  transport.sendMail({
    from: EMAIL_FROM,
    to: email,
    subject: '[withmoney] Please verify your email',
Severity: Major
Found in src/email.ts and 1 other location - About 3 hrs to fix
src/email.ts on lines 61..74

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

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 const sendChangePasswordRequest = ({ firstName, email, hash }: IVerifyEmail) =>
  transport.sendMail({
    from: EMAIL_FROM,
    to: email,
    subject: '[withmoney] Change Password',
Severity: Major
Found in src/email.ts and 1 other location - About 3 hrs to fix
src/email.ts on lines 33..46

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

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

    findManyOperation: { // args
      cursor?: NexusGenInputs['OperationWhereUniqueInput'] | null; // OperationWhereUniqueInput
      orderBy?: Array<NexusGenInputs['OperationOrderByInput'] | null> | null; // [OperationOrderByInput]
      skip?: number | null; // Int
      take?: number | null; // Int
Severity: Major
Found in src/generated/nexus.ts and 3 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 1010..1016
src/generated/nexus.ts on lines 1017..1023
src/generated/nexus.ts on lines 1024..1030

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

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

    findManyAccount: { // args
      cursor?: NexusGenInputs['AccountWhereUniqueInput'] | null; // AccountWhereUniqueInput
      orderBy?: Array<NexusGenInputs['AccountOrderByInput'] | null> | null; // [AccountOrderByInput]
      skip?: number | null; // Int
      take?: number | null; // Int
Severity: Major
Found in src/generated/nexus.ts and 3 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 1017..1023
src/generated/nexus.ts on lines 1024..1030
src/generated/nexus.ts on lines 1031..1037

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

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

    findManyCreditCard: { // args
      cursor?: NexusGenInputs['CreditCardWhereUniqueInput'] | null; // CreditCardWhereUniqueInput
      orderBy?: Array<NexusGenInputs['CreditCardOrderByInput'] | null> | null; // [CreditCardOrderByInput]
      skip?: number | null; // Int
      take?: number | null; // Int
Severity: Major
Found in src/generated/nexus.ts and 3 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 1010..1016
src/generated/nexus.ts on lines 1017..1023
src/generated/nexus.ts on lines 1031..1037

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

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

    findManyCategory: { // args
      cursor?: NexusGenInputs['CategoryWhereUniqueInput'] | null; // CategoryWhereUniqueInput
      orderBy?: Array<NexusGenInputs['CategoryOrderByInput'] | null> | null; // [CategoryOrderByInput]
      skip?: number | null; // Int
      take?: number | null; // Int
Severity: Major
Found in src/generated/nexus.ts and 3 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 1010..1016
src/generated/nexus.ts on lines 1024..1030
src/generated/nexus.ts on lines 1031..1037

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

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

  EnumCreditCardBrandFilter: { // input type
    equals?: NexusGenEnums['CreditCardBrand'] | null; // CreditCardBrand
    in?: NexusGenEnums['CreditCardBrand'][] | null; // [CreditCardBrand!]
    not?: NexusGenInputs['NestedEnumCreditCardBrandFilter'] | null; // NestedEnumCreditCardBrandFilter
    notIn?: NexusGenEnums['CreditCardBrand'][] | null; // [CreditCardBrand!]
Severity: Major
Found in src/generated/nexus.ts and 7 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 219..224
src/generated/nexus.ts on lines 225..230
src/generated/nexus.ts on lines 231..236
src/generated/nexus.ts on lines 271..276
src/generated/nexus.ts on lines 277..282
src/generated/nexus.ts on lines 283..288
src/generated/nexus.ts on lines 289..294

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

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

  EnumTransactionTypeFilter: { // input type
    equals?: NexusGenEnums['TransactionType'] | null; // TransactionType
    in?: NexusGenEnums['TransactionType'][] | null; // [TransactionType!]
    not?: NexusGenInputs['NestedEnumTransactionTypeFilter'] | null; // NestedEnumTransactionTypeFilter
    notIn?: NexusGenEnums['TransactionType'][] | null; // [TransactionType!]
Severity: Major
Found in src/generated/nexus.ts and 7 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 213..218
src/generated/nexus.ts on lines 219..224
src/generated/nexus.ts on lines 225..230
src/generated/nexus.ts on lines 271..276
src/generated/nexus.ts on lines 277..282
src/generated/nexus.ts on lines 283..288
src/generated/nexus.ts on lines 289..294

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

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

  NestedEnumCurrencyFilter: { // input type
    equals?: NexusGenEnums['Currency'] | null; // Currency
    in?: NexusGenEnums['Currency'][] | null; // [Currency!]
    not?: NexusGenInputs['NestedEnumCurrencyFilter'] | null; // NestedEnumCurrencyFilter
    notIn?: NexusGenEnums['Currency'][] | null; // [Currency!]
Severity: Major
Found in src/generated/nexus.ts and 7 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 213..218
src/generated/nexus.ts on lines 219..224
src/generated/nexus.ts on lines 225..230
src/generated/nexus.ts on lines 231..236
src/generated/nexus.ts on lines 271..276
src/generated/nexus.ts on lines 283..288
src/generated/nexus.ts on lines 289..294

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

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

  EnumCurrencyFilter: { // input type
    equals?: NexusGenEnums['Currency'] | null; // Currency
    in?: NexusGenEnums['Currency'][] | null; // [Currency!]
    not?: NexusGenInputs['NestedEnumCurrencyFilter'] | null; // NestedEnumCurrencyFilter
    notIn?: NexusGenEnums['Currency'][] | null; // [Currency!]
Severity: Major
Found in src/generated/nexus.ts and 7 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 213..218
src/generated/nexus.ts on lines 225..230
src/generated/nexus.ts on lines 231..236
src/generated/nexus.ts on lines 271..276
src/generated/nexus.ts on lines 277..282
src/generated/nexus.ts on lines 283..288
src/generated/nexus.ts on lines 289..294

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

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

  NestedEnumTransactionTypeFilter: { // input type
    equals?: NexusGenEnums['TransactionType'] | null; // TransactionType
    in?: NexusGenEnums['TransactionType'][] | null; // [TransactionType!]
    not?: NexusGenInputs['NestedEnumTransactionTypeFilter'] | null; // NestedEnumTransactionTypeFilter
    notIn?: NexusGenEnums['TransactionType'][] | null; // [TransactionType!]
Severity: Major
Found in src/generated/nexus.ts and 7 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 213..218
src/generated/nexus.ts on lines 219..224
src/generated/nexus.ts on lines 225..230
src/generated/nexus.ts on lines 231..236
src/generated/nexus.ts on lines 271..276
src/generated/nexus.ts on lines 277..282
src/generated/nexus.ts on lines 283..288

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

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

  EnumLocaleFilter: { // input type
    equals?: NexusGenEnums['Locale'] | null; // Locale
    in?: NexusGenEnums['Locale'][] | null; // [Locale!]
    not?: NexusGenInputs['NestedEnumLocaleFilter'] | null; // NestedEnumLocaleFilter
    notIn?: NexusGenEnums['Locale'][] | null; // [Locale!]
Severity: Major
Found in src/generated/nexus.ts and 7 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 213..218
src/generated/nexus.ts on lines 219..224
src/generated/nexus.ts on lines 231..236
src/generated/nexus.ts on lines 271..276
src/generated/nexus.ts on lines 277..282
src/generated/nexus.ts on lines 283..288
src/generated/nexus.ts on lines 289..294

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

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

  NestedEnumCreditCardBrandFilter: { // input type
    equals?: NexusGenEnums['CreditCardBrand'] | null; // CreditCardBrand
    in?: NexusGenEnums['CreditCardBrand'][] | null; // [CreditCardBrand!]
    not?: NexusGenInputs['NestedEnumCreditCardBrandFilter'] | null; // NestedEnumCreditCardBrandFilter
    notIn?: NexusGenEnums['CreditCardBrand'][] | null; // [CreditCardBrand!]
Severity: Major
Found in src/generated/nexus.ts and 7 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 213..218
src/generated/nexus.ts on lines 219..224
src/generated/nexus.ts on lines 225..230
src/generated/nexus.ts on lines 231..236
src/generated/nexus.ts on lines 277..282
src/generated/nexus.ts on lines 283..288
src/generated/nexus.ts on lines 289..294

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

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

  NestedEnumLocaleFilter: { // input type
    equals?: NexusGenEnums['Locale'] | null; // Locale
    in?: NexusGenEnums['Locale'][] | null; // [Locale!]
    not?: NexusGenInputs['NestedEnumLocaleFilter'] | null; // NestedEnumLocaleFilter
    notIn?: NexusGenEnums['Locale'][] | null; // [Locale!]
Severity: Major
Found in src/generated/nexus.ts and 7 other locations - About 3 hrs to fix
src/generated/nexus.ts on lines 213..218
src/generated/nexus.ts on lines 219..224
src/generated/nexus.ts on lines 225..230
src/generated/nexus.ts on lines 231..236
src/generated/nexus.ts on lines 271..276
src/generated/nexus.ts on lines 277..282
src/generated/nexus.ts on lines 289..294

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

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 const CreditCardUpdateInput = inputObjectType({
  name: 'CreditCardUpdateInput',
  definition(t) {
    t.nonNull.string('name');
    t.nonNull.float('limit');
Severity: Major
Found in src/types/CreditCard/inputs.ts and 1 other location - About 3 hrs to fix
src/types/CreditCard/inputs.ts on lines 3..11

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

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 const CreditCardCreateInput = inputObjectType({
  name: 'CreditCardCreateInput',
  definition(t) {
    t.nonNull.string('name');
    t.nonNull.float('limit');
Severity: Major
Found in src/types/CreditCard/inputs.ts and 1 other location - About 3 hrs to fix
src/types/CreditCard/inputs.ts on lines 13..21

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

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

  CreditCardListRelationFilter: { // input type
    every?: NexusGenInputs['CreditCardWhereInput'] | null; // CreditCardWhereInput
    none?: NexusGenInputs['CreditCardWhereInput'] | null; // CreditCardWhereInput
    some?: NexusGenInputs['CreditCardWhereInput'] | null; // CreditCardWhereInput
  }
Severity: Major
Found in src/generated/nexus.ts and 3 other locations - About 1 hr to fix
src/generated/nexus.ts on lines 49..53
src/generated/nexus.ts on lines 107..111
src/generated/nexus.ts on lines 341..345

Duplicated Code

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

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

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

Tuning

This issue has a mass of 74.

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

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

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

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

Refactorings

Further Reading

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

  CategoryListRelationFilter: { // input type
    every?: NexusGenInputs['CategoryWhereInput'] | null; // CategoryWhereInput
    none?: NexusGenInputs['CategoryWhereInput'] | null; // CategoryWhereInput
    some?: NexusGenInputs['CategoryWhereInput'] | null; // CategoryWhereInput
  }
Severity: Major
Found in src/generated/nexus.ts and 3 other locations - About 1 hr to fix
src/generated/nexus.ts on lines 49..53
src/generated/nexus.ts on lines 149..153
src/generated/nexus.ts on lines 341..345

Duplicated Code

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

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

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

Tuning

This issue has a mass of 74.

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

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

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

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

Refactorings

Further Reading

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

  OperationListRelationFilter: { // input type
    every?: NexusGenInputs['OperationWhereInput'] | null; // OperationWhereInput
    none?: NexusGenInputs['OperationWhereInput'] | null; // OperationWhereInput
    some?: NexusGenInputs['OperationWhereInput'] | null; // OperationWhereInput
  }
Severity: Major
Found in src/generated/nexus.ts and 3 other locations - About 1 hr to fix
src/generated/nexus.ts on lines 49..53
src/generated/nexus.ts on lines 107..111
src/generated/nexus.ts on lines 149..153

Duplicated Code

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

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

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

Tuning

This issue has a mass of 74.

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

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

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

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

Refactorings

Further Reading

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

  AccountListRelationFilter: { // input type
    every?: NexusGenInputs['AccountWhereInput'] | null; // AccountWhereInput
    none?: NexusGenInputs['AccountWhereInput'] | null; // AccountWhereInput
    some?: NexusGenInputs['AccountWhereInput'] | null; // AccountWhereInput
  }
Severity: Major
Found in src/generated/nexus.ts and 3 other locations - About 1 hr to fix
src/generated/nexus.ts on lines 107..111
src/generated/nexus.ts on lines 149..153
src/generated/nexus.ts on lines 341..345

Duplicated Code

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

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

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

Tuning

This issue has a mass of 74.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language