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 useUsersQuery(baseOptions: Apollo.QueryHookOptions<UsersQuery, UsersQueryVariables>) {
        return Apollo.useQuery<UsersQuery, UsersQueryVariables>(UsersDocument, 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 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

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

export function useBooksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BooksQuery, BooksQueryVariables>) {
          return Apollo.useLazyQuery<BooksQuery, BooksQueryVariables>(BooksDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useReadersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ReadersQuery, ReadersQueryVariables>) {
          return Apollo.useLazyQuery<ReadersQuery, ReadersQueryVariables>(ReadersDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useChapterNotesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ChapterNotesQuery, ChapterNotesQueryVariables>) {
          return Apollo.useLazyQuery<ChapterNotesQuery, ChapterNotesQueryVariables>(ChapterNotesDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useNoteBookLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<NoteBookQuery, NoteBookQueryVariables>) {
          return Apollo.useLazyQuery<NoteBookQuery, NoteBookQueryVariables>(NoteBookDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useBookLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BookQuery, BookQueryVariables>) {
          return Apollo.useLazyQuery<BookQuery, BookQueryVariables>(BookDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useUsersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<UsersQuery, UsersQueryVariables>) {
          return Apollo.useLazyQuery<UsersQuery, UsersQueryVariables>(UsersDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useChapterLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ChapterQuery, ChapterQueryVariables>) {
          return Apollo.useLazyQuery<ChapterQuery, ChapterQueryVariables>(ChapterDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useBranchesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BranchesQuery, BranchesQueryVariables>) {
          return Apollo.useLazyQuery<BranchesQuery, BranchesQueryVariables>(BranchesDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useCommentsQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CommentsQueryQuery, CommentsQueryQueryVariables>) {
          return Apollo.useLazyQuery<CommentsQueryQuery, CommentsQueryQueryVariables>(CommentsQueryDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useBookIdTitleAndReadersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BookIdTitleAndReadersQuery, BookIdTitleAndReadersQueryVariables>) {
          return Apollo.useLazyQuery<BookIdTitleAndReadersQuery, BookIdTitleAndReadersQueryVariables>(BookIdTitleAndReadersDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useBookNotesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BookNotesQuery, BookNotesQueryVariables>) {
          return Apollo.useLazyQuery<BookNotesQuery, BookNotesQueryVariables>(BookNotesDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CurrentUserQuery, CurrentUserQueryVariables>) {
          return Apollo.useLazyQuery<CurrentUserQuery, CurrentUserQueryVariables>(CurrentUserDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689

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

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

export function useNoteLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<NoteQuery, NoteQueryVariables>) {
          return Apollo.useLazyQuery<NoteQuery, NoteQueryVariables>(NoteDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useBookCurrentUserAuthorLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BookCurrentUserAuthorQuery, BookCurrentUserAuthorQueryVariables>) {
          return Apollo.useLazyQuery<BookCurrentUserAuthorQuery, BookCurrentUserAuthorQueryVariables>(BookCurrentUserAuthorDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 875..877
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

export function useBranchLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BranchQuery, BranchQueryVariables>) {
          return Apollo.useLazyQuery<BranchQuery, BranchQueryVariables>(BranchDocument, baseOptions);
        }
Severity: Major
Found in frontend/src/graphql/types.ts and 14 other locations - About 50 mins to fix
frontend/src/graphql/types.ts on lines 795..797
frontend/src/graphql/types.ts on lines 916..918
frontend/src/graphql/types.ts on lines 1005..1007
frontend/src/graphql/types.ts on lines 1078..1080
frontend/src/graphql/types.ts on lines 1121..1123
frontend/src/graphql/types.ts on lines 1156..1158
frontend/src/graphql/types.ts on lines 1234..1236
frontend/src/graphql/types.ts on lines 1306..1308
frontend/src/graphql/types.ts on lines 1405..1407
frontend/src/graphql/types.ts on lines 1509..1511
frontend/src/graphql/types.ts on lines 1614..1616
frontend/src/graphql/types.ts on lines 1652..1654
frontend/src/graphql/types.ts on lines 1687..1689
frontend/src/graphql/types.ts on lines 1722..1724

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

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

      orange: {
        100: '#fffaf0',
        200: '#feebc8',
        300: '#fbd38d',
        400: '#f6ad55',
Severity: Major
Found in frontend/tailwind.js and 9 other locations - About 50 mins to fix
frontend/tailwind.js on lines 18..28
frontend/tailwind.js on lines 29..39
frontend/tailwind.js on lines 51..61
frontend/tailwind.js on lines 62..72
frontend/tailwind.js on lines 73..83
frontend/tailwind.js on lines 84..94
frontend/tailwind.js on lines 95..105
frontend/tailwind.js on lines 106..116
frontend/tailwind.js on lines 117..127

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

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

      green: {
        100: '#f0fff4',
        200: '#c6f6d5',
        300: '#9ae6b4',
        400: '#68d391',
Severity: Major
Found in frontend/tailwind.js and 9 other locations - About 50 mins to fix
frontend/tailwind.js on lines 18..28
frontend/tailwind.js on lines 29..39
frontend/tailwind.js on lines 40..50
frontend/tailwind.js on lines 51..61
frontend/tailwind.js on lines 73..83
frontend/tailwind.js on lines 84..94
frontend/tailwind.js on lines 95..105
frontend/tailwind.js on lines 106..116
frontend/tailwind.js on lines 117..127

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

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

      teal: {
        100: '#e6fffa',
        200: '#b2f5ea',
        300: '#81e6d9',
        400: '#4fd1c5',
Severity: Major
Found in frontend/tailwind.js and 9 other locations - About 50 mins to fix
frontend/tailwind.js on lines 18..28
frontend/tailwind.js on lines 29..39
frontend/tailwind.js on lines 40..50
frontend/tailwind.js on lines 51..61
frontend/tailwind.js on lines 62..72
frontend/tailwind.js on lines 84..94
frontend/tailwind.js on lines 95..105
frontend/tailwind.js on lines 106..116
frontend/tailwind.js on lines 117..127

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

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