Ks89/angular-modal-gallery

View on GitHub
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts

Summary

Maintainability
F
3 days
Test Coverage

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

  descriptions: Description[] | undefined[] = [
    {
      strategy: DescriptionStrategy.ALWAYS_VISIBLE,
      style: {bgColor: 'rgba(0, 0, 0, 0.5)', textColor: 'white', marginTop: '0px', marginBottom: '5px', marginLeft: '0px', marginRight: '0px'}
    },
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 32..59

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

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

const expected: Description[] | undefined[] = [
  {
    strategy: DescriptionStrategy.ALWAYS_VISIBLE,
    style: {bgColor: 'rgba(0, 0, 0, 0.5)', textColor: 'white', marginTop: '0px', marginBottom: '5px', marginLeft: '0px', marginRight: '0px'}
  },
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 91..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 247.

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

          expect(des[index].nativeElement.style.marginRight).toBe(val.style.marginRight ? val.style.marginRight : '0px');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.bottom).toBe(val.style.bottom ? val.style.bottom : '');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.left).toBe(val.style.left ? val.style.left : '');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.marginTop).toBe(val.style.marginTop ? val.style.marginTop : '0px');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.top).toBe(val.style.top ? val.style.top : '');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.marginBottom).toBe(val.style.marginBottom ? val.style.marginBottom : '0px');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.position).toBe(val.style.position ? val.style.position : '');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.height).toBe(val.style.height ? val.style.height : '');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.right).toBe(val.style.right ? val.style.right : '');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.width).toBe(val.style.width ? val.style.width : '');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 172..172
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

          expect(des[index].nativeElement.style.marginLeft).toBe(val.style.marginLeft ? val.style.marginLeft : '0px');
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 163..163
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 164..164
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 165..165
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 166..166
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 167..167
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 168..168
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 169..169
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 170..170
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 171..171
projects/ks89/angular-modal-gallery/src/lib/directives/description.directive.spec.ts on lines 173..173

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

There are no issues that match your filters.

Category
Status