Showing 316 of 5,704 total issues

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

        self.assertEqual([room1], list(EighthActivity.objects.get(id=activity.id).rooms.all()))
Severity: Major
Found in intranet/apps/eighth/tests/admin/test_admin_activities.py and 2 other locations - About 40 mins to fix
intranet/apps/eighth/tests/admin/test_admin_activities.py on lines 120..120
intranet/apps/eighth/tests/admin/test_admin_activities.py on lines 158..158

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

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

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields["imei"].label = "IMEI"
Severity: Minor
Found in intranet/apps/itemreg/forms.py and 1 other location - About 40 mins to fix
intranet/apps/enrichment/forms.py on lines 7..10

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

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

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.fields["presign"].label = "2 day pre-signup"
Severity: Minor
Found in intranet/apps/enrichment/forms.py and 1 other location - About 40 mins to fix
intranet/apps/itemreg/forms.py on lines 27..29

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

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

                _.each(waitlistedActivity, function(a) {
                    a.attributes.waitlisted = false;
                    a.attributes.waitlist_count -= 1;
                });
Severity: Minor
Found in intranet/static/js/eighth/signup.js and 1 other location - About 40 mins to fix
intranet/static/js/eighth/signup.js on lines 318..321

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

        $("#activity-picker .backbtn").click(function() {
            $("#activity-picker").removeClass("visible");
            $("#activity-picker .backbtn").removeClass("visible");
            $("#activity-list li[data-activity-id]").removeClass("selected");
        })
Severity: Minor
Found in intranet/static/js/eighth/responsive.js and 2 other locations - About 40 mins to fix
intranet/static/js/bus-shared.js on lines 130..134
intranet/static/js/bus-shared.js on lines 135..139

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

            if (e.which === 38) {
                // up arrow key
                selected.prevAll("li:not(.search-hide)").first().click();
                e.preventDefault();
                flag = true;
Severity: Minor
Found in intranet/static/js/eighth/signupUI.js and 1 other location - About 40 mins to fix
intranet/static/js/eighth/signupUI.js on lines 279..284

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

            if(userRouteName && processBusString(data.announcement).includes(userRouteName)) {
                $(".bus-announcement-header").addClass("bus-announcement-alert");
                $(".bus-announcement-header i").addClass("fa-exclamation-circle");
                $(".bus-announcement").addClass("bus-announcement-alert");
            }
Severity: Minor
Found in intranet/static/js/bus-shared.js and 2 other locations - About 40 mins to fix
intranet/static/js/eighth/responsive.js on lines 22..26
intranet/static/js/bus-shared.js on lines 135..139

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

                    _.each(waitlistedActivity, function(a) {
                        a.attributes.waitlisted = false;
                        a.attributes.waitlist_count -= 1;
                    });
Severity: Minor
Found in intranet/static/js/eighth/signup.js and 1 other location - About 40 mins to fix
intranet/static/js/eighth/signup.js on lines 386..389

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

            else {
                $(".bus-announcement-header").removeClass("bus-announcement-alert");
                $(".bus-announcement-header i").removeClass("fa-exclamation-circle");
                $(".bus-announcement").removeClass("bus-announcement-alert");
            }
Severity: Minor
Found in intranet/static/js/bus-shared.js and 2 other locations - About 40 mins to fix
intranet/static/js/eighth/responsive.js on lines 22..26
intranet/static/js/bus-shared.js on lines 130..134

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

            } else if (e.which === 40) {
                // down arrow key
                selected.nextAll("li:not(.search-hide)").first().click();
                e.preventDefault();
                flag = true;
Severity: Minor
Found in intranet/static/js/eighth/signupUI.js and 1 other location - About 40 mins to fix
intranet/static/js/eighth/signupUI.js on lines 274..284

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

                    if (cmd[1].substring(0, 2) === "st" && activity.sticky === fl) {
                        show = true;
                    }
Severity: Major
Found in intranet/static/js/eighth/signup.search.js and 7 other locations - About 35 mins to fix
intranet/static/js/eighth/signup.search.js on lines 109..111
intranet/static/js/eighth/signup.search.js on lines 117..119
intranet/static/js/eighth/signup.search.js on lines 121..123
intranet/static/js/eighth/signup.search.js on lines 125..127
intranet/static/js/eighth/signup.search.js on lines 129..131
intranet/static/js/eighth/signup.search.js on lines 133..135
intranet/static/js/eighth/signup.search.js on lines 142..144

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

                    if (cmd[1].substring(0, 1) === "b" && activity.both_blocks === fl) {
                        show = true;
                    }
Severity: Major
Found in intranet/static/js/eighth/signup.search.js and 7 other locations - About 35 mins to fix
intranet/static/js/eighth/signup.search.js on lines 109..111
intranet/static/js/eighth/signup.search.js on lines 117..119
intranet/static/js/eighth/signup.search.js on lines 125..127
intranet/static/js/eighth/signup.search.js on lines 129..131
intranet/static/js/eighth/signup.search.js on lines 133..135
intranet/static/js/eighth/signup.search.js on lines 142..144
intranet/static/js/eighth/signup.search.js on lines 146..148

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

                    if (cmd[1].substring(0, 1) === "r" && activity.restricted === fl) {
                        show = true;
                    }
Severity: Major
Found in intranet/static/js/eighth/signup.search.js and 7 other locations - About 35 mins to fix
intranet/static/js/eighth/signup.search.js on lines 117..119
intranet/static/js/eighth/signup.search.js on lines 121..123
intranet/static/js/eighth/signup.search.js on lines 125..127
intranet/static/js/eighth/signup.search.js on lines 129..131
intranet/static/js/eighth/signup.search.js on lines 133..135
intranet/static/js/eighth/signup.search.js on lines 142..144
intranet/static/js/eighth/signup.search.js on lines 146..148

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

                    if (cmd[1].substring(0, 1) === "f" && activity.favorited === fl) {
                        show = true;
                    }
Severity: Major
Found in intranet/static/js/eighth/signup.search.js and 7 other locations - About 35 mins to fix
intranet/static/js/eighth/signup.search.js on lines 109..111
intranet/static/js/eighth/signup.search.js on lines 117..119
intranet/static/js/eighth/signup.search.js on lines 121..123
intranet/static/js/eighth/signup.search.js on lines 125..127
intranet/static/js/eighth/signup.search.js on lines 133..135
intranet/static/js/eighth/signup.search.js on lines 142..144
intranet/static/js/eighth/signup.search.js on lines 146..148

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

                    if (cmd[1].substring(0, 2) === "sp" && activity.special === fl) {
                        show = true;
                    }
Severity: Major
Found in intranet/static/js/eighth/signup.search.js and 7 other locations - About 35 mins to fix
intranet/static/js/eighth/signup.search.js on lines 109..111
intranet/static/js/eighth/signup.search.js on lines 117..119
intranet/static/js/eighth/signup.search.js on lines 121..123
intranet/static/js/eighth/signup.search.js on lines 125..127
intranet/static/js/eighth/signup.search.js on lines 129..131
intranet/static/js/eighth/signup.search.js on lines 142..144
intranet/static/js/eighth/signup.search.js on lines 146..148

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

                    if (cmd[1].substring(0, 1) === "c" && activity.cancelled === fl) {
                        show = true;
                    }
Severity: Major
Found in intranet/static/js/eighth/signup.search.js and 7 other locations - About 35 mins to fix
intranet/static/js/eighth/signup.search.js on lines 109..111
intranet/static/js/eighth/signup.search.js on lines 121..123
intranet/static/js/eighth/signup.search.js on lines 125..127
intranet/static/js/eighth/signup.search.js on lines 129..131
intranet/static/js/eighth/signup.search.js on lines 133..135
intranet/static/js/eighth/signup.search.js on lines 142..144
intranet/static/js/eighth/signup.search.js on lines 146..148

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

                    if (cmd[1].substring(0, 2) === "on" && activity.one_a_day === fl) {
                        show = true;
                    }
Severity: Major
Found in intranet/static/js/eighth/signup.search.js and 7 other locations - About 35 mins to fix
intranet/static/js/eighth/signup.search.js on lines 109..111
intranet/static/js/eighth/signup.search.js on lines 117..119
intranet/static/js/eighth/signup.search.js on lines 121..123
intranet/static/js/eighth/signup.search.js on lines 129..131
intranet/static/js/eighth/signup.search.js on lines 133..135
intranet/static/js/eighth/signup.search.js on lines 142..144
intranet/static/js/eighth/signup.search.js on lines 146..148

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

                    if (cmd[1].substring(0, 1) === "p" && activity.presign === fl) {
                        show = true;
                    }
Severity: Major
Found in intranet/static/js/eighth/signup.search.js and 7 other locations - About 35 mins to fix
intranet/static/js/eighth/signup.search.js on lines 109..111
intranet/static/js/eighth/signup.search.js on lines 117..119
intranet/static/js/eighth/signup.search.js on lines 121..123
intranet/static/js/eighth/signup.search.js on lines 125..127
intranet/static/js/eighth/signup.search.js on lines 129..131
intranet/static/js/eighth/signup.search.js on lines 133..135
intranet/static/js/eighth/signup.search.js on lines 146..148

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

        } else if (opt === "up") {
            $(".propagate > i").removeClass(classes[0] + " " + classes[2])
                .addClass(classes[1]);
        } else if (opt === "down") {
            $(".propagate > i").removeClass(classes[0] + " " + classes[1])
Severity: Minor
Found in intranet/static/js/eighth/schedule.js and 2 other locations - About 35 mins to fix
intranet/static/js/eighth/schedule.js on lines 64..73
intranet/static/js/eighth/schedule.js on lines 70..73

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

        if (opt === "both") {
            $(".propagate > i").removeClass(classes[1] + " " + classes[2])
                .addClass(classes[0]);
        } else if (opt === "up") {
            $(".propagate > i").removeClass(classes[0] + " " + classes[2])
Severity: Minor
Found in intranet/static/js/eighth/schedule.js and 2 other locations - About 35 mins to fix
intranet/static/js/eighth/schedule.js on lines 67..73
intranet/static/js/eighth/schedule.js on lines 70..73

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