valor-software/ng2-bootstrap

View on GitHub

Showing 519 of 791 total issues

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

  previousSlide(force = false): void {
    this.activeSlide = this.findNextSlideIndex(Direction.PREV, force);
  }
Severity: Minor
Found in src/carousel/carousel.component.ts and 1 other location - About 30 mins to fix
src/carousel/carousel.component.ts on lines 155..157

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

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

      {
        title: 'Trigger by isOpen property',
        anchor: 'trigger-by-isopen-property',
        component: require('!!raw-loader?lang=typescript!./demos/trigger-by-isopen-property/trigger-by-isopen-property.ts'),
        html: require('!!raw-loader?lang=markup!./demos/trigger-by-isopen-property/trigger-by-isopen-property.html'),
Severity: Major
Found in demo/src/app/components/+popover/popover-section.list.ts and 66 other locations - About 30 mins to fix
demo/src/app/components/+collapse/collapse-section.list.ts on lines 34..42
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 47..65
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 73..93
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 94..103
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 104..116
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 117..136
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 137..148
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 149..156
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 157..166
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 174..182
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 183..190
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 191..198
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 199..206
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 207..214
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 215..222
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 223..231
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 232..239
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 240..248
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 49..57
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 65..74
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 75..87
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 88..95
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 96..103
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 104..112
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 113..122
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 130..137
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 154..161
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 162..169
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 170..177
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 178..185
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 186..193
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 194..201
demo/src/app/components/+modal/modal-section.list.ts on lines 60..71
demo/src/app/components/+modal/modal-section.list.ts on lines 72..79
demo/src/app/components/+modal/modal-section.list.ts on lines 87..100
demo/src/app/components/+modal/modal-section.list.ts on lines 101..108
demo/src/app/components/+modal/modal-section.list.ts on lines 109..117
demo/src/app/components/+modal/modal-section.list.ts on lines 118..125
demo/src/app/components/+modal/modal-section.list.ts on lines 126..133
demo/src/app/components/+modal/modal-section.list.ts on lines 134..141
demo/src/app/components/+modal/modal-section.list.ts on lines 142..149
demo/src/app/components/+modal/modal-section.list.ts on lines 172..179
demo/src/app/components/+modal/modal-section.list.ts on lines 180..187
demo/src/app/components/+modal/modal-section.list.ts on lines 188..201
demo/src/app/components/+modal/modal-section.list.ts on lines 202..214
demo/src/app/components/+pagination/pagination-section.list.ts on lines 96..103
demo/src/app/components/+pagination/pagination-section.list.ts on lines 104..112
demo/src/app/components/+popover/popover-section.list.ts on lines 50..59
demo/src/app/components/+popover/popover-section.list.ts on lines 60..68
demo/src/app/components/+popover/popover-section.list.ts on lines 69..76
demo/src/app/components/+popover/popover-section.list.ts on lines 77..85
demo/src/app/components/+popover/popover-section.list.ts on lines 86..93
demo/src/app/components/+popover/popover-section.list.ts on lines 94..104
demo/src/app/components/+popover/popover-section.list.ts on lines 133..141
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 55..62
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 105..113
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 47..56
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 57..65
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 66..73
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 74..82
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 83..91
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 92..102
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 117..125
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 147..154
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 107..118
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 119..129

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

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

      {
        title: 'Value change event',
        anchor: 'value-change-event',
        component: require('!!raw-loader?lang=typescript!./demos/value-change-event/value-change-event.ts'),
        html: require('!!raw-loader?lang=markup!./demos/value-change-event/value-change-event.html'),
demo/src/app/components/+collapse/collapse-section.list.ts on lines 34..42
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 47..65
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 73..93
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 94..103
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 104..116
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 117..136
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 137..148
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 149..156
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 157..166
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 174..182
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 183..190
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 191..198
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 199..206
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 215..222
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 223..231
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 232..239
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 240..248
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 49..57
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 65..74
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 75..87
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 88..95
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 96..103
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 104..112
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 113..122
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 130..137
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 154..161
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 162..169
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 170..177
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 178..185
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 186..193
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 194..201
demo/src/app/components/+modal/modal-section.list.ts on lines 60..71
demo/src/app/components/+modal/modal-section.list.ts on lines 72..79
demo/src/app/components/+modal/modal-section.list.ts on lines 87..100
demo/src/app/components/+modal/modal-section.list.ts on lines 101..108
demo/src/app/components/+modal/modal-section.list.ts on lines 109..117
demo/src/app/components/+modal/modal-section.list.ts on lines 118..125
demo/src/app/components/+modal/modal-section.list.ts on lines 126..133
demo/src/app/components/+modal/modal-section.list.ts on lines 134..141
demo/src/app/components/+modal/modal-section.list.ts on lines 142..149
demo/src/app/components/+modal/modal-section.list.ts on lines 172..179
demo/src/app/components/+modal/modal-section.list.ts on lines 180..187
demo/src/app/components/+modal/modal-section.list.ts on lines 188..201
demo/src/app/components/+modal/modal-section.list.ts on lines 202..214
demo/src/app/components/+pagination/pagination-section.list.ts on lines 96..103
demo/src/app/components/+pagination/pagination-section.list.ts on lines 104..112
demo/src/app/components/+popover/popover-section.list.ts on lines 50..59
demo/src/app/components/+popover/popover-section.list.ts on lines 60..68
demo/src/app/components/+popover/popover-section.list.ts on lines 69..76
demo/src/app/components/+popover/popover-section.list.ts on lines 77..85
demo/src/app/components/+popover/popover-section.list.ts on lines 86..93
demo/src/app/components/+popover/popover-section.list.ts on lines 94..104
demo/src/app/components/+popover/popover-section.list.ts on lines 133..141
demo/src/app/components/+popover/popover-section.list.ts on lines 142..149
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 55..62
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 105..113
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 47..56
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 57..65
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 66..73
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 74..82
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 83..91
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 92..102
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 117..125
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 147..154
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 107..118
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 119..129

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

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

      {
        title: 'Сustom css class',
        anchor: 'service-custom-css-class',
        component: require('!!raw-loader?lang=typescript!./demos/service-options/custom-css-class/custom-css-class.ts'),
        html: require('!!raw-loader?lang=markup!./demos/service-options/custom-css-class/custom-css-class.html'),
Severity: Major
Found in demo/src/app/components/+modal/modal-section.list.ts and 66 other locations - About 30 mins to fix
demo/src/app/components/+collapse/collapse-section.list.ts on lines 34..42
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 47..65
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 73..93
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 94..103
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 104..116
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 117..136
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 137..148
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 149..156
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 157..166
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 174..182
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 183..190
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 191..198
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 199..206
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 207..214
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 215..222
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 223..231
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 232..239
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 240..248
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 49..57
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 65..74
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 75..87
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 88..95
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 96..103
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 104..112
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 113..122
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 130..137
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 154..161
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 162..169
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 170..177
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 178..185
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 186..193
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 194..201
demo/src/app/components/+modal/modal-section.list.ts on lines 60..71
demo/src/app/components/+modal/modal-section.list.ts on lines 72..79
demo/src/app/components/+modal/modal-section.list.ts on lines 87..100
demo/src/app/components/+modal/modal-section.list.ts on lines 101..108
demo/src/app/components/+modal/modal-section.list.ts on lines 118..125
demo/src/app/components/+modal/modal-section.list.ts on lines 126..133
demo/src/app/components/+modal/modal-section.list.ts on lines 134..141
demo/src/app/components/+modal/modal-section.list.ts on lines 142..149
demo/src/app/components/+modal/modal-section.list.ts on lines 172..179
demo/src/app/components/+modal/modal-section.list.ts on lines 180..187
demo/src/app/components/+modal/modal-section.list.ts on lines 188..201
demo/src/app/components/+modal/modal-section.list.ts on lines 202..214
demo/src/app/components/+pagination/pagination-section.list.ts on lines 96..103
demo/src/app/components/+pagination/pagination-section.list.ts on lines 104..112
demo/src/app/components/+popover/popover-section.list.ts on lines 50..59
demo/src/app/components/+popover/popover-section.list.ts on lines 60..68
demo/src/app/components/+popover/popover-section.list.ts on lines 69..76
demo/src/app/components/+popover/popover-section.list.ts on lines 77..85
demo/src/app/components/+popover/popover-section.list.ts on lines 86..93
demo/src/app/components/+popover/popover-section.list.ts on lines 94..104
demo/src/app/components/+popover/popover-section.list.ts on lines 133..141
demo/src/app/components/+popover/popover-section.list.ts on lines 142..149
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 55..62
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 105..113
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 47..56
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 57..65
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 66..73
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 74..82
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 83..91
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 92..102
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 117..125
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 147..154
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 107..118
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 119..129

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

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

      {
        title: 'Animation option',
        anchor: 'service-disable-animation',
        component: require('!!raw-loader?lang=typescript!./demos/service-options/disable-animation/disable-animation.ts'),
        html: require('!!raw-loader?lang=markup!./demos/service-options/disable-animation/disable-animation.html'),
Severity: Major
Found in demo/src/app/components/+modal/modal-section.list.ts and 66 other locations - About 30 mins to fix
demo/src/app/components/+collapse/collapse-section.list.ts on lines 34..42
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 47..65
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 73..93
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 94..103
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 104..116
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 117..136
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 137..148
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 149..156
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 157..166
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 174..182
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 183..190
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 191..198
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 199..206
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 207..214
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 215..222
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 223..231
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 232..239
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 240..248
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 49..57
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 65..74
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 75..87
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 88..95
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 96..103
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 104..112
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 113..122
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 130..137
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 154..161
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 162..169
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 170..177
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 178..185
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 186..193
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 194..201
demo/src/app/components/+modal/modal-section.list.ts on lines 60..71
demo/src/app/components/+modal/modal-section.list.ts on lines 72..79
demo/src/app/components/+modal/modal-section.list.ts on lines 87..100
demo/src/app/components/+modal/modal-section.list.ts on lines 101..108
demo/src/app/components/+modal/modal-section.list.ts on lines 109..117
demo/src/app/components/+modal/modal-section.list.ts on lines 126..133
demo/src/app/components/+modal/modal-section.list.ts on lines 134..141
demo/src/app/components/+modal/modal-section.list.ts on lines 142..149
demo/src/app/components/+modal/modal-section.list.ts on lines 172..179
demo/src/app/components/+modal/modal-section.list.ts on lines 180..187
demo/src/app/components/+modal/modal-section.list.ts on lines 188..201
demo/src/app/components/+modal/modal-section.list.ts on lines 202..214
demo/src/app/components/+pagination/pagination-section.list.ts on lines 96..103
demo/src/app/components/+pagination/pagination-section.list.ts on lines 104..112
demo/src/app/components/+popover/popover-section.list.ts on lines 50..59
demo/src/app/components/+popover/popover-section.list.ts on lines 60..68
demo/src/app/components/+popover/popover-section.list.ts on lines 69..76
demo/src/app/components/+popover/popover-section.list.ts on lines 77..85
demo/src/app/components/+popover/popover-section.list.ts on lines 86..93
demo/src/app/components/+popover/popover-section.list.ts on lines 94..104
demo/src/app/components/+popover/popover-section.list.ts on lines 133..141
demo/src/app/components/+popover/popover-section.list.ts on lines 142..149
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 55..62
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 105..113
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 47..56
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 57..65
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 66..73
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 74..82
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 83..91
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 92..102
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 117..125
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 147..154
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 107..118
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 119..129

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

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

      {
        title: 'Esc closing option',
        anchor: 'service-disable-animation',
        component: require('!!raw-loader?lang=typescript!./demos/service-options/disable-esc-closing/disable-esc-closing.ts'),
        html: require('!!raw-loader?lang=markup!./demos/service-options/disable-esc-closing/disable-esc-closing.html'),
Severity: Major
Found in demo/src/app/components/+modal/modal-section.list.ts and 66 other locations - About 30 mins to fix
demo/src/app/components/+collapse/collapse-section.list.ts on lines 34..42
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 47..65
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 73..93
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 94..103
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 104..116
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 117..136
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 137..148
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 149..156
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 157..166
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 174..182
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 183..190
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 191..198
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 199..206
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 207..214
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 215..222
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 223..231
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 232..239
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 240..248
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 49..57
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 65..74
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 75..87
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 88..95
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 96..103
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 104..112
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 113..122
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 130..137
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 154..161
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 162..169
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 170..177
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 178..185
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 186..193
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 194..201
demo/src/app/components/+modal/modal-section.list.ts on lines 60..71
demo/src/app/components/+modal/modal-section.list.ts on lines 72..79
demo/src/app/components/+modal/modal-section.list.ts on lines 87..100
demo/src/app/components/+modal/modal-section.list.ts on lines 101..108
demo/src/app/components/+modal/modal-section.list.ts on lines 109..117
demo/src/app/components/+modal/modal-section.list.ts on lines 118..125
demo/src/app/components/+modal/modal-section.list.ts on lines 134..141
demo/src/app/components/+modal/modal-section.list.ts on lines 142..149
demo/src/app/components/+modal/modal-section.list.ts on lines 172..179
demo/src/app/components/+modal/modal-section.list.ts on lines 180..187
demo/src/app/components/+modal/modal-section.list.ts on lines 188..201
demo/src/app/components/+modal/modal-section.list.ts on lines 202..214
demo/src/app/components/+pagination/pagination-section.list.ts on lines 96..103
demo/src/app/components/+pagination/pagination-section.list.ts on lines 104..112
demo/src/app/components/+popover/popover-section.list.ts on lines 50..59
demo/src/app/components/+popover/popover-section.list.ts on lines 60..68
demo/src/app/components/+popover/popover-section.list.ts on lines 69..76
demo/src/app/components/+popover/popover-section.list.ts on lines 77..85
demo/src/app/components/+popover/popover-section.list.ts on lines 86..93
demo/src/app/components/+popover/popover-section.list.ts on lines 94..104
demo/src/app/components/+popover/popover-section.list.ts on lines 133..141
demo/src/app/components/+popover/popover-section.list.ts on lines 142..149
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 55..62
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 105..113
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 47..56
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 57..65
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 66..73
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 74..82
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 83..91
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 92..102
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 117..125
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 147..154
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 107..118
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 119..129

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

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

      {
        title: 'Ignore spaces and order',
        anchor: 'single-world',
        component: require('!!raw-loader?lang=typescript!./demos/single-world/single-world.ts'),
        html: require('!!raw-loader?lang=markup!./demos/single-world/single-world.html'),
Severity: Major
Found in demo/src/app/components/+typeahead/typeahead-section.list.ts and 66 other locations - About 30 mins to fix
demo/src/app/components/+collapse/collapse-section.list.ts on lines 34..42
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 47..65
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 73..93
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 94..103
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 104..116
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 117..136
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 137..148
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 149..156
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 157..166
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 174..182
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 183..190
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 191..198
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 199..206
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 207..214
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 215..222
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 223..231
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 232..239
demo/src/app/components/+datepicker/datepicker-section.list.ts on lines 240..248
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 49..57
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 65..74
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 75..87
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 88..95
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 96..103
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 104..112
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 113..122
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 130..137
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 154..161
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 162..169
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 170..177
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 178..185
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 186..193
demo/src/app/components/+dropdown/dropdown-section.list.ts on lines 194..201
demo/src/app/components/+modal/modal-section.list.ts on lines 60..71
demo/src/app/components/+modal/modal-section.list.ts on lines 72..79
demo/src/app/components/+modal/modal-section.list.ts on lines 87..100
demo/src/app/components/+modal/modal-section.list.ts on lines 101..108
demo/src/app/components/+modal/modal-section.list.ts on lines 109..117
demo/src/app/components/+modal/modal-section.list.ts on lines 118..125
demo/src/app/components/+modal/modal-section.list.ts on lines 126..133
demo/src/app/components/+modal/modal-section.list.ts on lines 134..141
demo/src/app/components/+modal/modal-section.list.ts on lines 142..149
demo/src/app/components/+modal/modal-section.list.ts on lines 172..179
demo/src/app/components/+modal/modal-section.list.ts on lines 180..187
demo/src/app/components/+modal/modal-section.list.ts on lines 188..201
demo/src/app/components/+modal/modal-section.list.ts on lines 202..214
demo/src/app/components/+pagination/pagination-section.list.ts on lines 96..103
demo/src/app/components/+pagination/pagination-section.list.ts on lines 104..112
demo/src/app/components/+popover/popover-section.list.ts on lines 50..59
demo/src/app/components/+popover/popover-section.list.ts on lines 60..68
demo/src/app/components/+popover/popover-section.list.ts on lines 69..76
demo/src/app/components/+popover/popover-section.list.ts on lines 77..85
demo/src/app/components/+popover/popover-section.list.ts on lines 86..93
demo/src/app/components/+popover/popover-section.list.ts on lines 94..104
demo/src/app/components/+popover/popover-section.list.ts on lines 133..141
demo/src/app/components/+popover/popover-section.list.ts on lines 142..149
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 55..62
demo/src/app/components/+timepicker/timepicker-section.list.ts on lines 105..113
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 47..56
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 57..65
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 66..73
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 74..82
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 83..91
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 92..102
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 117..125
demo/src/app/components/+tooltip/tooltip-section.list.ts on lines 147..154
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 119..129

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

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

      {
        title: 'Radio',
        anchor: 'radio-button',
        description: `<p>Radio buttons with checked/unchecked states. Group can be created in two ways: using
<code>btnRadioGroup</code> directive or using the same <code>ngModel</code> binding with several buttons (works only for
Severity: Major
Found in demo/src/app/components/+buttons/buttons-section.list.ts and 25 other locations - About 30 mins to fix
demo/src/app/components/+accordion/accordion-section.list.ts on lines 37..45
demo/src/app/components/+accordion/accordion-section.list.ts on lines 46..53
demo/src/app/components/+alerts/alerts-section.list.ts on lines 36..46
demo/src/app/components/+alerts/alerts-section.list.ts on lines 47..55
demo/src/app/components/+alerts/alerts-section.list.ts on lines 56..64
demo/src/app/components/+alerts/alerts-section.list.ts on lines 65..73
demo/src/app/components/+alerts/alerts-section.list.ts on lines 74..82
demo/src/app/components/+alerts/alerts-section.list.ts on lines 83..90
demo/src/app/components/+alerts/alerts-section.list.ts on lines 91..99
demo/src/app/components/+alerts/alerts-section.list.ts on lines 100..107
demo/src/app/components/+alerts/alerts-section.list.ts on lines 108..115
demo/src/app/components/+alerts/alerts-section.list.ts on lines 116..123
demo/src/app/components/+buttons/buttons-section.list.ts on lines 38..45
demo/src/app/components/+buttons/buttons-section.list.ts on lines 53..60
demo/src/app/components/+buttons/buttons-section.list.ts on lines 78..87
demo/src/app/components/+carousel/carousel-section.list.ts on lines 41..50
demo/src/app/components/+carousel/carousel-section.list.ts on lines 65..72
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 68..78
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 79..89
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 90..99
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 137..147
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 148..158
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 159..169
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 177..187
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 188..198

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

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

      {
        title: 'Link color',
        anchor: 'link-color',
        description: `<p>Use the <code>.alert-link</code> utility class to quickly provide matching
          colored links within any alert.</p>`,
Severity: Major
Found in demo/src/app/components/+alerts/alerts-section.list.ts and 25 other locations - About 30 mins to fix
demo/src/app/components/+accordion/accordion-section.list.ts on lines 37..45
demo/src/app/components/+accordion/accordion-section.list.ts on lines 46..53
demo/src/app/components/+alerts/alerts-section.list.ts on lines 36..46
demo/src/app/components/+alerts/alerts-section.list.ts on lines 56..64
demo/src/app/components/+alerts/alerts-section.list.ts on lines 65..73
demo/src/app/components/+alerts/alerts-section.list.ts on lines 74..82
demo/src/app/components/+alerts/alerts-section.list.ts on lines 83..90
demo/src/app/components/+alerts/alerts-section.list.ts on lines 91..99
demo/src/app/components/+alerts/alerts-section.list.ts on lines 100..107
demo/src/app/components/+alerts/alerts-section.list.ts on lines 108..115
demo/src/app/components/+alerts/alerts-section.list.ts on lines 116..123
demo/src/app/components/+buttons/buttons-section.list.ts on lines 38..45
demo/src/app/components/+buttons/buttons-section.list.ts on lines 53..60
demo/src/app/components/+buttons/buttons-section.list.ts on lines 61..70
demo/src/app/components/+buttons/buttons-section.list.ts on lines 78..87
demo/src/app/components/+carousel/carousel-section.list.ts on lines 41..50
demo/src/app/components/+carousel/carousel-section.list.ts on lines 65..72
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 68..78
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 79..89
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 90..99
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 137..147
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 148..158
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 159..169
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 177..187
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 188..198

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

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

      {
        title: 'Dynamic content',
        anchor: 'dynamic-content',
        description: `<p>Alerts fully support bindings.</p>`,
        component: require('!!raw-loader?lang=typescript!./demos/dynamic-content/dynamic-content.ts'),
Severity: Major
Found in demo/src/app/components/+alerts/alerts-section.list.ts and 25 other locations - About 30 mins to fix
demo/src/app/components/+accordion/accordion-section.list.ts on lines 37..45
demo/src/app/components/+accordion/accordion-section.list.ts on lines 46..53
demo/src/app/components/+alerts/alerts-section.list.ts on lines 36..46
demo/src/app/components/+alerts/alerts-section.list.ts on lines 47..55
demo/src/app/components/+alerts/alerts-section.list.ts on lines 56..64
demo/src/app/components/+alerts/alerts-section.list.ts on lines 65..73
demo/src/app/components/+alerts/alerts-section.list.ts on lines 74..82
demo/src/app/components/+alerts/alerts-section.list.ts on lines 91..99
demo/src/app/components/+alerts/alerts-section.list.ts on lines 100..107
demo/src/app/components/+alerts/alerts-section.list.ts on lines 108..115
demo/src/app/components/+alerts/alerts-section.list.ts on lines 116..123
demo/src/app/components/+buttons/buttons-section.list.ts on lines 38..45
demo/src/app/components/+buttons/buttons-section.list.ts on lines 53..60
demo/src/app/components/+buttons/buttons-section.list.ts on lines 61..70
demo/src/app/components/+buttons/buttons-section.list.ts on lines 78..87
demo/src/app/components/+carousel/carousel-section.list.ts on lines 41..50
demo/src/app/components/+carousel/carousel-section.list.ts on lines 65..72
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 68..78
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 79..89
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 90..99
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 137..147
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 148..158
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 159..169
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 177..187
demo/src/app/components/+typeahead/typeahead-section.list.ts on lines 188..198

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

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

    container.monthHoverHandler = (event: CellHoverEvent): void => {
      event.cell.isHovered = event.isHovered;
    };
Severity: Minor
Found in src/datepicker/reducer/bs-datepicker.effects.ts and 1 other location - About 30 mins to fix
src/datepicker/reducer/bs-datepicker.effects.ts on lines 129..131

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

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

      this._backdrop
        .attach(ModalBackdropComponent)
        .to('body')
        .show({isAnimated: this._config.animated});
Severity: Minor
Found in src/modal/modal.directive.ts and 1 other location - About 30 mins to fix
src/modal/bs-modal.service.ts on lines 86..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 45.

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

      cy.get(` ${ basicBtn } ${ buttons.buttonSel }`)
        .should('to.be.enabled')
        .and('to.contain', btnText);
Severity: Minor
Found in cypress/integration/demo_pages_spec.ts and 1 other location - About 30 mins to fix
cypress/integration/demo_pages_spec.ts on lines 512..513

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

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

  nextSlide(force = false): void {
    this.activeSlide = this.findNextSlideIndex(Direction.NEXT, force);
  }
Severity: Minor
Found in src/carousel/carousel.component.ts and 1 other location - About 30 mins to fix
src/carousel/carousel.component.ts on lines 163..165

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

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

    container.yearHoverHandler = (event: CellHoverEvent): void => {
      event.cell.isHovered = event.isHovered;
    };
Severity: Minor
Found in src/datepicker/reducer/bs-datepicker.effects.ts and 1 other location - About 30 mins to fix
src/datepicker/reducer/bs-datepicker.effects.ts on lines 125..127

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

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

addFormatToken('zz', null, null,
  function (date: Date, opts: DateFormatterOptions): string {
    return opts.isUTC ? 'Coordinated Universal Time' : '';
  });
Severity: Minor
Found in src/chronos/units/timezone.ts and 1 other location - About 30 mins to fix
src/chronos/units/timezone.ts on lines 7..10

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

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

  toggle(): void {
    if (this.isOpen) {
      return this.hide();
    }

Severity: Minor
Found in src/datepicker/bs-daterangepicker.component.ts and 1 other location - About 30 mins to fix
src/popover/popover.directive.ts on lines 144..150

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

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

        this._backdropLoader
          .attach(ModalBackdropComponent)
          .to('body')
          .show({ isAnimated: this.config.animated });
Severity: Minor
Found in src/modal/bs-modal.service.ts and 1 other location - About 30 mins to fix
src/modal/modal.directive.ts on lines 314..317

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

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

      cy.get(` ${ customCheckboxVal } ${ buttons.output }`).as('header')
        .should('to.contain', defaultVal);
Severity: Minor
Found in cypress/integration/demo_pages_spec.ts and 1 other location - About 30 mins to fix
cypress/integration/demo_pages_spec.ts on lines 480..482

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

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