NGO-DB/ndb-core

View on GitHub
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts

Summary

Maintainability
D
1 day
Test Coverage

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "VISIT"),
    warningLevel: warningLevels.find((level) => level.id === "WARNING"),
    subject: $localize`:Note demo subject:Needs to work more for school`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "GUARDIAN_TALK"),
    warningLevel: warningLevels.find((level) => level.id === "URGENT"),
    subject: $localize`:Note demo subject:Absence without information`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "NOTE"),
    warningLevel: warningLevels.find((level) => level.id === "WARNING"),
    subject: $localize`:Note demo subject:Disturbing class`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "GUARDIAN_TALK"),
    warningLevel: warningLevels.find((level) => level.id === "WARNING"),
    subject: $localize`:Note demo subject:Discussed school change`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "GUARDIAN_TALK"),
    warningLevel: warningLevels.find((level) => level.id === "OK"),
    subject: $localize`:Note demo subject:Follow up for school absence`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "INCIDENT"),
    warningLevel: warningLevels.find((level) => level.id === "OK"),
    subject: $localize`:Note demo subject:Special help for family`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "VISIT"),
    warningLevel: warningLevels.find((level) => level.id === "WARNING"),
    subject: $localize`:Note demo subject:Mother sick`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "INCIDENT"),
    warningLevel: warningLevels.find((level) => level.id === "URGENT"),
    subject: $localize`:Note demo subject:Fight at school`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "INCIDENT"),
    warningLevel: warningLevels.find((level) => level.id === "OK"),
    subject: $localize`:Note demo subject:Chance to repeat class`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "GUARDIAN_TALK"),
    warningLevel: warningLevels.find((level) => level.id === "OK"),
    subject: $localize`:Note demo subject:Absent because ill`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "VISIT"),
    warningLevel: warningLevels.find((level) => level.id === "OK"),
    subject: $localize`:Note demo subject:School is happy about progress`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 95..103
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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

  {
    category: defaultInteractionTypes.find((t) => t.id === "NOTE"),
    warningLevel: warningLevels.find((level) => level.id === "WARNING"),
    subject: $localize`:Note demo subject:Distracted in class`,
    text: $localize`:Note demo text:
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 5..12
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 13..20
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 22..29
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 30..37
src/app/child-dev-project/notes/demo-data/notes_group-stories.ts on lines 38..45
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 5..13
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 14..22
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 24..31
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 32..39
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 40..48
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 49..57
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 58..66
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 67..75
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 76..84
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 85..94
src/app/child-dev-project/notes/demo-data/notes_individual-stories.ts on lines 104..112

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

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