daavelino/vulnerability-catalog

View on GitHub

Showing 548 of 888 total issues

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

    _chart.colOrdering = function (_) {
        if (!arguments.length) {
            return _colOrdering;
        }
        _colOrdering = _;
Severity: Major
Found in base/catalog/static/js/dc.js and 32 other locations - About 30 mins to fix
base/catalog/static/js/dc.js on lines 1650..1656
base/catalog/static/js/dc.js on lines 1921..1927
base/catalog/static/js/dc.js on lines 1958..1964
base/catalog/static/js/dc.js on lines 1993..1999
base/catalog/static/js/dc.js on lines 2588..2594
base/catalog/static/js/dc.js on lines 3675..3681
base/catalog/static/js/dc.js on lines 3699..3705
base/catalog/static/js/dc.js on lines 3865..3871
base/catalog/static/js/dc.js on lines 4095..4101
base/catalog/static/js/dc.js on lines 4231..4237
base/catalog/static/js/dc.js on lines 4392..4398
base/catalog/static/js/dc.js on lines 4629..4635
base/catalog/static/js/dc.js on lines 4714..4720
base/catalog/static/js/dc.js on lines 4739..4745
base/catalog/static/js/dc.js on lines 4896..4902
base/catalog/static/js/dc.js on lines 5373..5379
base/catalog/static/js/dc.js on lines 5771..5777
base/catalog/static/js/dc.js on lines 5828..5834
base/catalog/static/js/dc.js on lines 5864..5870
base/catalog/static/js/dc.js on lines 6083..6089
base/catalog/static/js/dc.js on lines 6484..6490
base/catalog/static/js/dc.js on lines 6934..6940
base/catalog/static/js/dc.js on lines 7188..7194
base/catalog/static/js/dc.js on lines 8675..8681
base/catalog/static/js/dc.js on lines 8833..8839
base/catalog/static/js/dc.js on lines 8971..8977
base/catalog/static/js/dc.js on lines 9624..9630
base/catalog/static/js/dc.js on lines 9857..9863
base/catalog/static/js/dc.js on lines 9946..9952
base/catalog/static/js/dc.js on lines 10243..10249
base/catalog/static/js/dc.js on lines 10847..10853
base/catalog/static/js/dc.js on lines 11120..11127

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

    _chart.removeFilterHandler = function (removeFilterHandler) {
        if (!arguments.length) {
            return _removeFilterHandler;
        }
        _removeFilterHandler = removeFilterHandler;
Severity: Major
Found in base/catalog/static/js/dc.js and 32 other locations - About 30 mins to fix
base/catalog/static/js/dc.js on lines 1650..1656
base/catalog/static/js/dc.js on lines 1958..1964
base/catalog/static/js/dc.js on lines 1993..1999
base/catalog/static/js/dc.js on lines 2588..2594
base/catalog/static/js/dc.js on lines 3675..3681
base/catalog/static/js/dc.js on lines 3699..3705
base/catalog/static/js/dc.js on lines 3865..3871
base/catalog/static/js/dc.js on lines 4095..4101
base/catalog/static/js/dc.js on lines 4231..4237
base/catalog/static/js/dc.js on lines 4392..4398
base/catalog/static/js/dc.js on lines 4629..4635
base/catalog/static/js/dc.js on lines 4714..4720
base/catalog/static/js/dc.js on lines 4739..4745
base/catalog/static/js/dc.js on lines 4896..4902
base/catalog/static/js/dc.js on lines 5373..5379
base/catalog/static/js/dc.js on lines 5771..5777
base/catalog/static/js/dc.js on lines 5828..5834
base/catalog/static/js/dc.js on lines 5864..5870
base/catalog/static/js/dc.js on lines 6083..6089
base/catalog/static/js/dc.js on lines 6484..6490
base/catalog/static/js/dc.js on lines 6934..6940
base/catalog/static/js/dc.js on lines 7188..7194
base/catalog/static/js/dc.js on lines 8675..8681
base/catalog/static/js/dc.js on lines 8833..8839
base/catalog/static/js/dc.js on lines 8971..8977
base/catalog/static/js/dc.js on lines 9624..9630
base/catalog/static/js/dc.js on lines 9857..9863
base/catalog/static/js/dc.js on lines 9946..9952
base/catalog/static/js/dc.js on lines 10040..10046
base/catalog/static/js/dc.js on lines 10243..10249
base/catalog/static/js/dc.js on lines 10847..10853
base/catalog/static/js/dc.js on lines 11120..11127

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

    _chart.maxBubbleRelativeSize = function (relativeSize) {
        if (!arguments.length) {
            return _maxBubbleRelativeSize;
        }
        _maxBubbleRelativeSize = relativeSize;
Severity: Major
Found in base/catalog/static/js/dc.js and 32 other locations - About 30 mins to fix
base/catalog/static/js/dc.js on lines 1650..1656
base/catalog/static/js/dc.js on lines 1921..1927
base/catalog/static/js/dc.js on lines 1958..1964
base/catalog/static/js/dc.js on lines 1993..1999
base/catalog/static/js/dc.js on lines 2588..2594
base/catalog/static/js/dc.js on lines 3675..3681
base/catalog/static/js/dc.js on lines 3699..3705
base/catalog/static/js/dc.js on lines 3865..3871
base/catalog/static/js/dc.js on lines 4095..4101
base/catalog/static/js/dc.js on lines 4231..4237
base/catalog/static/js/dc.js on lines 4392..4398
base/catalog/static/js/dc.js on lines 4629..4635
base/catalog/static/js/dc.js on lines 4714..4720
base/catalog/static/js/dc.js on lines 4739..4745
base/catalog/static/js/dc.js on lines 5373..5379
base/catalog/static/js/dc.js on lines 5771..5777
base/catalog/static/js/dc.js on lines 5828..5834
base/catalog/static/js/dc.js on lines 5864..5870
base/catalog/static/js/dc.js on lines 6083..6089
base/catalog/static/js/dc.js on lines 6484..6490
base/catalog/static/js/dc.js on lines 6934..6940
base/catalog/static/js/dc.js on lines 7188..7194
base/catalog/static/js/dc.js on lines 8675..8681
base/catalog/static/js/dc.js on lines 8833..8839
base/catalog/static/js/dc.js on lines 8971..8977
base/catalog/static/js/dc.js on lines 9624..9630
base/catalog/static/js/dc.js on lines 9857..9863
base/catalog/static/js/dc.js on lines 9946..9952
base/catalog/static/js/dc.js on lines 10040..10046
base/catalog/static/js/dc.js on lines 10243..10249
base/catalog/static/js/dc.js on lines 10847..10853
base/catalog/static/js/dc.js on lines 11120..11127

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

    _chart.centerBar = function (centerBar) {
        if (!arguments.length) {
            return _centerBar;
        }
        _centerBar = centerBar;
Severity: Major
Found in base/catalog/static/js/dc.js and 32 other locations - About 30 mins to fix
base/catalog/static/js/dc.js on lines 1650..1656
base/catalog/static/js/dc.js on lines 1921..1927
base/catalog/static/js/dc.js on lines 1958..1964
base/catalog/static/js/dc.js on lines 1993..1999
base/catalog/static/js/dc.js on lines 2588..2594
base/catalog/static/js/dc.js on lines 3675..3681
base/catalog/static/js/dc.js on lines 3699..3705
base/catalog/static/js/dc.js on lines 3865..3871
base/catalog/static/js/dc.js on lines 4095..4101
base/catalog/static/js/dc.js on lines 4231..4237
base/catalog/static/js/dc.js on lines 4392..4398
base/catalog/static/js/dc.js on lines 4629..4635
base/catalog/static/js/dc.js on lines 4714..4720
base/catalog/static/js/dc.js on lines 4739..4745
base/catalog/static/js/dc.js on lines 4896..4902
base/catalog/static/js/dc.js on lines 5373..5379
base/catalog/static/js/dc.js on lines 5828..5834
base/catalog/static/js/dc.js on lines 5864..5870
base/catalog/static/js/dc.js on lines 6083..6089
base/catalog/static/js/dc.js on lines 6484..6490
base/catalog/static/js/dc.js on lines 6934..6940
base/catalog/static/js/dc.js on lines 7188..7194
base/catalog/static/js/dc.js on lines 8675..8681
base/catalog/static/js/dc.js on lines 8833..8839
base/catalog/static/js/dc.js on lines 8971..8977
base/catalog/static/js/dc.js on lines 9624..9630
base/catalog/static/js/dc.js on lines 9857..9863
base/catalog/static/js/dc.js on lines 9946..9952
base/catalog/static/js/dc.js on lines 10040..10046
base/catalog/static/js/dc.js on lines 10243..10249
base/catalog/static/js/dc.js on lines 10847..10853
base/catalog/static/js/dc.js on lines 11120..11127

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

    _chart.gap = function (gap) {
        if (!arguments.length) {
            return _gap;
        }
        _gap = gap;
Severity: Major
Found in base/catalog/static/js/dc.js and 32 other locations - About 30 mins to fix
base/catalog/static/js/dc.js on lines 1650..1656
base/catalog/static/js/dc.js on lines 1921..1927
base/catalog/static/js/dc.js on lines 1958..1964
base/catalog/static/js/dc.js on lines 1993..1999
base/catalog/static/js/dc.js on lines 2588..2594
base/catalog/static/js/dc.js on lines 3675..3681
base/catalog/static/js/dc.js on lines 3699..3705
base/catalog/static/js/dc.js on lines 3865..3871
base/catalog/static/js/dc.js on lines 4095..4101
base/catalog/static/js/dc.js on lines 4231..4237
base/catalog/static/js/dc.js on lines 4392..4398
base/catalog/static/js/dc.js on lines 4629..4635
base/catalog/static/js/dc.js on lines 4714..4720
base/catalog/static/js/dc.js on lines 4739..4745
base/catalog/static/js/dc.js on lines 4896..4902
base/catalog/static/js/dc.js on lines 5373..5379
base/catalog/static/js/dc.js on lines 5771..5777
base/catalog/static/js/dc.js on lines 5864..5870
base/catalog/static/js/dc.js on lines 6083..6089
base/catalog/static/js/dc.js on lines 6484..6490
base/catalog/static/js/dc.js on lines 6934..6940
base/catalog/static/js/dc.js on lines 7188..7194
base/catalog/static/js/dc.js on lines 8675..8681
base/catalog/static/js/dc.js on lines 8833..8839
base/catalog/static/js/dc.js on lines 8971..8977
base/catalog/static/js/dc.js on lines 9624..9630
base/catalog/static/js/dc.js on lines 9857..9863
base/catalog/static/js/dc.js on lines 9946..9952
base/catalog/static/js/dc.js on lines 10040..10046
base/catalog/static/js/dc.js on lines 10243..10249
base/catalog/static/js/dc.js on lines 10847..10853
base/catalog/static/js/dc.js on lines 11120..11127

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

    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
Severity: Minor
Found in base/catalog/static/js/d3.v3.js and 2 other locations - About 30 mins to fix
base/catalog/static/js/d3.v3.js on lines 2996..2996
base/catalog/static/js/d3.v3.js on lines 8326..8326

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

    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];
Severity: Minor
Found in base/catalog/static/js/d3.v3.js and 2 other locations - About 30 mins to fix
base/catalog/static/js/d3.v3.js on lines 2982..2982
base/catalog/static/js/d3.v3.js on lines 2996..2996

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

            var dx = size[0], dy = size[1], cx = center0 ? center0[0] : dx / 2, cy = center0 ? center0[1] : dy / 2, i = d3.interpolateZoom([ (cx - view.x) / view.k, (cy - view.y) / view.k, dx / view.k ], [ (cx - view1.x) / view1.k, (cy - view1.y) / view1.k, dx / view1.k ]);
Severity: Minor
Found in base/catalog/static/js/d3.v3.js and 1 other location - About 30 mins to fix
base/catalog/static/js/d3.v3.js on lines 1335..1335

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