rubycentral/cfp-app

View on GitHub

Showing 126 of 126 total issues

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

    PuBuGn: {
      type: 'sequential',
      cbf: 42,
      3: ['ece2f0', 'a6bddb', '1c9099'],
      4: ['f6eff7', 'bdc9e1', '67a9cf', '02818a'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    Set1: {
      type: 'qualitative',
      cbf: 0,
      3: ['e41a1c', '377eb8', '4daf4a'],
      4: ['e41a1c', '377eb8', '4daf4a', '984ea3'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407

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

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

  function onProposalTrackChange(ev) {
    removePopover('track')
    $trackSelect = $(this);
    var trackId = $trackSelect.val();
    var url = $trackSelect.data('targetPath');
Severity: Major
Found in app/assets/javascripts/staff/program/selection.js and 1 other location - About 3 hrs to fix
app/assets/javascripts/staff/program/selection.js on lines 21..31

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

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

  function onProposalFormatChange(ev) {
    removePopover('format')
    $formatSelect = $(this);
    var formatId = $formatSelect.val();

Severity: Major
Found in app/assets/javascripts/staff/program/selection.js and 1 other location - About 3 hrs to fix
app/assets/javascripts/staff/program/selection.js on lines 10..19

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

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

    PuBu: {
      type: 'sequential',
      cbf: 42,
      3: ['ece7f2', 'a6bddb', '2b8cbe'],
      4: ['f1eef6', 'bdc9e1', '74a9cf', '0570b0'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    Purples: {
      type: 'sequential',
      cbf: 42,
      3: ['efedf5', 'bcbddc', '756bb1'],
      4: ['f2f0f7', 'cbc9e2', '9e9ac8', '6a51a3'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    PuRd: {
      type: 'sequential',
      cbf: 42,
      3: ['e7e1ef', 'c994c7', 'dd1c77'],
      4: ['f1eef6', 'd7b5d8', 'df65b0', 'ce1256'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    Reds: {
      type: 'sequential',
      cbf: 42,
      3: ['fee0d2', 'fc9272', 'de2d26'],
      4: ['fee5d9', 'fcae91', 'fb6a4a', 'cb181d'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    BuGn: {
      type: 'sequential',
      cbf: 42,
      3: ['e5f5f9', '99d8c9', '2ca25f'],
      4: ['edf8fb', 'b2e2e2', '66c2a4', '238b45'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    GnBu: {
      type: 'sequential',
      cbf: 42,
      3: ['e0f3db', 'a8ddb5', '43a2ca'],
      4: ['f0f9e8', 'bae4bc', '7bccc4', '2b8cbe'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    RdPu: {
      type: 'sequential',
      cbf: 42,
      3: ['fde0dd', 'fa9fb5', 'c51b8a'],
      4: ['feebe2', 'fbb4b9', 'f768a1', 'ae017e'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    YlOrBr: {
      type: 'sequential',
      cbf: 42,
      3: ['fff7bc', 'fec44f', 'd95f0e'],
      4: ['ffffd4', 'fed98e', 'fe9929', 'cc4c02'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    YlGn: {
      type: 'sequential',
      cbf: 42,
      3: ['f7fcb9', 'addd8e', '31a354'],
      4: ['ffffcc', 'c2e699', '78c679', '238443'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    Blues: {
      type: 'sequential',
      cbf: 42,
      3: ['deebf7', '9ecae1', '3182bd'],
      4: ['eff3ff', 'bdd7e7', '6baed6', '2171b5'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1174..1187
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

    Greys: {
      type: 'sequential',
      cbf: 42,
      3: ['f0f0f0', 'bdbdbd', '636363'],
      4: ['f7f7f7', 'cccccc', '969696', '525252'],
Severity: Major
Found in app/assets/javascripts/palette.js and 19 other locations - About 3 hrs to fix
app/assets/javascripts/palette.js on lines 936..949
app/assets/javascripts/palette.js on lines 950..963
app/assets/javascripts/palette.js on lines 964..977
app/assets/javascripts/palette.js on lines 978..991
app/assets/javascripts/palette.js on lines 992..1005
app/assets/javascripts/palette.js on lines 1006..1019
app/assets/javascripts/palette.js on lines 1020..1033
app/assets/javascripts/palette.js on lines 1034..1047
app/assets/javascripts/palette.js on lines 1048..1061
app/assets/javascripts/palette.js on lines 1062..1075
app/assets/javascripts/palette.js on lines 1076..1089
app/assets/javascripts/palette.js on lines 1090..1103
app/assets/javascripts/palette.js on lines 1104..1117
app/assets/javascripts/palette.js on lines 1118..1131
app/assets/javascripts/palette.js on lines 1132..1145
app/assets/javascripts/palette.js on lines 1146..1159
app/assets/javascripts/palette.js on lines 1160..1173
app/assets/javascripts/palette.js on lines 1394..1407
app/assets/javascripts/palette.js on lines 1420..1433

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

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

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

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

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

Refactorings

Further Reading

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

      {
        stateSaveParams: function () {
          var rows = $('[data-proposal-id]');
          var uuids = [];
          rows.each(function (i, row) {
Severity: Major
Found in app/assets/javascripts/staff/proposals.js and 1 other location - About 3 hrs to fix
app/assets/javascripts/staff/program/proposals.js on lines 5..15

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

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

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

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

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

Refactorings

Further Reading

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

    {
      stateSaveParams: function () {
        var rows = $('[data-proposal-id]');
        var uuids = [];
        rows.each(function (i, row) {
Severity: Major
Found in app/assets/javascripts/staff/program/proposals.js and 1 other location - About 3 hrs to fix
app/assets/javascripts/staff/proposals.js on lines 29..39

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

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

    const {
      dayViewing,
      startTime,
      endTime,
      ripTime,
Severity: Major
Found in app/javascript/components/Schedule/DayView.js and 1 other location - About 2 hrs to fix
app/javascript/components/Schedule/ScheduleColumn.js on lines 9..25

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

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

    const {
      height,
      room,
      startTime,
      ripTime,
Severity: Major
Found in app/javascript/components/Schedule/ScheduleColumn.js and 1 other location - About 2 hrs to fix
app/javascript/components/Schedule/DayView.js on lines 8..24

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

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: {
      type: 'qualitative',
      cbf: 3,
      3: ['66c2a5', 'fc8d62', '8da0cb'],
      4: ['66c2a5', 'fc8d62', '8da0cb', 'e78ac3'],
Severity: Major
Found in app/assets/javascripts/palette.js and 3 other locations - About 2 hrs to fix
app/assets/javascripts/palette.js on lines 1350..1361
app/assets/javascripts/palette.js on lines 1362..1373
app/assets/javascripts/palette.js on lines 1408..1419

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

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language