mondora/mondora-website-front

View on GitHub

Showing 79 of 98 total issues

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

    var channelRQ = $scope.Channels.reactiveQuery({
        $or: [
            {
                _id: $stateParams.channelNameOrId
            },
Severity: Minor
Found in app/pages/channel/view/channelView.js and 1 other location - About 50 mins to fix
app/pages/channel/edit/channelEdit.js on lines 19..28

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

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

    url.facebook = [
        "https://www.facebook.com/sharer.php?s=100",
        "&p[title]=" + $scope.channel.commonName,
        "&p[url]=" + channelUrl,
        "&p[images][0]=" + $scope.channel.mainImageUrl
Severity: Minor
Found in app/pages/channel/view/channelView.js and 1 other location - About 50 mins to fix
app/pages/post/view/postView.js on lines 363..369

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

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

    channelRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.channel = channelRQ.result[0];
        });
    });
Severity: Minor
Found in app/pages/channel/view/channelView.js and 1 other location - About 50 mins to fix
app/pages/user/user.js on lines 19..23

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

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

    url.facebook = [
        "https://www.facebook.com/sharer.php?s=100",
        "&p[title]=" + $scope.post.title,
        "&p[url]=" + postUrl,
        "&p[images][0]=" + $scope.post.titleImageUrl
Severity: Minor
Found in app/pages/post/view/postView.js and 1 other location - About 50 mins to fix
app/pages/channel/view/channelView.js on lines 135..141

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

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

    notificationsRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.notifications = notificationsRQ.result;
        });
    });
Severity: Major
Found in app/pages/personalHome/personalHome.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    tasksRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.tasks = tasksRQ.result;
        });
    });
Severity: Major
Found in app/pages/today/today.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    postsRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.posts = postsRQ.result;
        });
    });
Severity: Major
Found in app/pages/home/home.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    usersRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.users = usersRQ.result;
        });
    });
Severity: Major
Found in app/pages/users/users.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37

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

    stravaRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.stravaActivities = stravaRQ.result;
        });
    });
Severity: Major
Found in app/pages/home/home.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    postsRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.posts = postsRQ.result;
        });
    });
Severity: Major
Found in app/pages/post/list/postList.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    channelsRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.channels = channelsRQ.result;
        });
    });
Severity: Major
Found in app/pages/channel/list/channelList.js and 10 other locations - About 40 mins to fix
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    notificationsRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.notifications = notificationsRQ.result;
        });
    });
Severity: Major
Found in app/pages/inbox/inbox.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    teamQuery.on("change", function () {
        $scope.safeApply(function () {
            $scope.team = teamQuery.result;
        });
    });
Severity: Major
Found in app/pages/team/team.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    postsRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.posts = postsRQ.result;
        });
    });
Severity: Major
Found in app/pages/user/user.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/personalHome/personalHome.js on lines 63..67
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/users/users.js on lines 5..9

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

    postsRQ.on("change", function () {
        $scope.safeApply(function () {
            $scope.posts = postsRQ.result;
        });
    });
Severity: Major
Found in app/pages/personalHome/personalHome.js and 10 other locations - About 40 mins to fix
app/pages/channel/list/channelList.js on lines 6..10
app/pages/home/home.js on lines 31..35
app/pages/home/home.js on lines 39..43
app/pages/inbox/inbox.js on lines 8..12
app/pages/personalHome/personalHome.js on lines 44..48
app/pages/post/list/postList.js on lines 6..10
app/pages/team/team.js on lines 8..12
app/pages/today/today.js on lines 11..15
app/pages/user/user.js on lines 33..37
app/pages/users/users.js on lines 5..9

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

    $scope.openDayModal = function (day) {
        $scope.selectedDay.day = day;
        $scope.modalStatus.day = true;
    };
Severity: Minor
Found in app/pages/calendar/calendar.js and 1 other location - About 35 mins to fix
app/pages/projects/projects.js on lines 26..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 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

    $scope.openDeleteModal = function (project) {
        $scope.selectedProject.project = project;
        $scope.modalStatus.deleteProject = true;
    };
Severity: Minor
Found in app/pages/projects/projects.js and 1 other location - About 35 mins to fix
app/pages/calendar/calendar.js on lines 174..177

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

    $scope.deleteComment = function (comment) {
        $scope.Ceres.call("deleteCommentFromPost", $scope.post._id, comment._id);
    };
Severity: Minor
Found in app/pages/post/view/postView.js and 1 other location - About 35 mins to fix
app/pages/post/view/postView.js on lines 235..237

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

    $scope.publishComment = function (comment) {
        $scope.Ceres.call("publishCommentOfPost", $scope.post._id, comment._id);
    };
Severity: Minor
Found in app/pages/post/view/postView.js and 1 other location - About 35 mins to fix
app/pages/post/view/postView.js on lines 231..233

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

Severity
Category
Status
Source
Language