packages/legend/src/colorbrewer.js

Summary

Maintainability
F
2 wks
Test Coverage

File colorbrewer.js has 416 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).
// Please see license at http://colorbrewer.org/export/LICENSE.txt
export default { YlGn: {
    3: ['#f7fcb9', '#addd8e', '#31a354'],
    4: ['#ffffcc', '#c2e699', '#78c679', '#238443'],
Severity: Minor
Found in packages/legend/src/colorbrewer.js - About 6 hrs to fix

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

    Paired: {
        3: ['#a6cee3', '#1f78b4', '#b2df8a'],
        4: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c'],
        5: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99'],
        6: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 1 other location - About 5 hrs to fix
    packages/legend/src/colorbrewer.js on lines 326..337

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

    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

    Set3: {
        3: ['#8dd3c7', '#ffffb3', '#bebada'],
        4: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072'],
        5: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3'],
        6: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 1 other location - About 5 hrs to fix
    packages/legend/src/colorbrewer.js on lines 280..291

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

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

    BrBG: {
        3: ['#d8b365', '#f5f5f5', '#5ab4ac'],
        4: ['#a6611a', '#dfc27d', '#80cdc1', '#018571'],
        5: ['#a6611a', '#dfc27d', '#f5f5f5', '#80cdc1', '#018571'],
        6: ['#8c510a', '#d8b365', '#f6e8c3', '#c7eae5', '#5ab4ac', '#01665e'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 165..175
    packages/legend/src/colorbrewer.js on lines 187..197
    packages/legend/src/colorbrewer.js on lines 198..208
    packages/legend/src/colorbrewer.js on lines 209..219
    packages/legend/src/colorbrewer.js on lines 220..230
    packages/legend/src/colorbrewer.js on lines 231..241
    packages/legend/src/colorbrewer.js on lines 242..252
    packages/legend/src/colorbrewer.js on lines 253..263

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

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

    RdGy: {
        3: ['#ef8a62', '#ffffff', '#999999'],
        4: ['#ca0020', '#f4a582', '#bababa', '#404040'],
        5: ['#ca0020', '#f4a582', '#ffffff', '#bababa', '#404040'],
        6: ['#b2182b', '#ef8a62', '#fddbc7', '#e0e0e0', '#999999', '#4d4d4d'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 165..175
    packages/legend/src/colorbrewer.js on lines 176..186
    packages/legend/src/colorbrewer.js on lines 187..197
    packages/legend/src/colorbrewer.js on lines 198..208
    packages/legend/src/colorbrewer.js on lines 209..219
    packages/legend/src/colorbrewer.js on lines 231..241
    packages/legend/src/colorbrewer.js on lines 242..252
    packages/legend/src/colorbrewer.js on lines 253..263

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

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

    PuOr: {
        3: ['#f1a340', '#f7f7f7', '#998ec3'],
        4: ['#e66101', '#fdb863', '#b2abd2', '#5e3c99'],
        5: ['#e66101', '#fdb863', '#f7f7f7', '#b2abd2', '#5e3c99'],
        6: ['#b35806', '#f1a340', '#fee0b6', '#d8daeb', '#998ec3', '#542788'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 176..186
    packages/legend/src/colorbrewer.js on lines 187..197
    packages/legend/src/colorbrewer.js on lines 198..208
    packages/legend/src/colorbrewer.js on lines 209..219
    packages/legend/src/colorbrewer.js on lines 220..230
    packages/legend/src/colorbrewer.js on lines 231..241
    packages/legend/src/colorbrewer.js on lines 242..252
    packages/legend/src/colorbrewer.js on lines 253..263

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

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

    PRGn: {
        3: ['#af8dc3', '#f7f7f7', '#7fbf7b'],
        4: ['#7b3294', '#c2a5cf', '#a6dba0', '#008837'],
        5: ['#7b3294', '#c2a5cf', '#f7f7f7', '#a6dba0', '#008837'],
        6: ['#762a83', '#af8dc3', '#e7d4e8', '#d9f0d3', '#7fbf7b', '#1b7837'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 165..175
    packages/legend/src/colorbrewer.js on lines 176..186
    packages/legend/src/colorbrewer.js on lines 198..208
    packages/legend/src/colorbrewer.js on lines 209..219
    packages/legend/src/colorbrewer.js on lines 220..230
    packages/legend/src/colorbrewer.js on lines 231..241
    packages/legend/src/colorbrewer.js on lines 242..252
    packages/legend/src/colorbrewer.js on lines 253..263

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

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

    PiYG: {
        3: ['#e9a3c9', '#f7f7f7', '#a1d76a'],
        4: ['#d01c8b', '#f1b6da', '#b8e186', '#4dac26'],
        5: ['#d01c8b', '#f1b6da', '#f7f7f7', '#b8e186', '#4dac26'],
        6: ['#c51b7d', '#e9a3c9', '#fde0ef', '#e6f5d0', '#a1d76a', '#4d9221'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 165..175
    packages/legend/src/colorbrewer.js on lines 176..186
    packages/legend/src/colorbrewer.js on lines 187..197
    packages/legend/src/colorbrewer.js on lines 209..219
    packages/legend/src/colorbrewer.js on lines 220..230
    packages/legend/src/colorbrewer.js on lines 231..241
    packages/legend/src/colorbrewer.js on lines 242..252
    packages/legend/src/colorbrewer.js on lines 253..263

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

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

    RdBu: {
        3: ['#ef8a62', '#f7f7f7', '#67a9cf'],
        4: ['#ca0020', '#f4a582', '#92c5de', '#0571b0'],
        5: ['#ca0020', '#f4a582', '#f7f7f7', '#92c5de', '#0571b0'],
        6: ['#b2182b', '#ef8a62', '#fddbc7', '#d1e5f0', '#67a9cf', '#2166ac'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 165..175
    packages/legend/src/colorbrewer.js on lines 176..186
    packages/legend/src/colorbrewer.js on lines 187..197
    packages/legend/src/colorbrewer.js on lines 198..208
    packages/legend/src/colorbrewer.js on lines 220..230
    packages/legend/src/colorbrewer.js on lines 231..241
    packages/legend/src/colorbrewer.js on lines 242..252
    packages/legend/src/colorbrewer.js on lines 253..263

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

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

    RdYlGn: {
        3: ['#fc8d59', '#ffffbf', '#91cf60'],
        4: ['#d7191c', '#fdae61', '#a6d96a', '#1a9641'],
        5: ['#d7191c', '#fdae61', '#ffffbf', '#a6d96a', '#1a9641'],
        6: ['#d73027', '#fc8d59', '#fee08b', '#d9ef8b', '#91cf60', '#1a9850'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 165..175
    packages/legend/src/colorbrewer.js on lines 176..186
    packages/legend/src/colorbrewer.js on lines 187..197
    packages/legend/src/colorbrewer.js on lines 198..208
    packages/legend/src/colorbrewer.js on lines 209..219
    packages/legend/src/colorbrewer.js on lines 220..230
    packages/legend/src/colorbrewer.js on lines 231..241
    packages/legend/src/colorbrewer.js on lines 242..252

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

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

    RdYlBu: {
        3: ['#fc8d59', '#ffffbf', '#91bfdb'],
        4: ['#d7191c', '#fdae61', '#abd9e9', '#2c7bb6'],
        5: ['#d7191c', '#fdae61', '#ffffbf', '#abd9e9', '#2c7bb6'],
        6: ['#d73027', '#fc8d59', '#fee090', '#e0f3f8', '#91bfdb', '#4575b4'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 165..175
    packages/legend/src/colorbrewer.js on lines 176..186
    packages/legend/src/colorbrewer.js on lines 187..197
    packages/legend/src/colorbrewer.js on lines 198..208
    packages/legend/src/colorbrewer.js on lines 209..219
    packages/legend/src/colorbrewer.js on lines 220..230
    packages/legend/src/colorbrewer.js on lines 242..252
    packages/legend/src/colorbrewer.js on lines 253..263

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

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

    Spectral: {
        3: ['#fc8d59', '#ffffbf', '#99d594'],
        4: ['#d7191c', '#fdae61', '#abdda4', '#2b83ba'],
        5: ['#d7191c', '#fdae61', '#ffffbf', '#abdda4', '#2b83ba'],
        6: ['#d53e4f', '#fc8d59', '#fee08b', '#e6f598', '#99d594', '#3288bd'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 8 other locations - About 4 hrs to fix
    packages/legend/src/colorbrewer.js on lines 165..175
    packages/legend/src/colorbrewer.js on lines 176..186
    packages/legend/src/colorbrewer.js on lines 187..197
    packages/legend/src/colorbrewer.js on lines 198..208
    packages/legend/src/colorbrewer.js on lines 209..219
    packages/legend/src/colorbrewer.js on lines 220..230
    packages/legend/src/colorbrewer.js on lines 231..241
    packages/legend/src/colorbrewer.js on lines 253..263

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

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

    BuGn: {
        3: ['#e5f5f9', '#99d8c9', '#2ca25f'],
        4: ['#edf8fb', '#b2e2e2', '#66c2a4', '#238b45'],
        5: ['#edf8fb', '#b2e2e2', '#66c2a4', '#2ca25f', '#006d2c'],
        6: ['#edf8fb', '#ccece6', '#99d8c9', '#66c2a4', '#2ca25f', '#006d2c'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    BuPu: {
        3: ['#e0ecf4', '#9ebcda', '#8856a7'],
        4: ['#edf8fb', '#b3cde3', '#8c96c6', '#88419d'],
        5: ['#edf8fb', '#b3cde3', '#8c96c6', '#8856a7', '#810f7c'],
        6: ['#edf8fb', '#bfd3e6', '#9ebcda', '#8c96c6', '#8856a7', '#810f7c'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    RdPu_reverse: {
        3: ['#c51b8a', '#fa9fb5', '#fde0dd'],
        4: ['#ae017e', '#f768a1', '#fbb4b9', '#feebe2'],
        5: ['#7a0177', '#c51b8a', '#f768a1', '#fbb4b9', '#feebe2'],
        6: ['#7a0177', '#c51b8a', '#f768a1', '#fa9fb5', '#fcc5c0', '#feebe2'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    PuRd_reverse: {
        3: ['#dd1c77', '#c994c7', '#e7e1ef'],
        4: ['#ce1256', '#df65b0', '#d7b5d8', '#f1eef6'],
        5: ['#980043', '#dd1c77', '#df65b0', '#d7b5d8', '#f1eef6'],
        6: ['#980043', '#dd1c77', '#df65b0', '#c994c7', '#d4b9da', '#f1eef6'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Reds: {
        3: ['#fee0d2', '#fc9272', '#de2d26'],
        4: ['#fee5d9', '#fcae91', '#fb6a4a', '#cb181d'],
        5: ['#fee5d9', '#fcae91', '#fb6a4a', '#de2d26', '#a50f15'],
        6: ['#fee5d9', '#fcbba1', '#fc9272', '#fb6a4a', '#de2d26', '#a50f15'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Greens_reverse: {
        3: ['#31a354', '#a1d99b', '#e5f5e0'],
        4: ['#238b45', '#74c476', '#bae4b3', '#edf8e9'],
        5: ['#006d2c', '#31a354', '#74c476', '#bae4b3', '#edf8e9'],
        6: ['#006d2c', '#31a354', '#74c476', '#a1d99b', '#c7e9c0', '#edf8e9'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    OrRd: {
        3: ['#fee8c8', '#fdbb84', '#e34a33'],
        4: ['#fef0d9', '#fdcc8a', '#fc8d59', '#d7301f'],
        5: ['#fef0d9', '#fdcc8a', '#fc8d59', '#e34a33', '#b30000'],
        6: ['#fef0d9', '#fdd49e', '#fdbb84', '#fc8d59', '#e34a33', '#b30000'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Pastel1: {
        3: ['#fbb4ae', '#b3cde3', '#ccebc5'],
        4: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4'],
        5: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6'],
        6: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Greys: {
        3: ['#f0f0f0', '#bdbdbd', '#636363'],
        4: ['#f7f7f7', '#cccccc', '#969696', '#525252'],
        5: ['#f7f7f7', '#cccccc', '#969696', '#636363', '#252525'],
        6: ['#f7f7f7', '#d9d9d9', '#bdbdbd', '#969696', '#636363', '#252525'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Set1: {
        3: ['#e41a1c', '#377eb8', '#4daf4a'],
        4: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3'],
        5: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00'],
        6: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Blues: {
        3: ['#deebf7', '#9ecae1', '#3182bd'],
        4: ['#eff3ff', '#bdd7e7', '#6baed6', '#2171b5'],
        5: ['#eff3ff', '#bdd7e7', '#6baed6', '#3182bd', '#08519c'],
        6: ['#eff3ff', '#c6dbef', '#9ecae1', '#6baed6', '#3182bd', '#08519c'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Greens: {
        3: ['#e5f5e0', '#a1d99b', '#31a354'],
        4: ['#edf8e9', '#bae4b3', '#74c476', '#238b45'],
        5: ['#edf8e9', '#bae4b3', '#74c476', '#31a354', '#006d2c'],
        6: ['#edf8e9', '#c7e9c0', '#a1d99b', '#74c476', '#31a354', '#006d2c'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Oranges: {
        3: ['#fee6ce', '#fdae6b', '#e6550d'],
        4: ['#feedde', '#fdbe85', '#fd8d3c', '#d94701'],
        5: ['#feedde', '#fdbe85', '#fd8d3c', '#e6550d', '#a63603'],
        6: ['#feedde', '#fdd0a2', '#fdae6b', '#fd8d3c', '#e6550d', '#a63603'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Reds_reverse: {
        3: ['#de2d26', '#fc9272', '#fee0d2'],
        4: ['#cb181d', '#fb6a4a', '#fcae91', '#fee5d9'],
        5: ['#a50f15', '#de2d26', '#fb6a4a', '#fcae91', '#fee5d9'],
        6: ['#a50f15', '#de2d26', '#fb6a4a', '#fc9272', '#fcbba1', '#fee5d9'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Blues_reverse: {
        3: ['#3182bd', '#9ecae1', '#deebf7'],
        4: ['#2171b5', '#6baed6', '#bdd7e7', '#eff3ff'],
        5: ['#08519c', '#3182bd', '#6baed6', '#bdd7e7', '#eff3ff'],
        6: ['#08519c', '#3182bd', '#6baed6', '#9ecae1', '#c6dbef', '#eff3ff'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    PuBu: {
        3: ['#ece7f2', '#a6bddb', '#2b8cbe'],
        4: ['#f1eef6', '#bdc9e1', '#74a9cf', '#0570b0'],
        5: ['#f1eef6', '#bdc9e1', '#74a9cf', '#2b8cbe', '#045a8d'],
        6: ['#f1eef6', '#d0d1e6', '#a6bddb', '#74a9cf', '#2b8cbe', '#045a8d'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    RdPu: {
        3: ['#fde0dd', '#fa9fb5', '#c51b8a'],
        4: ['#feebe2', '#fbb4b9', '#f768a1', '#ae017e'],
        5: ['#feebe2', '#fbb4b9', '#f768a1', '#c51b8a', '#7a0177'],
        6: ['#feebe2', '#fcc5c0', '#fa9fb5', '#f768a1', '#c51b8a', '#7a0177'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    YlOrBr: {
        3: ['#fff7bc', '#fec44f', '#d95f0e'],
        4: ['#ffffd4', '#fed98e', '#fe9929', '#cc4c02'],
        5: ['#ffffd4', '#fed98e', '#fe9929', '#d95f0e', '#993404'],
        6: ['#ffffd4', '#fee391', '#fec44f', '#fe9929', '#d95f0e', '#993404'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Greys_reverse: {
        3: ['#636363', '#bdbdbd', '#f0f0f0'],
        4: ['#525252', '#969696', '#cccccc', '#f7f7f7'],
        5: ['#252525', '#636363', '#969696', '#cccccc', '#f7f7f7'],
        6: ['#252525', '#636363', '#969696', '#bdbdbd', '#d9d9d9', '#f7f7f7'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409

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

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

    YlOrRd: {
        3: ['#ffeda0', '#feb24c', '#f03b20'],
        4: ['#ffffb2', '#fecc5c', '#fd8d3c', '#e31a1c'],
        5: ['#ffffb2', '#fecc5c', '#fd8d3c', '#f03b20', '#bd0026'],
        6: ['#ffffb2', '#fed976', '#feb24c', '#fd8d3c', '#f03b20', '#bd0026'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    BuPu_reverse: {
        3: ['#8856a7', '#9ebcda', '#e0ecf4'],
        4: ['#88419d', '#8c96c6', '#b3cde3', '#edf8fb'],
        5: ['#810f7c', '#8856a7', '#8c96c6', '#b3cde3', '#edf8fb'],
        6: ['#810f7c', '#8856a7', '#8c96c6', '#9ebcda', '#bfd3e6', '#edf8fb'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    PuRd: {
        3: ['#e7e1ef', '#c994c7', '#dd1c77'],
        4: ['#f1eef6', '#d7b5d8', '#df65b0', '#ce1256'],
        5: ['#f1eef6', '#d7b5d8', '#df65b0', '#dd1c77', '#980043'],
        6: ['#f1eef6', '#d4b9da', '#c994c7', '#df65b0', '#dd1c77', '#980043'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    YlGnBu: {
        3: ['#edf8b1', '#7fcdbb', '#2c7fb8'],
        4: ['#ffffcc', '#a1dab4', '#41b6c4', '#225ea8'],
        5: ['#ffffcc', '#a1dab4', '#41b6c4', '#2c7fb8', '#253494'],
        6: ['#ffffcc', '#c7e9b4', '#7fcdbb', '#41b6c4', '#2c7fb8', '#253494'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    GnBu: {
        3: ['#e0f3db', '#a8ddb5', '#43a2ca'],
        4: ['#f0f9e8', '#bae4bc', '#7bccc4', '#2b8cbe'],
        5: ['#f0f9e8', '#bae4bc', '#7bccc4', '#43a2ca', '#0868ac'],
        6: ['#f0f9e8', '#ccebc5', '#a8ddb5', '#7bccc4', '#43a2ca', '#0868ac'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    export default { YlGn: {
        3: ['#f7fcb9', '#addd8e', '#31a354'],
        4: ['#ffffcc', '#c2e699', '#78c679', '#238443'],
        5: ['#ffffcc', '#c2e699', '#78c679', '#31a354', '#006837'],
        6: ['#ffffcc', '#d9f0a3', '#addd8e', '#78c679', '#31a354', '#006837'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    PuBuGn: {
        3: ['#ece2f0', '#a6bddb', '#1c9099'],
        4: ['#f6eff7', '#bdc9e1', '#67a9cf', '#02818a'],
        5: ['#f6eff7', '#bdc9e1', '#67a9cf', '#1c9099', '#016c59'],
        6: ['#f6eff7', '#d0d1e6', '#a6bddb', '#67a9cf', '#1c9099', '#016c59'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    Purples: {
        3: ['#efedf5', '#bcbddc', '#756bb1'],
        4: ['#f2f0f7', '#cbc9e2', '#9e9ac8', '#6a51a3'],
        5: ['#f2f0f7', '#cbc9e2', '#9e9ac8', '#756bb1', '#54278f'],
        6: ['#f2f0f7', '#dadaeb', '#bcbddc', '#9e9ac8', '#756bb1', '#54278f'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    YlOrBr_reverse: {
        3: ['#d95f0e', '#fec44f', '#fff7bc'],
        4: ['#cc4c02', '#fe9929', '#fed98e', '#ffffd4'],
        5: ['#993404', '#d95f0e', '#fe9929', '#fed98e', '#ffffd4'],
        6: ['#993404', '#d95f0e', '#fe9929', '#fec44f', '#fee391', '#ffffd4'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 356..364
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

    YlGn_reverse: {
        3: ['#31a354', '#addd8e', '#f7fcb9'],
        4: ['#238443', '#78c679', '#c2e699', '#ffffcc'],
        5: ['#006837', '#31a354', '#78c679', '#c2e699', '#ffffcc'],
        6: ['#006837', '#31a354', '#78c679', '#addd8e', '#d9f0a3', '#ffffcc'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 28 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 3..11
    packages/legend/src/colorbrewer.js on lines 12..20
    packages/legend/src/colorbrewer.js on lines 21..29
    packages/legend/src/colorbrewer.js on lines 30..38
    packages/legend/src/colorbrewer.js on lines 39..47
    packages/legend/src/colorbrewer.js on lines 48..56
    packages/legend/src/colorbrewer.js on lines 57..65
    packages/legend/src/colorbrewer.js on lines 66..74
    packages/legend/src/colorbrewer.js on lines 75..83
    packages/legend/src/colorbrewer.js on lines 84..92
    packages/legend/src/colorbrewer.js on lines 93..101
    packages/legend/src/colorbrewer.js on lines 102..110
    packages/legend/src/colorbrewer.js on lines 111..119
    packages/legend/src/colorbrewer.js on lines 120..128
    packages/legend/src/colorbrewer.js on lines 129..137
    packages/legend/src/colorbrewer.js on lines 138..146
    packages/legend/src/colorbrewer.js on lines 147..155
    packages/legend/src/colorbrewer.js on lines 156..164
    packages/legend/src/colorbrewer.js on lines 292..300
    packages/legend/src/colorbrewer.js on lines 309..317
    packages/legend/src/colorbrewer.js on lines 338..346
    packages/legend/src/colorbrewer.js on lines 347..355
    packages/legend/src/colorbrewer.js on lines 365..373
    packages/legend/src/colorbrewer.js on lines 374..382
    packages/legend/src/colorbrewer.js on lines 383..391
    packages/legend/src/colorbrewer.js on lines 392..400
    packages/legend/src/colorbrewer.js on lines 401..409
    packages/legend/src/colorbrewer.js on lines 410..418

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

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

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

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

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

    Refactorings

    Further Reading

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

    Set2: {
        3: ['#66c2a5', '#fc8d62', '#8da0cb'],
        4: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3'],
        5: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854'],
        6: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 3 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 264..271
    packages/legend/src/colorbrewer.js on lines 272..279
    packages/legend/src/colorbrewer.js on lines 301..308

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

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

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

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

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

    Refactorings

    Further Reading

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

    Pastel2: {
        3: ['#b3e2cd', '#fdcdac', '#cbd5e8'],
        4: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4'],
        5: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9'],
        6: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 3 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 264..271
    packages/legend/src/colorbrewer.js on lines 272..279
    packages/legend/src/colorbrewer.js on lines 318..325

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

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

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

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

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

    Refactorings

    Further Reading

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

    Dark2: {
        3: ['#1b9e77', '#d95f02', '#7570b3'],
        4: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a'],
        5: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e'],
        6: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 3 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 264..271
    packages/legend/src/colorbrewer.js on lines 301..308
    packages/legend/src/colorbrewer.js on lines 318..325

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

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

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

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

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

    Refactorings

    Further Reading

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

    Accent: {
        3: ['#7fc97f', '#beaed4', '#fdc086'],
        4: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99'],
        5: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0'],
        6: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f'],
    Severity: Major
    Found in packages/legend/src/colorbrewer.js and 3 other locations - About 2 hrs to fix
    packages/legend/src/colorbrewer.js on lines 272..279
    packages/legend/src/colorbrewer.js on lines 301..308
    packages/legend/src/colorbrewer.js on lines 318..325

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

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status