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_406: ModalLibConfig = {
  slideConfig: {
    infinite: true,
    sidePreviews: {
      show: true,
Severity: Major
Found in examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts and 3 other locations - About 35 mins to fix
examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 23..31
examples/universal/src/app/modal-gallery/libconfigs.ts on lines 23..31
src/app/modal-gallery/libconfigs.ts on lines 23..31

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

export const LIBCONFIG_406: ModalLibConfig = {
  slideConfig: {
    infinite: true,
    sidePreviews: {
      show: true,
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 23..31
examples/universal/src/app/modal-gallery/libconfigs.ts on lines 23..31
src/app/modal-gallery/libconfigs.ts on lines 23..31

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

export const LIBCONFIG_802: ModalLibConfig = {
  slideConfig: {
    playConfig: {
      autoPlay: true,
      interval: 1000,
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 564..572
examples/universal/src/app/modal-gallery/libconfigs.ts on lines 564..572
src/app/modal-gallery/libconfigs.ts on lines 564..572

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  it('should instantiate service when inject service',
    inject([IdValidatorService], (service: IdValidatorService) => {
      expect(service instanceof IdValidatorService).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/config.service.spec.ts on lines 75..79

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

export const LIBCONFIG_800: ModalLibConfig = {
  slideConfig: {
    playConfig: {
      autoPlay: true,
      interval: 5000,
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 543..551
examples/universal/src/app/modal-gallery/libconfigs.ts on lines 543..551
src/app/modal-gallery/libconfigs.ts on lines 543..551

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

        if (val.right) {
          expect(des[index].nativeElement.style.marginRight).toBe(val.right);
        }
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 107..109
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 113..115
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 116..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

Similar blocks of code found in 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

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

export const LIBCONFIG_408: ModalLibConfig = {
  slideConfig: {
    infinite: true,
    sidePreviews: {
      show: false,
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 43..51
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 532..540
examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 532..540
examples/universal/src/app/modal-gallery/libconfigs.ts on lines 43..51
examples/universal/src/app/modal-gallery/libconfigs.ts on lines 532..540
src/app/modal-gallery/libconfigs.ts on lines 43..51
src/app/modal-gallery/libconfigs.ts on lines 532..540

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

        if (val.bottom) {
          expect(des[index].nativeElement.style.marginBottom).toBe(val.bottom);
        }
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 107..109
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 110..112
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 113..115

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

        if (val.top) {
          expect(des[index].nativeElement.style.marginTop).toBe(val.top);
        }
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 107..109
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 110..112
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 116..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

        if (val.left) {
          expect(des[index].nativeElement.style.marginLeft).toBe(val.left);
        }
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 110..112
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 113..115
projects/ks89/angular-modal-gallery/src/lib/directives/margin.directive.spec.ts on lines 116..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

export const LIBCONFIG_703: ModalLibConfig = {
  slideConfig: {
    infinite: true,
    sidePreviews: {
      show: true,
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 43..51
examples/angular-cli-18/src/app/modal-gallery/libconfigs.ts on lines 532..540
examples/angular-cli-material/src/app/modal-gallery/libconfigs.ts on lines 43..51
examples/universal/src/app/modal-gallery/libconfigs.ts on lines 43..51
examples/universal/src/app/modal-gallery/libconfigs.ts on lines 532..540
src/app/modal-gallery/libconfigs.ts on lines 43..51
src/app/modal-gallery/libconfigs.ts on lines 532..540

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  it('should instantiate service when inject service', inject([AttachToOverlayService], (service: AttachToOverlayService) => {
    expect(service instanceof AttachToOverlayService).toEqual(true);
  }));
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/config.service.spec.ts on lines 75..79
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

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

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

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language