Ks89/angular-modal-gallery

View on GitHub
examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts

Summary

Maintainability
F
6 days
Test Coverage

File libconfigs.ts has 515 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import {
  ButtonsStrategy,
  ButtonType,
  Description,
  DescriptionStrategy,
Severity: Major
Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts - About 1 day to fix

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

    export const LIBCONFIG_612: ModalLibConfig = {
      accessibilityConfig: {
        backgroundAriaLabel: 'CUSTOM Modal gallery full screen background',
        backgroundTitle: 'CUSTOM background title',
    
    
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 1 day to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 462..507
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 462..507
    src/app/modal-gallery/libconfigs.ts on lines 462..507

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

    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

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

    export const LIBCONFIG_524: ModalLibConfig = {
      currentImageConfig: {
        downloadable: true
      },
      buttonsConfig: {
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 7 hrs to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 287..325
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 287..325
    src/app/modal-gallery/libconfigs.ts on lines 287..325

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

    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

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

    export const LIBCONFIG_522: ModalLibConfig = {
      currentImageConfig: { downloadable: true },
      buttonsConfig: {
        visible: true,
        strategy: ButtonsStrategy.CUSTOM,
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 3 hrs to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 246..267
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 246..267
    src/app/modal-gallery/libconfigs.ts on lines 246..267

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

    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

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

    export const LIBCONFIG_606: ModalLibConfig = {
      currentImageConfig: {
        description: {
          strategy: DescriptionStrategy.ALWAYS_VISIBLE,
          imageText: 'Look this image ',
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 3 hrs to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 404..425
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 404..425
    src/app/modal-gallery/libconfigs.ts on lines 404..425

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

    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

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

    export const LIBCONFIG_502: ModalLibConfig = {
      buttonsConfig: {
        visible: false,
        strategy: ButtonsStrategy.DEFAULT
      },
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 2 hrs to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 76..94
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 76..94
    src/app/modal-gallery/libconfigs.ts on lines 76..94

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

    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

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

    export const LIBCONFIG_900: ModalLibConfig = {
      slideConfig: {
        infinite: false
      },
      currentImageConfig: {
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 2 hrs to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 575..583
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 575..583
    src/app/modal-gallery/libconfigs.ts on lines 575..583

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

    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

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

    export const LIBCONFIG_523: ModalLibConfig = {
      currentImageConfig: {
        downloadable: true
      },
      buttonsConfig: {
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 269..285
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 269..285
    src/app/modal-gallery/libconfigs.ts on lines 269..285

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

    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

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

    export const LIBCONFIG_501: ModalLibConfig = {
      buttonsConfig: {
        visible: false,
        strategy: ButtonsStrategy.DEFAULT
      },
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 63..74
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 63..74
    src/app/modal-gallery/libconfigs.ts on lines 63..74

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

    export const LIBCONFIG_602: ModalLibConfig = {
      currentImageConfig: {
        description: {
          strategy: DescriptionStrategy.HIDE_IF_EMPTY,
          imageText: 'Look this image ',
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 11 other locations - About 55 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 343..352
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 393..402
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 343..352
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 354..363
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 393..402
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 343..352
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 354..363
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 393..402
    src/app/modal-gallery/libconfigs.ts on lines 343..352
    src/app/modal-gallery/libconfigs.ts on lines 354..363
    src/app/modal-gallery/libconfigs.ts on lines 393..402

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

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

    export const LIBCONFIG_605: ModalLibConfig = {
      currentImageConfig: {
        description: {
          strategy: DescriptionStrategy.ALWAYS_VISIBLE,
          imageText: 'Look this image ',
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 11 other locations - About 55 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 343..352
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 354..363
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 343..352
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 354..363
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 393..402
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 343..352
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 354..363
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 393..402
    src/app/modal-gallery/libconfigs.ts on lines 343..352
    src/app/modal-gallery/libconfigs.ts on lines 354..363
    src/app/modal-gallery/libconfigs.ts on lines 393..402

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

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

    export const LIBCONFIG_601: ModalLibConfig = {
      currentImageConfig: {
        description: {
          strategy: DescriptionStrategy.ALWAYS_VISIBLE,
          imageText: 'Look this image ',
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 11 other locations - About 55 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 354..363
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 393..402
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 343..352
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 354..363
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 393..402
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 343..352
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 354..363
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 393..402
    src/app/modal-gallery/libconfigs.ts on lines 343..352
    src/app/modal-gallery/libconfigs.ts on lines 354..363
    src/app/modal-gallery/libconfigs.ts on lines 393..402

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

    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

    export const LIBCONFIG_603: ModalLibConfig = {
      currentImageConfig: {
        description: {
          strategy: DescriptionStrategy.ALWAYS_HIDDEN,
          // you should build this value programmatically with the result of (show)="..()" event
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 7 other locations - About 45 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 379..391
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 365..377
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 379..391
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 365..377
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 379..391
    src/app/modal-gallery/libconfigs.ts on lines 365..377
    src/app/modal-gallery/libconfigs.ts on lines 379..391

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

    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

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

    export const LIBCONFIG_701: ModalLibConfig = {
      currentImageConfig: {
        downloadable: true
      },
      buttonsConfig: {
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 45 mins to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 516..524
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 516..524
    src/app/modal-gallery/libconfigs.ts on lines 516..524

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

    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

    export const LIBCONFIG_604: ModalLibConfig = {
      currentImageConfig: {
        description: {
          strategy: DescriptionStrategy.ALWAYS_VISIBLE,
          // you should build this value programmatically with the result of (show)="..()" event
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 7 other locations - About 45 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 365..377
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 365..377
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 379..391
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 365..377
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 379..391
    src/app/modal-gallery/libconfigs.ts on lines 365..377
    src/app/modal-gallery/libconfigs.ts on lines 379..391

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

    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

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

    export const LIBCONFIG_801: ModalLibConfig = {
      slideConfig: {
        infinite: true,
        playConfig: {
          autoPlay: true,
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 40 mins to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 553..562
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 553..562
    src/app/modal-gallery/libconfigs.ts on lines 553..562

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

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

    export const LIBCONFIG_506: ModalLibConfig = {
      currentImageConfig: { downloadable: true },
      buttonsConfig: {
        visible: true,
        strategy: ButtonsStrategy.DEFAULT
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 11 other locations - About 40 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 110..116
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 126..132
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 110..116
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 118..124
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 126..132
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 110..116
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 118..124
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 126..132
    src/app/modal-gallery/libconfigs.ts on lines 110..116
    src/app/modal-gallery/libconfigs.ts on lines 118..124
    src/app/modal-gallery/libconfigs.ts on lines 126..132

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

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

    export const LIBCONFIG_507: ModalLibConfig = {
      currentImageConfig: { downloadable: true },
      buttonsConfig: {
        visible: true,
        strategy: ButtonsStrategy.SIMPLE
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 11 other locations - About 40 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 110..116
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 118..124
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 110..116
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 118..124
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 126..132
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 110..116
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 118..124
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 126..132
    src/app/modal-gallery/libconfigs.ts on lines 110..116
    src/app/modal-gallery/libconfigs.ts on lines 118..124
    src/app/modal-gallery/libconfigs.ts on lines 126..132

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

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

    export const LIBCONFIG_505: ModalLibConfig = {
      currentImageConfig: { downloadable: false },
      buttonsConfig: {
        visible: true,
        strategy: ButtonsStrategy.DEFAULT
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 11 other locations - About 40 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 118..124
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 126..132
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 110..116
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 118..124
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 126..132
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 110..116
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 118..124
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 126..132
    src/app/modal-gallery/libconfigs.ts on lines 110..116
    src/app/modal-gallery/libconfigs.ts on lines 118..124
    src/app/modal-gallery/libconfigs.ts on lines 126..132

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

    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

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

    export const LIBCONFIG_800: ModalLibConfig = {
      slideConfig: {
        playConfig: {
          autoPlay: true,
          interval: 5000,
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 35 mins to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 543..551
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 543..551
    src/app/modal-gallery/libconfigs.ts on lines 543..551

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

    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

    export const LIBCONFIG_703: ModalLibConfig = {
      slideConfig: {
        infinite: true,
        sidePreviews: {
          show: true,
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 7 other locations - About 35 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 43..51
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 43..51
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 532..540
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 43..51
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 532..540
    src/app/modal-gallery/libconfigs.ts on lines 43..51
    src/app/modal-gallery/libconfigs.ts on lines 532..540

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

    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

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

    export const LIBCONFIG_802: ModalLibConfig = {
      slideConfig: {
        playConfig: {
          autoPlay: true,
          interval: 1000,
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 35 mins to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 564..572
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 564..572
    src/app/modal-gallery/libconfigs.ts on lines 564..572

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

    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

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

    export const LIBCONFIG_406: ModalLibConfig = {
      slideConfig: {
        infinite: true,
        sidePreviews: {
          show: true,
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 35 mins to fix
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 23..31
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 23..31
    src/app/modal-gallery/libconfigs.ts on lines 23..31

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

    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

    export const LIBCONFIG_408: ModalLibConfig = {
      slideConfig: {
        infinite: true,
        sidePreviews: {
          show: false,
    Severity: Major
    Found in examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts and 7 other locations - About 35 mins to fix
    examples/angular-cli-17/src/app/modal-gallery/libconfigs.ts on lines 532..540
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 43..51
    examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 532..540
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 43..51
    examples/universal/src/app/modal-gallery/libconfigs.ts on lines 532..540
    src/app/modal-gallery/libconfigs.ts on lines 43..51
    src/app/modal-gallery/libconfigs.ts on lines 532..540

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

    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