zammad/zammad

View on GitHub
app/frontend/apps/desktop/pages/guided-setup/routes.ts

Summary

Maintainability
D
1 day
Test Coverage

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

          {
            path: ':source/start',
            name: 'GuidedSetupImportSourceStart',
            props: true,
            component: () =>
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 3 other locations - About 1 hr to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 36..48
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 185..199
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 215..229

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

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

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

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

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

Refactorings

Further Reading

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

      {
        path: 'automated/run/:token?',
        name: 'GuidedSetupAutomatedRun',
        props: true,
        component: () =>
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 3 other locations - About 1 hr to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 185..199
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 200..214
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 215..229

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

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

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

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

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

Refactorings

Further Reading

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

          {
            path: ':source/status',
            name: 'GuidedSetupImportSourceStatus',
            props: true,
            component: () =>
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 3 other locations - About 1 hr to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 36..48
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 185..199
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 200..214

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

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

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

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

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

Refactorings

Further Reading

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

          {
            path: ':source',
            name: 'GuidedSetupImportSource',
            props: true,
            component: () =>
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 3 other locations - About 1 hr to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 36..48
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 200..214
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 215..229

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

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

          {
            path: 'channels/email',
            name: 'GuidedSetupManualChannelEmail',
            component: () =>
              import(
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 5 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 81..94
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 95..108
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 109..120
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 135..148
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 149..162

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

      {
        path: '',
        name: 'GuidedSetupStart',
        component: () => import('./views/GuidedSetupStart.vue'),
        meta: {
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 3 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 24..35
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 171..184
app/frontend/apps/mobile/pages/authentication/routes.ts on lines 8..18

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

          {
            path: 'channels',
            name: 'GuidedSetupManualChannels',
            component: () =>
              import('./views/GuidedSetupManual/GuidedSetupManualChannels.vue'),
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 5 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 81..94
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 95..108
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 121..134
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 135..148
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 149..162

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

      {
        path: 'automated',
        name: 'GuidedSetupAutomatedInfo',
        component: () =>
          import('./views/GuidedSetupAutomated/GuidedSetupAutomatedInfo.vue'),
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 3 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 13..23
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 171..184
app/frontend/apps/mobile/pages/authentication/routes.ts on lines 8..18

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

          {
            path: '',
            name: 'GuidedSetupImportSelection',
            component: () =>
              import(
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 3 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 13..23
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 24..35
app/frontend/apps/mobile/pages/authentication/routes.ts on lines 8..18

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

          {
            path: 'channels/email-pre-configured',
            name: 'GuidedSetupManualChannelEmailPreConfigured',
            component: () =>
              import(
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 5 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 81..94
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 95..108
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 109..120
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 121..134
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 149..162

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

          {
            path: 'system-information',
            name: 'GuidedSetupManualSystemInformation',
            component: () =>
              import(
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 5 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 95..108
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 109..120
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 121..134
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 135..148
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 149..162

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

          {
            path: 'invite',
            name: 'GuidedSetupManualInviteColleagues',
            component: () =>
              import(
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 5 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 81..94
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 95..108
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 109..120
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 121..134
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 135..148

Duplicated Code

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

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

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

Tuning

This issue has a mass of 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 6 locations. Consider refactoring.
Open

          {
            path: 'email-notification',
            name: 'GuidedSetupManualEmailNotification',
            component: () =>
              import(
Severity: Major
Found in app/frontend/apps/desktop/pages/guided-setup/routes.ts and 5 other locations - About 55 mins to fix
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 81..94
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 109..120
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 121..134
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 135..148
app/frontend/apps/desktop/pages/guided-setup/routes.ts on lines 149..162

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

There are no issues that match your filters.

Category
Status