Ks89/angular-modal-gallery

View on GitHub

Showing 513 of 513 total issues

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

export const LIBCONFIG_801: ModalLibConfig = {
  slideConfig: {
    infinite: true,
    playConfig: {
      autoPlay: true,
examples/angular-cli-18/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 9 locations. Consider refactoring.
Open

        for (let i = 0; i < images.length; i++) {
          checkPreview(previews[i], images[i], i === 0, DEFAULT_PREVIEW_SIZE);
        }
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 332..334
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 368..370
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 404..406
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 440..442
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 476..478
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 512..514
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 549..551
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 859..861

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

      for (let i = 0; i < previewImages.length; i++) {
        checkPreview(previews[i], previewImages[i], i === 0, DEFAULT_PREVIEW_SIZE);
      }
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 332..334
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 368..370
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 404..406
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 476..478
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 512..514
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 549..551
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 732..734
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 859..861

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

        for (let i = 0; i < previewImages.length; i++) {
          checkPreview(previews[i], previewImages[i], i === 0, size);
        }
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 332..334
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 368..370
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 404..406
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 440..442
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 476..478
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 549..551
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 732..734
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 859..861

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

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

        comp.ngOnChanges({
          images: {
            previousValue: IMAGES,
            currentValue: IMAGES,
            firstChange: false,
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 911..918

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

      for (let i = 0; i < previewImages.length; i++) {
        checkPreview(previews[i], previewImages[i], i === 2, DEFAULT_PREVIEW_SIZE);
      }
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 332..334
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 368..370
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 440..442
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 476..478
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 512..514
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 549..551
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 732..734
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 859..861

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

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

    if (obj.carouselSlideInfinite === undefined) {
      newConfig.carouselSlideInfinite = DEFAULT_CONFIG.carouselSlideInfinite;
    } else {
      newConfig.carouselSlideInfinite = obj.carouselSlideInfinite;
    }
projects/ks89/angular-modal-gallery/src/lib/services/config.service.ts on lines 344..348

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

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/universal/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 40 mins to fix
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 553..562
examples/angular-cli-material/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 9 locations. Consider refactoring.
Open

      for (let i = 0; i < previewImages.length; i++) {
        checkPreview(previews[i], previewImages[i], i === 0, DEFAULT_PREVIEW_SIZE);
      }
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 368..370
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 404..406
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 440..442
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 476..478
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 512..514
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 549..551
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 732..734
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 859..861

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

      for (let i = 0; i < previewImages.length; i++) {
        checkPreview(previews[i], previewImages[i], i === 1, DEFAULT_PREVIEW_SIZE);
      }
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 332..334
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 404..406
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 440..442
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 476..478
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 512..514
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 549..551
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 732..734
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 859..861

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

      for (let i = 0; i < previewImages.length; i++) {
        checkPreview(previews[i], previewImages[i], i === 0, DEFAULT_PREVIEW_SIZE);
      }
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 332..334
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 368..370
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 404..406
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 440..442
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 476..478
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 512..514
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 732..734
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 859..861

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

        if (Math.abs(deltaY) > 60) {
          // delta y is at least 60 pixels
          if (deltaY > 0) {
            this.swipeDown.emit();
          } else {
projects/ks89/angular-modal-gallery/src/lib/directives/swipe.directive.ts on lines 82..89

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

        if (Math.abs(deltaX) > 60) {
          // delta x is at least 60 pixels
          if (deltaX > 0) {
            this.swipeRight.emit();
          } else {
projects/ks89/angular-modal-gallery/src/lib/directives/swipe.directive.ts on lines 91..98

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

    if (obj.enableCloseOutside === undefined) {
      newConfig.enableCloseOutside = DEFAULT_CONFIG.enableCloseOutside;
    } else {
      newConfig.enableCloseOutside = obj.enableCloseOutside;
    }
projects/ks89/angular-modal-gallery/src/lib/services/config.service.ts on lines 339..343

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

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 src/app/modal-gallery/libconfigs.ts and 3 other locations - About 40 mins to fix
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 553..562
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

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

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

        comp.ngOnChanges({
          images: {
            previousValue: IMAGES,
            currentValue: IMAGES,
            firstChange: false,
projects/ks89/angular-modal-gallery/src/lib/components/previews/previews.component.spec.ts on lines 890..897

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
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 110..116
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 118..124
examples/angular-cli-18/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 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_506: ModalLibConfig = {
  currentImageConfig: { downloadable: true },
  buttonsConfig: {
    visible: true,
    strategy: ButtonsStrategy.DEFAULT
Severity: Major
Found in src/app/modal-gallery/libconfigs.ts and 11 other locations - About 40 mins to fix
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 110..116
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 118..124
examples/angular-cli-18/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 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/universal/src/app/modal-gallery/libconfigs.ts and 11 other locations - About 40 mins to fix
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 110..116
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 118..124
examples/angular-cli-18/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 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

Severity
Category
Status
Source
Language