withmoney/withmoney-api

View on GitHub
src/generated/nexus.ts

Summary

Maintainability
F
3 wks
Test Coverage

File nexus.ts has 1116 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * This file was generated by Nexus Schema
 * Do not make changes to this file directly
 */

Severity: Major
Found in src/generated/nexus.ts - About 2 days to fix

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

      StringFilter: { // input type
        contains?: string | null; // String
        endsWith?: string | null; // String
        equals?: string | null; // String
        gt?: string | null; // String
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 1 day to fix
    src/generated/nexus.ts on lines 423..436

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

    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

      StringNullableFilter: { // input type
        contains?: string | null; // String
        endsWith?: string | null; // String
        equals?: string | null; // String
        gt?: string | null; // String
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 1 day to fix
    src/generated/nexus.ts on lines 409..422

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

    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

      NestedDateTimeNullableFilter: { // input type
        equals?: NexusGenScalars['DateTime'] | null; // DateTime
        gt?: NexusGenScalars['DateTime'] | null; // DateTime
        gte?: NexusGenScalars['DateTime'] | null; // DateTime
        in?: NexusGenScalars['DateTime'][] | null; // [DateTime!]
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 7 hrs to fix
    src/generated/nexus.ts on lines 193..202
    src/generated/nexus.ts on lines 203..212
    src/generated/nexus.ts on lines 251..260

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

    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

      DateTimeFilter: { // input type
        equals?: NexusGenScalars['DateTime'] | null; // DateTime
        gt?: NexusGenScalars['DateTime'] | null; // DateTime
        gte?: NexusGenScalars['DateTime'] | null; // DateTime
        in?: NexusGenScalars['DateTime'][] | null; // [DateTime!]
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 7 hrs to fix
    src/generated/nexus.ts on lines 203..212
    src/generated/nexus.ts on lines 251..260
    src/generated/nexus.ts on lines 261..270

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

    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

      DateTimeNullableFilter: { // input type
        equals?: NexusGenScalars['DateTime'] | null; // DateTime
        gt?: NexusGenScalars['DateTime'] | null; // DateTime
        gte?: NexusGenScalars['DateTime'] | null; // DateTime
        in?: NexusGenScalars['DateTime'][] | null; // [DateTime!]
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 7 hrs to fix
    src/generated/nexus.ts on lines 193..202
    src/generated/nexus.ts on lines 251..260
    src/generated/nexus.ts on lines 261..270

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

    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

      NestedDateTimeFilter: { // input type
        equals?: NexusGenScalars['DateTime'] | null; // DateTime
        gt?: NexusGenScalars['DateTime'] | null; // DateTime
        gte?: NexusGenScalars['DateTime'] | null; // DateTime
        in?: NexusGenScalars['DateTime'][] | null; // [DateTime!]
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 7 hrs to fix
    src/generated/nexus.ts on lines 193..202
    src/generated/nexus.ts on lines 203..212
    src/generated/nexus.ts on lines 261..270

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

    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

      CategoryOrderByInput: { // input type
        createdAt?: NexusGenEnums['SortOrder'] | null; // SortOrder
        deletedAt?: NexusGenEnums['SortOrder'] | null; // SortOrder
        id?: NexusGenEnums['SortOrder'] | null; // SortOrder
        name?: NexusGenEnums['SortOrder'] | null; // SortOrder
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 7 hrs to fix
    src/generated/nexus.ts on lines 54..63

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

    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

      AccountOrderByInput: { // input type
        createdAt?: NexusGenEnums['SortOrder'] | null; // SortOrder
        currency?: NexusGenEnums['SortOrder'] | null; // SortOrder
        deletedAt?: NexusGenEnums['SortOrder'] | null; // SortOrder
        id?: NexusGenEnums['SortOrder'] | null; // SortOrder
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 7 hrs to fix
    src/generated/nexus.ts on lines 112..121

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

    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

      NestedStringFilter: { // input type
        contains?: string | null; // String
        endsWith?: string | null; // String
        equals?: string | null; // String
        gt?: string | null; // String
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 6 hrs to fix
    src/generated/nexus.ts on lines 318..330

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

    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

      NestedStringNullableFilter: { // input type
        contains?: string | null; // String
        endsWith?: string | null; // String
        equals?: string | null; // String
        gt?: string | null; // String
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 6 hrs to fix
    src/generated/nexus.ts on lines 305..317

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

    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

      CreditCard: {
        operations: { // args
          after?: NexusGenInputs['OperationWhereUniqueInput'] | null; // OperationWhereUniqueInput
          before?: NexusGenInputs['OperationWhereUniqueInput'] | null; // OperationWhereUniqueInput
          first?: number | null; // Int
    Severity: Major
    Found in src/generated/nexus.ts and 2 other locations - About 4 hrs to fix
    src/generated/nexus.ts on lines 892..901
    src/generated/nexus.ts on lines 902..911

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

    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

      Account: {
        operations: { // args
          after?: NexusGenInputs['OperationWhereUniqueInput'] | null; // OperationWhereUniqueInput
          before?: NexusGenInputs['OperationWhereUniqueInput'] | null; // OperationWhereUniqueInput
          first?: number | null; // Int
    Severity: Major
    Found in src/generated/nexus.ts and 2 other locations - About 4 hrs to fix
    src/generated/nexus.ts on lines 902..911
    src/generated/nexus.ts on lines 912..921

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

    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

      Category: {
        operations: { // args
          after?: NexusGenInputs['OperationWhereUniqueInput'] | null; // OperationWhereUniqueInput
          before?: NexusGenInputs['OperationWhereUniqueInput'] | null; // OperationWhereUniqueInput
          first?: number | null; // Int
    Severity: Major
    Found in src/generated/nexus.ts and 2 other locations - About 4 hrs to fix
    src/generated/nexus.ts on lines 892..901
    src/generated/nexus.ts on lines 912..921

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

    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

      NestedFloatFilter: { // input type
        equals?: number | null; // Float
        gt?: number | null; // Float
        gte?: number | null; // Float
        in?: number[] | null; // [Float!]
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 4 hrs to fix
    src/generated/nexus.ts on lines 237..246

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

    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

      FloatFilter: { // input type
        equals?: number | null; // Float
        gt?: number | null; // Float
        gte?: number | null; // Float
        in?: number[] | null; // [Float!]
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 4 hrs to fix
    src/generated/nexus.ts on lines 295..304

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

    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

      OperationUpdateInput: { // input type
        accountId: string; // String!
        categoryId?: string | null; // String
        creditCardId?: string | null; // String
        isPaid: boolean; // Boolean!
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 4 hrs to fix
    src/generated/nexus.ts on lines 331..340

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

    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

      OperationCreateInput: { // input type
        accountId: string; // String!
        categoryId?: string | null; // String
        creditCardId?: string | null; // String
        isPaid: boolean; // Boolean!
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 4 hrs to fix
    src/generated/nexus.ts on lines 365..374

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

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

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

      CalcCreditCardsLimitResults: { // root type
        creditCard?: NexusGenRootTypes['CreditCard'] | null; // CreditCard
        limit?: number | null; // Float
        limitBlocked?: number | null; // Float
        limitFree?: number | null; // Float
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 1 hr to fix
    src/generated/nexus.ts on lines 619..624

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

    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

      CalcCreditCardsLimitResults: { // field return type
        creditCard: NexusGenRootTypes['CreditCard'] | null; // CreditCard
        limit: number | null; // Float
        limitBlocked: number | null; // Float
        limitFree: number | null; // Float
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 1 hr to fix
    src/generated/nexus.ts on lines 517..522

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

    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

      CreditCardsResult: { // field return type
        data: Array<NexusGenRootTypes['CreditCard'] | null> | null; // [CreditCard]
        pagination: NexusGenRootTypes['Pagination'] | null; // Pagination
      }
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 1 hr to fix
    src/generated/nexus.ts on lines 526..529
    src/generated/nexus.ts on lines 554..557
    src/generated/nexus.ts on lines 628..631

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

    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

      CategoriesResult: { // field return type
        data: Array<NexusGenRootTypes['Category'] | null> | null; // [Category]
        pagination: NexusGenRootTypes['Pagination'] | null; // Pagination
      }
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 1 hr to fix
    src/generated/nexus.ts on lines 526..529
    src/generated/nexus.ts on lines 554..557
    src/generated/nexus.ts on lines 661..664

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

    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

      CreditCardsResult: { // root type
        data?: Array<NexusGenRootTypes['CreditCard'] | null> | null; // [CreditCard]
        pagination?: NexusGenRootTypes['Pagination'] | null; // Pagination
      }
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 1 hr to fix
    src/generated/nexus.ts on lines 526..529
    src/generated/nexus.ts on lines 628..631
    src/generated/nexus.ts on lines 661..664

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

    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

      CategoriesResult: { // root type
        data?: Array<NexusGenRootTypes['Category'] | null> | null; // [Category]
        pagination?: NexusGenRootTypes['Pagination'] | null; // Pagination
      }
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 1 hr to fix
    src/generated/nexus.ts on lines 554..557
    src/generated/nexus.ts on lines 628..631
    src/generated/nexus.ts on lines 661..664

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

    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

      CreditCardCreateInput: { // input type
        accountId: string; // String!
        brand: NexusGenEnums['CreditCardBrand']; // CreditCardBrand!
        limit: number; // Float!
        name: string; // String!
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 1 hr to fix
    src/generated/nexus.ts on lines 167..172

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

    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

      CreditCardUpdateInput: { // input type
        accountId: string; // String!
        brand: NexusGenEnums['CreditCardBrand']; // CreditCardBrand!
        limit: number; // Float!
        name: string; // String!
    Severity: Major
    Found in src/generated/nexus.ts and 1 other location - About 1 hr to fix
    src/generated/nexus.ts on lines 143..148

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

    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

      CreditCardLimitResult: { // field return type
        limit: number | null; // Float
        limitBlocked: number | null; // Float
        limitFree: number | null; // Float
      }
    Severity: Minor
    Found in src/generated/nexus.ts and 1 other location - About 45 mins to fix
    src/generated/nexus.ts on lines 549..553

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

    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

      CreditCardLimitResult: { // root type
        limit?: number | null; // Float
        limitBlocked?: number | null; // Float
        limitFree?: number | null; // Float
      }
    Severity: Minor
    Found in src/generated/nexus.ts and 1 other location - About 45 mins to fix
    src/generated/nexus.ts on lines 656..660

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

    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

        updateOneCreditCard: { // args
          data: NexusGenInputs['CreditCardUpdateInput']; // CreditCardUpdateInput!
          where: NexusGenInputs['CreditCardWhereUniqueInput']; // CreditCardWhereUniqueInput!
        }
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 35 mins to fix
    src/generated/nexus.ts on lines 980..983
    src/generated/nexus.ts on lines 984..987
    src/generated/nexus.ts on lines 992..995

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

    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

        updateOneOperation: { // args
          data: NexusGenInputs['OperationUpdateInput']; // OperationUpdateInput!
          where: NexusGenInputs['OperationWhereUniqueInput']; // OperationWhereUniqueInput!
        }
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 35 mins to fix
    src/generated/nexus.ts on lines 980..983
    src/generated/nexus.ts on lines 984..987
    src/generated/nexus.ts on lines 988..991

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

    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

        updateOneCategory: { // args
          data: NexusGenInputs['CategoryUpdateInput']; // CategoryUpdateInput!
          where: NexusGenInputs['CategoryWhereUniqueInput']; // CategoryWhereUniqueInput!
        }
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 35 mins to fix
    src/generated/nexus.ts on lines 980..983
    src/generated/nexus.ts on lines 988..991
    src/generated/nexus.ts on lines 992..995

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

    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

        updateOneAccount: { // args
          data: NexusGenInputs['AccountUpdateInput']; // AccountUpdateInput!
          where: NexusGenInputs['AccountWhereUniqueInput']; // AccountWhereUniqueInput!
        }
    Severity: Major
    Found in src/generated/nexus.ts and 3 other locations - About 35 mins to fix
    src/generated/nexus.ts on lines 984..987
    src/generated/nexus.ts on lines 988..991
    src/generated/nexus.ts on lines 992..995

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

    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

    Expected a newline at the end of the file.
    Open

    }
    Severity: Minor
    Found in src/generated/nexus.ts by editorconfig

    There are no issues that match your filters.

    Category
    Status