Ks89/angular-modal-gallery

View on GitHub
projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts

Summary

Maintainability
F
1 wk
Test Coverage

File config.service.spec.ts has 750 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 The MIT License (MIT)

 Copyright (C) 2017-2023 Stefano Cappa (Ks89)

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

            it(`should call setConfig to update the library configuration with an undefined carouselDotsConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  carouselDotsConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 284..293

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

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

            it(`should call setConfig to update the library configuration with an undefined dotsConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  dotsConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 734..743

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

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

            it(`should call setConfig to update the library configuration with an undefined accessibilityConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  accessibilityConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

            it(`should call setConfig to update the library configuration with an undefined slideConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  slideConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

            it(`should call setConfig to update the library configuration with an undefined carouselPlayConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  carouselPlayConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

            it(`should call setConfig to update the library configuration with an undefined currentImageConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  currentImageConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

            it(`should call setConfig to update the library configuration with an undefined previewConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  previewConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

            it(`should call setConfig to update the library configuration with an undefined plainGalleryConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  plainGalleryConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

            it(`should call setConfig to update the library configuration with an undefined keyboardConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  keyboardConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

            it(`should call setConfig to update the library configuration with an undefined carouselConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  carouselConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

            it(`should call setConfig to update the library configuration with an undefined carouselPreviewsConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  carouselPreviewsConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 521..530
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653

    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

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

            it(`should call setConfig to update the library configuration with an undefined carouselImageConfig`,
              inject([ConfigService], (service: ConfigService) => {
                const inputConfig: LibConfig = {
                  carouselImageConfig: undefined
                };
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 87..96
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 138..147
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 168..177
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 309..318
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 373..382
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 492..501
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 612..621
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 644..653
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 673..682

    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

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

                const inputConfig: LibConfig = {
                  currentImageConfig: {
                    navigateOnClick: false,
                    loadingConfig: undefined,
                    description: {
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 429..443

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

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

                const inputConfig: LibConfig = {
                  currentImageConfig: {
                    navigateOnClick: false,
                    loadingConfig: undefined,
                    description: {
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 460..474

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

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

                const inputConfig: LibConfig = {
                  plainGalleryConfig: {
                    strategy: PlainGalleryStrategy.GRID,
                    layout: new GridLayout(DEFAULT_PREVIEW_SIZE, {length: -1, wrap: false}),
                    advanced: {aTags: true, additionalBackground: '10% 10%/cover'} as AdvancedConfig
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 825..831

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

                const inputConfig: LibConfig = {
                  plainGalleryConfig: {
                    strategy: PlainGalleryStrategy.ROW,
                    layout: new GridLayout(DEFAULT_PREVIEW_SIZE, {length: -1, wrap: false}),
                    advanced: {aTags: true, additionalBackground: '10% 10%/cover'} as AdvancedConfig
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 357..363

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

                  slideConfig: {
                    infinite: true,
                    playConfig: {autoPlay: true, interval: 10000, pauseOnHover: false} as PlayConfig,
                    sidePreviews: {show: false, size: {width: '200px', height: '100px'}} as SidePreviewsConfig
                  } as SlideConfig
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.ts on lines 107..111

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

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

                const inputConfig: LibConfig = {
                  previewConfig: {
                    visible: false,
                    number: 0,
                    arrows: false,
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 181..189

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

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

                const inputConfig: LibConfig = {
                  previewConfig: {
                    visible: false,
                    number: 2,
                    arrows: false,
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 223..231

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

    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

                expect(result?.carouselImageConfig?.description?.style?.marginTop).toEqual(inputConfig.carouselImageConfig?.description?.style?.marginTop);
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 131..131
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 132..132
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 600..600
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 601..601
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 603..603
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 604..604
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 605..605

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

    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

                expect(result?.carouselImageConfig?.description?.style?.marginLeft).toEqual(inputConfig.carouselImageConfig?.description?.style?.marginLeft);
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 131..131
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 132..132
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 600..600
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 601..601
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 602..602
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 603..603
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 605..605

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

    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

                expect(result?.carouselImageConfig?.description?.style?.bgColor).toEqual(inputConfig.carouselImageConfig?.description?.style?.bgColor);
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 131..131
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 132..132
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 601..601
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 602..602
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 603..603
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 604..604
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 605..605

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

    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

                expect(result?.slideConfig?.sidePreviews?.size?.width).toEqual(inputConfig.slideConfig?.sidePreviews?.size?.width);
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 132..132
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 600..600
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 601..601
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 602..602
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 603..603
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 604..604
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 605..605

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

    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

                expect(result?.slideConfig?.sidePreviews?.size?.height).toEqual(inputConfig.slideConfig?.sidePreviews?.size?.height);
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 131..131
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 600..600
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 601..601
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 602..602
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 603..603
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 604..604
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 605..605

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

    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

                expect(result?.carouselImageConfig?.description?.style?.textColor).toEqual(inputConfig.carouselImageConfig?.description?.style?.textColor);
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 131..131
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 132..132
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 600..600
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 602..602
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 603..603
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 604..604
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 605..605

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

    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

                expect(result?.carouselImageConfig?.description?.style?.marginRight).toEqual(inputConfig.carouselImageConfig?.description?.style?.marginRight);
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 131..131
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 132..132
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 600..600
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 601..601
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 602..602
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 603..603
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 604..604

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

    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

                expect(result?.carouselImageConfig?.description?.style?.marginBottom).toEqual(inputConfig.carouselImageConfig?.description?.style?.marginBottom);
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 131..131
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 132..132
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 600..600
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 601..601
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 602..602
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 604..604
    projects/ks89/angular-modal-gallery/src/lib/services/config.service.spec.ts on lines 605..605

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

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

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

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

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

    Refactorings

    Further Reading

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

      it('should instantiate service when inject service',
        inject([ConfigService], (service: ConfigService) => {
          expect(service instanceof ConfigService).toEqual(true);
        })
      );
    projects/ks89/angular-modal-gallery/src/lib/components/modal-gallery/attach-to-overlay.service.spec.ts on lines 76..78
    projects/ks89/angular-modal-gallery/src/lib/components/modal-gallery/modal-gallery.service.spec.ts on lines 126..130
    projects/ks89/angular-modal-gallery/src/lib/services/id-validator.service.spec.ts on lines 47..51

    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