victor-valencia/bootstrap-iconpicker

View on GitHub

Showing 50 of 62 total issues

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

            {
                version: '2.1.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 3 other locations - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 198..407
src/js/iconset/iconset-octicon-all.js on lines 408..617
src/js/iconset/iconset-octicon-all.js on lines 828..1037

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

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

            {
                version: '3.4.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 1 other location - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 3525..3725

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

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

            {
                version: '3.4.1',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 1 other location - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 3324..3524

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

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

            {
                version: '2.2.1',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 6 other locations - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 1224..1411
src/js/iconset/iconset-octicon-all.js on lines 1600..1787
src/js/iconset/iconset-octicon-all.js on lines 1788..1975
src/js/iconset/iconset-octicon-all.js on lines 1976..2163
src/js/iconset/iconset-octicon-all.js on lines 2164..2351
src/js/iconset/iconset-octicon-all.js on lines 2352..2539

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

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

            {
                version: '2.2.2',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 6 other locations - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 1224..1411
src/js/iconset/iconset-octicon-all.js on lines 1412..1599
src/js/iconset/iconset-octicon-all.js on lines 1788..1975
src/js/iconset/iconset-octicon-all.js on lines 1976..2163
src/js/iconset/iconset-octicon-all.js on lines 2164..2351
src/js/iconset/iconset-octicon-all.js on lines 2352..2539

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

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

            {
                version: '2.3.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 6 other locations - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 1224..1411
src/js/iconset/iconset-octicon-all.js on lines 1412..1599
src/js/iconset/iconset-octicon-all.js on lines 1600..1787
src/js/iconset/iconset-octicon-all.js on lines 1788..1975
src/js/iconset/iconset-octicon-all.js on lines 2164..2351
src/js/iconset/iconset-octicon-all.js on lines 2352..2539

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

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

            {
                version: '2.4.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 6 other locations - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 1224..1411
src/js/iconset/iconset-octicon-all.js on lines 1412..1599
src/js/iconset/iconset-octicon-all.js on lines 1600..1787
src/js/iconset/iconset-octicon-all.js on lines 1788..1975
src/js/iconset/iconset-octicon-all.js on lines 1976..2163
src/js/iconset/iconset-octicon-all.js on lines 2352..2539

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

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

            {
                version: '2.4.1',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 6 other locations - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 1224..1411
src/js/iconset/iconset-octicon-all.js on lines 1412..1599
src/js/iconset/iconset-octicon-all.js on lines 1600..1787
src/js/iconset/iconset-octicon-all.js on lines 1788..1975
src/js/iconset/iconset-octicon-all.js on lines 1976..2163
src/js/iconset/iconset-octicon-all.js on lines 2164..2351

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

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

            {
                version: '2.2.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 6 other locations - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 1412..1599
src/js/iconset/iconset-octicon-all.js on lines 1600..1787
src/js/iconset/iconset-octicon-all.js on lines 1788..1975
src/js/iconset/iconset-octicon-all.js on lines 1976..2163
src/js/iconset/iconset-octicon-all.js on lines 2164..2351
src/js/iconset/iconset-octicon-all.js on lines 2352..2539

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

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

            {
                version: '2.2.3',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 6 other locations - About 1 day to fix
src/js/iconset/iconset-octicon-all.js on lines 1224..1411
src/js/iconset/iconset-octicon-all.js on lines 1412..1599
src/js/iconset/iconset-octicon-all.js on lines 1600..1787
src/js/iconset/iconset-octicon-all.js on lines 1976..2163
src/js/iconset/iconset-octicon-all.js on lines 2164..2351
src/js/iconset/iconset-octicon-all.js on lines 2352..2539

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

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

            {
                version: '4.2.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 5 other locations - About 7 hrs to fix
src/js/iconset/iconset-octicon-all.js on lines 4103..4280
src/js/iconset/iconset-octicon-all.js on lines 4281..4458
src/js/iconset/iconset-octicon-all.js on lines 4637..4814
src/js/iconset/iconset-octicon-all.js on lines 4815..4992
src/js/iconset/iconset-octicon-all.js on lines 4993..5170

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

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

            {
                version: '4.3.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 5 other locations - About 7 hrs to fix
src/js/iconset/iconset-octicon-all.js on lines 4103..4280
src/js/iconset/iconset-octicon-all.js on lines 4281..4458
src/js/iconset/iconset-octicon-all.js on lines 4459..4636
src/js/iconset/iconset-octicon-all.js on lines 4637..4814
src/js/iconset/iconset-octicon-all.js on lines 4993..5170

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

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

            {
                version: '4.1.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 5 other locations - About 7 hrs to fix
src/js/iconset/iconset-octicon-all.js on lines 4281..4458
src/js/iconset/iconset-octicon-all.js on lines 4459..4636
src/js/iconset/iconset-octicon-all.js on lines 4637..4814
src/js/iconset/iconset-octicon-all.js on lines 4815..4992
src/js/iconset/iconset-octicon-all.js on lines 4993..5170

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

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

            {
                version: '4.4.0',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 5 other locations - About 7 hrs to fix
src/js/iconset/iconset-octicon-all.js on lines 4103..4280
src/js/iconset/iconset-octicon-all.js on lines 4281..4458
src/js/iconset/iconset-octicon-all.js on lines 4459..4636
src/js/iconset/iconset-octicon-all.js on lines 4637..4814
src/js/iconset/iconset-octicon-all.js on lines 4815..4992

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

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

            {
                version: '4.1.1',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 5 other locations - About 7 hrs to fix
src/js/iconset/iconset-octicon-all.js on lines 4103..4280
src/js/iconset/iconset-octicon-all.js on lines 4459..4636
src/js/iconset/iconset-octicon-all.js on lines 4637..4814
src/js/iconset/iconset-octicon-all.js on lines 4815..4992
src/js/iconset/iconset-octicon-all.js on lines 4993..5170

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

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

            {
                version: '4.2.1',
                icons: [
                    '',
                    'alert',
Severity: Major
Found in src/js/iconset/iconset-octicon-all.js and 5 other locations - About 7 hrs to fix
src/js/iconset/iconset-octicon-all.js on lines 4103..4280
src/js/iconset/iconset-octicon-all.js on lines 4281..4458
src/js/iconset/iconset-octicon-all.js on lines 4459..4636
src/js/iconset/iconset-octicon-all.js on lines 4815..4992
src/js/iconset/iconset-octicon-all.js on lines 4993..5170

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

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

    Iconpicker.prototype.setHeader = function (value) {
        var header = this.options.table.find('thead');
        if (value === true) {
            header.show();
        }
Severity: Major
Found in src/js/bootstrap-iconpicker.js and 1 other location - About 2 hrs to fix
src/js/bootstrap-iconpicker.js on lines 356..365

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

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

    Iconpicker.prototype.setFooter = function (value) {
        var footer = this.options.table.find('tfoot');
        if (value === true) {
            footer.show();
        }
Severity: Major
Found in src/js/bootstrap-iconpicker.js and 1 other location - About 2 hrs to fix
src/js/bootstrap-iconpicker.js on lines 367..376

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

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

    Iconpicker.prototype.setLabelHeader = function (value) {
        this.options.labelHeader = value;
        this.updateLabels(this.options.page);
    };
Severity: Major
Found in src/js/bootstrap-iconpicker.js and 1 other location - About 1 hr to fix
src/js/bootstrap-iconpicker.js on lines 404..407

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

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

    Iconpicker.prototype.setLabelFooter = function (value) {
        this.options.labelFooter = value;
        this.updateLabels(this.options.page);
    };
Severity: Major
Found in src/js/bootstrap-iconpicker.js and 1 other location - About 1 hr to fix
src/js/bootstrap-iconpicker.js on lines 399..402

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

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