radar/twist-v2

View on GitHub

Showing 114 of 143 total issues

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

export function useUpdateNoteMutationMutation(baseOptions?: Apollo.MutationHookOptions<UpdateNoteMutationMutation, UpdateNoteMutationMutationVariables>) {
        return Apollo.useMutation<UpdateNoteMutationMutation, UpdateNoteMutationMutationVariables>(UpdateNoteMutationDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useChapterNotesQuery(baseOptions: Apollo.QueryHookOptions<ChapterNotesQuery, ChapterNotesQueryVariables>) {
        return Apollo.useQuery<ChapterNotesQuery, ChapterNotesQueryVariables>(ChapterNotesDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useCommentsQueryQuery(baseOptions: Apollo.QueryHookOptions<CommentsQueryQuery, CommentsQueryQueryVariables>) {
        return Apollo.useQuery<CommentsQueryQuery, CommentsQueryQueryVariables>(CommentsQueryDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useLoginMutationMutation(baseOptions?: Apollo.MutationHookOptions<LoginMutationMutation, LoginMutationMutationVariables>) {
        return Apollo.useMutation<LoginMutationMutation, LoginMutationMutationVariables>(LoginMutationDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721

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

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

export function useBookQuery(baseOptions: Apollo.QueryHookOptions<BookQuery, BookQueryVariables>) {
        return Apollo.useQuery<BookQuery, BookQueryVariables>(BookDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useReadersQuery(baseOptions: Apollo.QueryHookOptions<ReadersQuery, ReadersQueryVariables>) {
        return Apollo.useQuery<ReadersQuery, ReadersQueryVariables>(ReadersDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useDeleteCommentMutationMutation(baseOptions?: Apollo.MutationHookOptions<DeleteCommentMutationMutation, DeleteCommentMutationMutationVariables>) {
        return Apollo.useMutation<DeleteCommentMutationMutation, DeleteCommentMutationMutationVariables>(DeleteCommentMutationDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useNoteBookQuery(baseOptions: Apollo.QueryHookOptions<NoteBookQuery, NoteBookQueryVariables>) {
        return Apollo.useQuery<NoteBookQuery, NoteBookQueryVariables>(NoteBookDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useUpdateCommentMutationMutation(baseOptions?: Apollo.MutationHookOptions<UpdateCommentMutationMutation, UpdateCommentMutationMutationVariables>) {
        return Apollo.useMutation<UpdateCommentMutationMutation, UpdateCommentMutationMutationVariables>(UpdateCommentMutationDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useOpenNoteMutationMutation(baseOptions?: Apollo.MutationHookOptions<OpenNoteMutationMutation, OpenNoteMutationMutationVariables>) {
        return Apollo.useMutation<OpenNoteMutationMutation, OpenNoteMutationMutationVariables>(OpenNoteMutationDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useBookCurrentUserAuthorQuery(baseOptions: Apollo.QueryHookOptions<BookCurrentUserAuthorQuery, BookCurrentUserAuthorQueryVariables>) {
        return Apollo.useQuery<BookCurrentUserAuthorQuery, BookCurrentUserAuthorQueryVariables>(BookCurrentUserAuthorDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useBranchQuery(baseOptions: Apollo.QueryHookOptions<BranchQuery, BranchQueryVariables>) {
        return Apollo.useQuery<BranchQuery, BranchQueryVariables>(BranchDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useAddCommentMutationMutation(baseOptions?: Apollo.MutationHookOptions<AddCommentMutationMutation, AddCommentMutationMutationVariables>) {
        return Apollo.useMutation<AddCommentMutationMutation, AddCommentMutationMutationVariables>(AddCommentMutationDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useCloseNoteMutationMutation(baseOptions?: Apollo.MutationHookOptions<CloseNoteMutationMutation, CloseNoteMutationMutationVariables>) {
        return Apollo.useMutation<CloseNoteMutationMutation, CloseNoteMutationMutationVariables>(CloseNoteMutationDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useBookNotesQuery(baseOptions: Apollo.QueryHookOptions<BookNotesQuery, BookNotesQueryVariables>) {
        return Apollo.useQuery<BookNotesQuery, BookNotesQueryVariables>(BookNotesDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useUpdateBranchMutation(baseOptions?: Apollo.MutationHookOptions<UpdateBranchMutation, UpdateBranchMutationVariables>) {
        return Apollo.useMutation<UpdateBranchMutation, UpdateBranchMutationVariables>(UpdateBranchDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useBookIdTitleAndReadersQuery(baseOptions: Apollo.QueryHookOptions<BookIdTitleAndReadersQuery, BookIdTitleAndReadersQueryVariables>) {
        return Apollo.useQuery<BookIdTitleAndReadersQuery, BookIdTitleAndReadersQueryVariables>(BookIdTitleAndReadersDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useNoteQuery(baseOptions: Apollo.QueryHookOptions<NoteQuery, NoteQueryVariables>) {
        return Apollo.useQuery<NoteQuery, NoteQueryVariables>(NoteDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useNoteMutationMutation(baseOptions?: Apollo.MutationHookOptions<NoteMutationMutation, NoteMutationMutationVariables>) {
        return Apollo.useMutation<NoteMutationMutation, NoteMutationMutationVariables>(NoteMutationDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1190..1192
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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

export function useInviteUserMutation(baseOptions?: Apollo.MutationHookOptions<InviteUserMutation, InviteUserMutationVariables>) {
        return Apollo.useMutation<InviteUserMutation, InviteUserMutationVariables>(InviteUserDocument, baseOptions);
      }
Severity: Major
Found in frontend/src/graphql/types.ts and 25 other locations - About 55 mins to fix
frontend/src/graphql/types.ts on lines 792..794
frontend/src/graphql/types.ts on lines 828..830
frontend/src/graphql/types.ts on lines 872..874
frontend/src/graphql/types.ts on lines 913..915
frontend/src/graphql/types.ts on lines 1002..1004
frontend/src/graphql/types.ts on lines 1039..1041
frontend/src/graphql/types.ts on lines 1075..1077
frontend/src/graphql/types.ts on lines 1118..1120
frontend/src/graphql/types.ts on lines 1153..1155
frontend/src/graphql/types.ts on lines 1231..1233
frontend/src/graphql/types.ts on lines 1268..1270
frontend/src/graphql/types.ts on lines 1303..1305
frontend/src/graphql/types.ts on lines 1339..1341
frontend/src/graphql/types.ts on lines 1372..1374
frontend/src/graphql/types.ts on lines 1402..1404
frontend/src/graphql/types.ts on lines 1437..1439
frontend/src/graphql/types.ts on lines 1471..1473
frontend/src/graphql/types.ts on lines 1506..1508
frontend/src/graphql/types.ts on lines 1542..1544
frontend/src/graphql/types.ts on lines 1577..1579
frontend/src/graphql/types.ts on lines 1611..1613
frontend/src/graphql/types.ts on lines 1649..1651
frontend/src/graphql/types.ts on lines 1684..1686
frontend/src/graphql/types.ts on lines 1719..1721
frontend/src/graphql/types.ts on lines 1761..1763

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

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