camdub/Internships

View on GitHub

Showing 387 of 584 total issues

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

    container: function(cont) {
        if (arguments.length == 0) {
            return this._plotCont;
        }
        this._plotCont = cont;
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svgplot.js and 2 other locations - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 89..95
public/javascripts/jquery.svg/jquery.svgplot.js on lines 124..130

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

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

        var height = (area[this.B] > 1 ? area[this.B] : availHeight * area[this.B]) - top;
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svgplot.js and 3 other locations - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 367..367
public/javascripts/jquery.svg/jquery.svggraph.js on lines 368..368
public/javascripts/jquery.svg/jquery.svgplot.js on lines 275..275

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

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

        var height = (area[this.B] > 1 ? area[this.B] : availHeight * area[this.B]) - top;
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 367..367
public/javascripts/jquery.svg/jquery.svgplot.js on lines 275..275
public/javascripts/jquery.svg/jquery.svgplot.js on lines 276..276

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

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

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

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

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

Refactorings

Further Reading

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

        var yBase = dims[this.Y] + ((horiz ? dims[this.H] : offset) + this.legend._sampleSize) / 2;
Severity: Minor
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svgplot.js on lines 431..431

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

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

        var width = (area[this.R] > 1 ? area[this.R] : availWidth * area[this.R]) - left;
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svgplot.js and 3 other locations - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 367..367
public/javascripts/jquery.svg/jquery.svggraph.js on lines 368..368
public/javascripts/jquery.svg/jquery.svgplot.js on lines 276..276

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

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

      if (this.pending_backstroke) {
        this.choice_destroy(this.pending_backstroke.down("a"));
        return this.clear_backstroke();
      } else {
        this.pending_backstroke = this.search_container.siblings("li.search-choice").last();
Severity: Minor
Found in public/javascripts/chosen/chosen.proto.js and 1 other location - About 40 mins to fix
public/javascripts/chosen/chosen.jquery.js on lines 810..816

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

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

        var gt = graph._wrapper.group(graph._chartCont, $.extend({class_: 'xAxisLabels',
            textAnchor: 'middle'}, axis._labelFormat));
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1073..1074
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1176..1177
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1286..1287

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

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

        case 9:
          if (this.results_showing && !this.is_multiple) {
            this.result_select(evt);
          }
          this.mouse_on_container = false;
Severity: Minor
Found in public/javascripts/chosen/chosen.jquery.js and 1 other location - About 40 mins to fix
public/javascripts/chosen/chosen.proto.js on lines 851..856

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

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

        case 9:
          if (this.results_showing && !this.is_multiple) {
            this.result_select(evt);
          }
          this.mouse_on_container = false;
Severity: Minor
Found in public/javascripts/chosen/chosen.proto.js and 1 other location - About 40 mins to fix
public/javascripts/chosen/chosen.jquery.js on lines 835..840

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

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

            final_pos = {
                top     : pos.top ,
                left : pos.left,
                width :    wrap.width(),
                height : wrap.height()
Severity: Minor
Found in public/javascripts/fancybox/jquery.fancybox-1.3.4.js and 1 other location - About 40 mins to fix
public/javascripts/fancybox/jquery.fancybox-1.3.4.js on lines 378..383

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

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

        var gt = graph._wrapper.group(graph._chartCont, $.extend({class_: 'xAxisLabels',
            textAnchor: 'middle'}, axis._labelFormat));
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 963..964
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1176..1177
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1286..1287

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

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

        var gt = graph._wrapper.group(graph._chartCont,
            $.extend({class_: 'yAxisLabels', textAnchor: 'end'}, axis._labelFormat));
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 963..964
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1073..1074
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1176..1177

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

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

        var gt = graph._wrapper.group(graph._chartCont, $.extend(
            {class_: 'yAxisLabels', textAnchor: 'end'}, axis._labelFormat));
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 40 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 963..964
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1073..1074
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1286..1287

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

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

                start_pos = {
                    top     : pos.top,
                    left : pos.left,
                    width : wrap.width(),
                    height : wrap.height()
Severity: Minor
Found in public/javascripts/fancybox/jquery.fancybox-1.3.4.js and 1 other location - About 40 mins to fix
public/javascripts/fancybox/jquery.fancybox-1.3.4.js on lines 978..983

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

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

    {
        "name": "Focus on life/school balance",
        "long_term_goal_id": [1,2],
        "school_year": 2,
        "tags": [ "lifeskills"],
Severity: Major
Found in public/myguide_asset/js/data.js and 22 other locations - About 35 mins to fix
public/myguide_asset/js/data.js on lines 2..11
public/myguide_asset/js/data.js on lines 12..21
public/myguide_asset/js/data.js on lines 22..31
public/myguide_asset/js/data.js on lines 32..41
public/myguide_asset/js/data.js on lines 42..51
public/myguide_asset/js/data.js on lines 52..61
public/myguide_asset/js/data.js on lines 62..71
public/myguide_asset/js/data.js on lines 72..81
public/myguide_asset/js/data.js on lines 82..91
public/myguide_asset/js/data.js on lines 92..101
public/myguide_asset/js/data.js on lines 102..111
public/myguide_asset/js/data.js on lines 112..121
public/myguide_asset/js/data.js on lines 122..131
public/myguide_asset/js/data.js on lines 132..141
public/myguide_asset/js/data.js on lines 142..151
public/myguide_asset/js/data.js on lines 162..171
public/myguide_asset/js/data.js on lines 172..181
public/myguide_asset/js/data.js on lines 182..191
public/myguide_asset/js/data.js on lines 192..201
public/myguide_asset/js/data.js on lines 202..211
public/myguide_asset/js/data.js on lines 212..221
public/myguide_asset/js/data.js on lines 222..231

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

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

    y = e.offsetY ? e.offsetY : (e.target ? e.clientY - e.target.y : 0);
public/javascripts/tinyeditor/themes/advanced/js/color_picker.js on lines 271..271

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

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

    {
        "name": "Attend career workshops",
        "long_term_goal_id": [1,2],
        "school_year": 2,
        "tags": [ "career"],
Severity: Major
Found in public/myguide_asset/js/data.js and 22 other locations - About 35 mins to fix
public/myguide_asset/js/data.js on lines 2..11
public/myguide_asset/js/data.js on lines 12..21
public/myguide_asset/js/data.js on lines 22..31
public/myguide_asset/js/data.js on lines 32..41
public/myguide_asset/js/data.js on lines 42..51
public/myguide_asset/js/data.js on lines 52..61
public/myguide_asset/js/data.js on lines 62..71
public/myguide_asset/js/data.js on lines 72..81
public/myguide_asset/js/data.js on lines 82..91
public/myguide_asset/js/data.js on lines 92..101
public/myguide_asset/js/data.js on lines 102..111
public/myguide_asset/js/data.js on lines 112..121
public/myguide_asset/js/data.js on lines 122..131
public/myguide_asset/js/data.js on lines 142..151
public/myguide_asset/js/data.js on lines 152..161
public/myguide_asset/js/data.js on lines 162..171
public/myguide_asset/js/data.js on lines 172..181
public/myguide_asset/js/data.js on lines 182..191
public/myguide_asset/js/data.js on lines 192..201
public/myguide_asset/js/data.js on lines 202..211
public/myguide_asset/js/data.js on lines 212..221
public/myguide_asset/js/data.js on lines 222..231

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

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

    {
        "name": "Prepare for graduate exams",
        "long_term_goal_id": [1,2],
        "school_year": 3,
        "tags": [ "graduation"],
Severity: Major
Found in public/myguide_asset/js/data.js and 22 other locations - About 35 mins to fix
public/myguide_asset/js/data.js on lines 2..11
public/myguide_asset/js/data.js on lines 12..21
public/myguide_asset/js/data.js on lines 22..31
public/myguide_asset/js/data.js on lines 32..41
public/myguide_asset/js/data.js on lines 42..51
public/myguide_asset/js/data.js on lines 52..61
public/myguide_asset/js/data.js on lines 62..71
public/myguide_asset/js/data.js on lines 72..81
public/myguide_asset/js/data.js on lines 82..91
public/myguide_asset/js/data.js on lines 92..101
public/myguide_asset/js/data.js on lines 102..111
public/myguide_asset/js/data.js on lines 112..121
public/myguide_asset/js/data.js on lines 122..131
public/myguide_asset/js/data.js on lines 132..141
public/myguide_asset/js/data.js on lines 142..151
public/myguide_asset/js/data.js on lines 152..161
public/myguide_asset/js/data.js on lines 162..171
public/myguide_asset/js/data.js on lines 182..191
public/myguide_asset/js/data.js on lines 192..201
public/myguide_asset/js/data.js on lines 202..211
public/myguide_asset/js/data.js on lines 212..221
public/myguide_asset/js/data.js on lines 222..231

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

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

        var xScale = dims[graph.W] / (graph.xAxis._scale.max - graph.xAxis._scale.min);
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 3 other locations - About 35 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 928..928
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1129..1129
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1338..1338

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

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

            var major = Math.floor(axis._scale.min / axis._ticks.major) * axis._ticks.major;
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svgplot.js and 3 other locations - About 35 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 398..398
public/javascripts/jquery.svg/jquery.svggraph.js on lines 468..468
public/javascripts/jquery.svg/jquery.svgplot.js on lines 319..319

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

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