zammad/zammad

View on GitHub

Showing 4,422 of 4,422 total issues

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

export type TicketLiveUserUpsertPayload = {
  __typename?: 'TicketLiveUserUpsertPayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Did we succeed to insert/update the live user entry? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type SystemImportConfigurationPayload = {
  __typename?: 'SystemImportConfigurationPayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Is the configuration valid? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type UserCurrentOverviewUpdateOrderPayload = {
  __typename?: 'UserCurrentOverviewUpdateOrderPayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Was the reset successful? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type UserCurrentAccessTokenDeletePayload = {
  __typename?: 'UserCurrentAccessTokenDeletePayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Was the access token deletion successful? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type UserCurrentLocalePayload = {
  __typename?: 'UserCurrentLocalePayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Was the update successful? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type ChannelEmailValidateConfigurationRoundtripPayload = {
  __typename?: 'ChannelEmailValidateConfigurationRoundtripPayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Was the validation successful? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type UserCurrentAppearancePayload = {
  __typename?: 'UserCurrentAppearancePayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Profile appearance settings updated successfully? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type AddressesField = {
  __typename?: 'AddressesField';
  /** If email addresses were found and parseable, this will hold the parsed result. */
  parsed?: Maybe<Array<EmailAddressParsed>>;
  /** Unparsed content of the addresses field. */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type TicketLiveUserDeletePayload = {
  __typename?: 'TicketLiveUserDeletePayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Was the live user entry deletion successful? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type UserCurrentAvatarSelectPayload = {
  __typename?: 'UserCurrentAvatarSelectPayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Was the avatar selection successful? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type OnlineNotificationDeletePayload = {
  __typename?: 'OnlineNotificationDeletePayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Was the notification deletion successful? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2533..2539
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

export type SystemImportStartPayload = {
  __typename?: 'SystemImportStartPayload';
  /** Errors encountered during execution of the mutation. */
  errors?: Maybe<Array<UserError>>;
  /** Was the start successful? */
Severity: Major
Found in app/frontend/shared/graphql/types.ts and 18 other locations - About 1 hr to fix
app/frontend/shared/graphql/types.ts on lines 28..34
app/frontend/shared/graphql/types.ts on lines 424..430
app/frontend/shared/graphql/types.ts on lines 433..439
app/frontend/shared/graphql/types.ts on lines 757..763
app/frontend/shared/graphql/types.ts on lines 1778..1784
app/frontend/shared/graphql/types.ts on lines 1805..1811
app/frontend/shared/graphql/types.ts on lines 2524..2530
app/frontend/shared/graphql/types.ts on lines 2815..2821
app/frontend/shared/graphql/types.ts on lines 3059..3065
app/frontend/shared/graphql/types.ts on lines 3075..3081
app/frontend/shared/graphql/types.ts on lines 3437..3443
app/frontend/shared/graphql/types.ts on lines 3453..3459
app/frontend/shared/graphql/types.ts on lines 3471..3477
app/frontend/shared/graphql/types.ts on lines 3480..3486
app/frontend/shared/graphql/types.ts on lines 3496..3502
app/frontend/shared/graphql/types.ts on lines 3530..3536
app/frontend/shared/graphql/types.ts on lines 3584..3590
app/frontend/shared/graphql/types.ts on lines 3602..3608

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

  it('implements input name', async () => {
    const wrapper = renderComponent(FormKit, {
      ...wrapperParameters,
      props: {
        ...commonProps,
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1190..1201
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1203..1217
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1309..1320
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1441..1455
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1457..1471

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

  it('implements input id attribute', async () => {
    const wrapper = renderComponent(FormKit, {
      ...wrapperParameters,
      props: {
        ...commonProps,
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1190..1201
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1203..1217
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1309..1320
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1322..1336
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1457..1471

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

  it('implements input name', async () => {
    const wrapper = renderComponent(FormKit, {
      ...wrapperParameters,
      props: {
        ...commonProps,
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1190..1201
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1203..1217
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1309..1320
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1322..1336
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1441..1455

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

  it('implements input id attribute', async () => {
    const wrapper = renderComponent(FormKit, {
      ...wrapperParameters,
      props: {
        ...testProps,
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1203..1217
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1309..1320
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1322..1336
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1441..1455
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1457..1471

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

  it('implements input name', async () => {
    const wrapper = renderComponent(FormKit, {
      ...wrapperParameters,
      props: {
        ...testProps,
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1190..1201
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1309..1320
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1322..1336
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1441..1455
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1457..1471

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

  it('implements input id attribute', async () => {
    const wrapper = renderComponent(FormKit, {
      ...wrapperParameters,
      props: {
        ...commonProps,
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1190..1201
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1203..1217
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1322..1336
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1441..1455
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1457..1471

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

  it('implements attribute passthrough', async () => {
    const wrapper = renderComponent(FormKit, {
      ...wrapperParameters,
      props: {
        ...commonProps,
app/frontend/apps/desktop/components/Form/fields/FieldAutoComplete/__tests__/FieldAutoComplete.spec.ts on lines 1292..1306
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1548..1562

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

  it('implements attribute passthrough', async () => {
    const wrapper = renderComponent(FormKit, {
      ...wrapperParameters,
      props: {
        ...testProps,
app/frontend/apps/desktop/components/Form/fields/FieldSelect/__tests__/FieldSelect.spec.ts on lines 1412..1426
app/frontend/apps/desktop/components/Form/fields/FieldTreeSelect/__tests__/FieldTreeSelect.spec.ts on lines 1548..1562

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language