camdub/Internships

View on GitHub

Showing 387 of 584 total issues

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.svggraph.js and 3 other locations - About 35 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 468..468
public/javascripts/jquery.svg/jquery.svgplot.js on lines 319..319
public/javascripts/jquery.svg/jquery.svgplot.js on lines 348..348

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": "Take career assessments",
        "long_term_goal_id": [1,2],
        "school_year": 1,
        "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 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 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": "Take second-year courses as per major MAP",
        "long_term_goal_id": [1,2],
        "school_year": 2,
        "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 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 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": "Take part in Enriching extracurricular actvities",
        "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 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": "Identify career opportunities for your major",
        "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 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 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": "Seek out mentored research opportunities",
        "long_term_goal_id": [1,2],
        "school_year": 3,
        "tags": [ "humplus"],
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 172..181
public/myguide_asset/js/data.js on lines 182..191
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

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

        $( ".content_accordion" ).sortable({
            handle:'a.handle',
            axis: 'y', // the items can only be sorted along the y axis
            revert:true,
            tolerance:'pointer',
Severity: Minor
Found in public/javascripts/adminica_ui.js and 1 other location - About 35 mins to fix
public/javascripts/application.js on lines 195..201

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

    x = e.offsetX ? e.offsetX : (e.target ? e.clientX - e.target.x : 0);
public/javascripts/tinyeditor/themes/advanced/js/color_picker.js on lines 272..272

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

                var x = dims[graph.X] + xScale * (barGap / 2 + (i + 0.5) * (numSer * barWidth + barGap));
Severity: Minor
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 35 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 1187..1187

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

                var y = dims[graph.Y] + yScale * (barGap / 2 + (i + 0.5) * (numSer * barWidth + barGap));
Severity: Minor
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 35 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 975..975

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

    functions: function(i) {
        return (arguments.length > 0 ? this._functions[i] : null) || this._functions;
    },
Severity: Minor
Found in public/javascripts/jquery.svg/jquery.svgplot.js and 1 other location - About 35 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 279..281

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

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

        for (var i=0; i<this.post_cmd.length; i++){
            this.push(pre_cmd[i]);
        }
Severity: Minor
Found in public/javascripts/ejs.js and 1 other location - About 35 mins to fix
public/javascripts/ejs.js on lines 209..212

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

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

        "mousedown.uniform": function() {
          if(!$(elem).is(":disabled")){
            divTag.addClass(options.activeClass);
          }
        },
Severity: Minor
Found in public/javascripts/jquery.uniform.js and 1 other location - About 35 mins to fix
public/javascripts/jquery.uniform.js on lines 346..350

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

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

    series: function(i) {
        return (arguments.length > 0 ? this._series[i] : null) || this._series;
    },
Severity: Minor
Found in public/javascripts/jquery.svg/jquery.svggraph.js and 1 other location - About 35 mins to fix
public/javascripts/jquery.svg/jquery.svgplot.js on lines 180..182

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

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

        }else if($(this).is("select")){
          //remove sibling span
          $(this).siblings("span").remove();
          //unwrap parent div
          $(this).unwrap();
Severity: Minor
Found in public/javascripts/jquery.uniform.js and 1 other location - About 35 mins to fix
public/javascripts/jquery.uniform.js on lines 502..510

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

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

        "mousedown.uniform touchend.uniform": function() {
          if(!$(elem).is(":disabled")){
            divTag.addClass(options.activeClass);
          }
        },
Severity: Minor
Found in public/javascripts/jquery.uniform.js and 1 other location - About 35 mins to fix
public/javascripts/jquery.uniform.js on lines 443..447

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

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

    for (var i=0; i<this.pre_cmd.length; i++)
    {
        this.push(pre_cmd[i]);
    }
Severity: Minor
Found in public/javascripts/ejs.js and 1 other location - About 35 mins to fix
public/javascripts/ejs.js on lines 229..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 46.

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

        }else if($(this).is(":file")){
          //remove sibling spans
          $(this).siblings("span").remove();
          //unwrap parent div
          $(this).unwrap();
Severity: Minor
Found in public/javascripts/jquery.uniform.js and 1 other location - About 35 mins to fix
public/javascripts/jquery.uniform.js on lines 494..510

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

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 top = (area[this.T] > 1 ? area[this.T] : availHeight * area[this.T]);
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svgplot.js and 3 other locations - About 30 mins to fix
public/javascripts/jquery.svg/jquery.svggraph.js on lines 365..365
public/javascripts/jquery.svg/jquery.svggraph.js on lines 366..366
public/javascripts/jquery.svg/jquery.svgplot.js on lines 273..273

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language