nycJSorg/angular-presentation

View on GitHub
apps/kirjs/src/app/kirjs.module.ts

Summary

Maintainability
C
1 day
Test Coverage

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

  {
    path: 'gomoku',
    loadChildren: () =>
      import('./modules/gomoku/gomoku.module').then(m => m.GomokuModule),
    name: 'Gomoku',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 7 other locations - About 1 hr to fix
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 25..36
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 105..115
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 116..124
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 125..135
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 136..145
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 146..156
apps/kirjs/src/app/kirjs.module.ts on lines 21..29

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

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

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

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

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

Refactorings

Further Reading

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

  {
    path: 'binary',
    loadChildren: () =>
      import('./modules/binary/binary.module').then(m => m.BinaryModule),
    name: 'Binary',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 7 other locations - About 1 hr to fix
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 25..36
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 105..115
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 116..124
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 125..135
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 136..145
apps/codelab/src/app/codelabs/angular/angular-routing.module.ts on lines 146..156
apps/kirjs/src/app/kirjs.module.ts on lines 30..38

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

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

  {
    path: 'music',
    loadChildren: () =>
      import('./modules/music/music.module').then(m => m.MusicModule),
    name: 'Music',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'cellular-automation',
    loadChildren: () =>
      import(
        './modules/cellular-automation/cellular-automation-routing.module'
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'webassembly',
    loadChildren: () =>
      import('./modules/webassembly/webassembly.module').then(
        m => m.WebassemblyModule
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'test',
    loadChildren: () =>
      import('./modules/test/test.module').then(m => m.TestModule),
    name: 'Home',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'ast',
    loadChildren: () =>
      import('./modules/ast/ast.module').then(m => m.AstModule),
    name: 'Ast + Angular',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'svg-race',
    loadChildren: () =>
      import('./modules/svg-race/svg-race.module').then(m => m.SvgRaceModule),
    name: 'SVG Race',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'streaming',
    loadChildren: () =>
      import('./modules/streaming/streaming.module').then(
        m => m.StreamingModule
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'svg',
    loadChildren: () =>
      import('./modules/svg/svg.module').then(m => m.SvgModule),
    name: 'Svg + Angular',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'sync',
    loadChildren: () =>
      import('./modules/sync/sync.module').then(m => m.SyncModule),
    name: 'Sync',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'stack',
    loadChildren: () =>
      import('./modules/stack/stack.module').then(m => m.StackModule),
    name: 'Stack Module',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'regex',
    loadChildren: () =>
      import('./modules/regex/regex.module').then(m => m.RegexModule),
    name: 'Regex',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'sync',
    loadChildren: () =>
      import('./modules/sync/sync.module').then(m => m.SyncModule),
    name: 'Sync',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: '',
    loadChildren: () =>
      import('./modules/home/home.module').then(m => m.HomeModule),
    name: 'Home',
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135
apps/kirjs/src/app/kirjs.module.ts on lines 148..156

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

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

  {
    path: 'stack',
    loadChildren: () =>
      import('./modules/stack/stack-routing.module').then(
        m => m.StackRoutingModule
Severity: Major
Found in apps/kirjs/src/app/kirjs.module.ts and 13 other locations - About 30 mins to fix
apps/kirjs/src/app/kirjs.module.ts on lines 39..47
apps/kirjs/src/app/kirjs.module.ts on lines 48..54
apps/kirjs/src/app/kirjs.module.ts on lines 55..63
apps/kirjs/src/app/kirjs.module.ts on lines 64..70
apps/kirjs/src/app/kirjs.module.ts on lines 71..77
apps/kirjs/src/app/kirjs.module.ts on lines 78..84
apps/kirjs/src/app/kirjs.module.ts on lines 85..91
apps/kirjs/src/app/kirjs.module.ts on lines 92..98
apps/kirjs/src/app/kirjs.module.ts on lines 99..107
apps/kirjs/src/app/kirjs.module.ts on lines 108..114
apps/kirjs/src/app/kirjs.module.ts on lines 115..121
apps/kirjs/src/app/kirjs.module.ts on lines 122..128
apps/kirjs/src/app/kirjs.module.ts on lines 129..135

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

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