Cloud-CV/EvalAI

View on GitHub

Showing 1,371 of 1,371 total issues

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

                    if (vm.existTeam.next === null) {
                        vm.isNext = 'disabled';
                    } else {
                        vm.isNext = '';
                    }
Severity: Minor
Found in frontend/src/js/controllers/challengeHostTeamsCtrl.js and 2 other locations - About 35 mins to fix
frontend/src/js/controllers/challengeCtrl.js on lines 492..496
frontend/src/js/controllers/teamsCtrl.js on lines 65..69

Duplicated Code

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

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

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

Tuning

This issue has a mass of 47.

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

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

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

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

Refactorings

Further Reading

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

                onError: function(response) {
                    var error = response.data;
                    vm.leaderboard.error = error;
                    vm.stopLoader();
                }
Severity: Major
Found in frontend/src/js/controllers/challengeCtrl.js and 3 other locations - About 35 mins to fix
frontend/src/js/controllers/challengeCtrl.js on lines 1532..1536
frontend/src/js/controllers/challengeCtrl.js on lines 1652..1656
frontend/src/js/controllers/featuredChallengeCtrl.js on lines 194..198

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

                    if (vm.existTeam.next === null) {
                        vm.isNext = 'disabled';
                    } else {
                        vm.isNext = '';
                    }
Severity: Minor
Found in frontend/src/js/controllers/teamsCtrl.js and 2 other locations - About 35 mins to fix
frontend/src/js/controllers/challengeCtrl.js on lines 492..496
frontend/src/js/controllers/challengeHostTeamsCtrl.js on lines 68..72

Duplicated Code

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

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

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

Tuning

This issue has a mass of 47.

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

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

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

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

Refactorings

Further Reading

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

                onError: function(response) {
                    var error = response.data;
                    vm.leaderboard.error = error;
                    vm.stopLoader();
                }
Severity: Major
Found in frontend/src/js/controllers/featuredChallengeCtrl.js and 3 other locations - About 35 mins to fix
frontend/src/js/controllers/challengeCtrl.js on lines 1173..1177
frontend/src/js/controllers/challengeCtrl.js on lines 1532..1536
frontend/src/js/controllers/challengeCtrl.js on lines 1652..1656

Duplicated Code

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

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

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

Tuning

This issue has a mass of 47.

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

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

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

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

Refactorings

Further Reading

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

                onError: function(response) {
                    var error = response.data;
                    vm.leaderboard.error = error;
                    vm.stopLoader();
                }
Severity: Major
Found in frontend/src/js/controllers/challengeCtrl.js and 3 other locations - About 35 mins to fix
frontend/src/js/controllers/challengeCtrl.js on lines 1173..1177
frontend/src/js/controllers/challengeCtrl.js on lines 1532..1536
frontend/src/js/controllers/featuredChallengeCtrl.js on lines 194..198

Duplicated Code

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

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

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

Tuning

This issue has a mass of 47.

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

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

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

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

Refactorings

Further Reading

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

                onError: function(response) {
                    var error = response.data;
                    vm.leaderboard.error = error;
                    vm.stopLoader();
                }
Severity: Major
Found in frontend/src/js/controllers/challengeCtrl.js and 3 other locations - About 35 mins to fix
frontend/src/js/controllers/challengeCtrl.js on lines 1173..1177
frontend/src/js/controllers/challengeCtrl.js on lines 1652..1656
frontend/src/js/controllers/featuredChallengeCtrl.js on lines 194..198

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 challenge_list = {
            name: "web.challenge-main.challenge-list",
            parent: "web.challenge-main",
            url: "/list",
            templateUrl: baseUrl + "/web/challenge-list.html",
Severity: Minor
Found in frontend/src/js/route-config/route-config.js and 1 other location - About 35 mins to fix
frontend/src/js/route-config/route-config.js on lines 194..202

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

                onError: function (response) {
                    var error = response.data;
                    vm.stopLoader();
                    $rootScope.notify("error", error);
                    return false;
Severity: Minor
Found in frontend/src/js/controllers/challengeCtrl.js and 1 other location - About 35 mins to fix
frontend/src/js/controllers/challengeCtrl.js on lines 1555..1560

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

                onError: function (response) {
                    var error = response.data;
                    vm.stopLoader();
                    $rootScope.notify("error", error);
                    return false;
Severity: Minor
Found in frontend/src/js/controllers/challengeCtrl.js and 1 other location - About 35 mins to fix
frontend/src/js/controllers/challengeCtrl.js on lines 1074..1079

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 challenge_page = {
            name: "web.challenge-main.challenge-page",
            parent: "web.challenge-main",
            url: "/challenge-page/:challengeId",
            templateUrl: baseUrl + "/web/challenge/challenge-page.html",
Severity: Minor
Found in frontend/src/js/route-config/route-config.js and 1 other location - About 35 mins to fix
frontend/src/js/route-config/route-config.js on lines 184..192

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

            {
              name: 'Prithvijit Chattopadhyay',
              description: 'Backend Developer',
              email: 'prithvijitchattopadhyay@gmail.com',
              headshot: 'https://evalai.s3.amazonaws.com/media/headshots/prithv1.jpg',
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 7 other locations - About 35 mins to fix
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 85..96
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 97..108
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 109..120
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 121..132
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 133..144
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 145..156
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 183..194

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

            {
              name: 'Devi Parikh',
              description: 'Advisor',
              email: 'parikh@gatech.edu',
              headshot: 'https://evalai.s3.amazonaws.com/media/headshots/devi.jpg',
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 7 other locations - About 35 mins to fix
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 85..96
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 97..108
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 109..120
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 133..144
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 145..156
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 157..168
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 183..194

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

            {
              name: 'Shiv Baran',
              description: 'Lead Frontend',
              email: 'spyshiv@gmail.com',
              headshot: 'https://evalai.s3.amazonaws.com/media/headshots/7015220.jpeg',
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 7 other locations - About 35 mins to fix
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 85..96
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 97..108
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 109..120
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 121..132
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 133..144
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 145..156
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 157..168

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

      } else {
        toggleLeaderboardVisibilityState = 'public';
        visibility = 3;
        SELF.leaderboardVisibility.state = 'Public';
        SELF.leaderboardVisibility.icon = 'fa fa-toggle-on green-text';
frontend_v2/src/app/components/challenge/challengesettings/challengesettings.component.ts on lines 1260..1265

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

            {
              name: 'Dhruv Batra',
              description: 'Advisor',
              email: 'dbatra@gatech.edu',
              headshot: 'https://evalai.s3.amazonaws.com/media/headshots/dhruv.jpg',
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 7 other locations - About 35 mins to fix
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 85..96
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 97..108
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 109..120
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 121..132
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 145..156
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 157..168
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 183..194

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

            {
              name: 'Taranjeet',
              description: 'Lead Backend Developer',
              email: 'reachtotj@gmail.com',
              headshot: 'https://evalai.s3.amazonaws.com/media/headshots/4302268.jpeg',
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 7 other locations - About 35 mins to fix
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 85..96
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 97..108
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 109..120
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 121..132
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 133..144
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 157..168
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 183..194

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

            {
              name: 'Harsh Agrawal',
              description: 'Project Manager',
              email: 'h.agrawal092@gmail.com',
              headshot: 'https://evalai.s3.amazonaws.com/media/headshots/dp1.jpg',
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 7 other locations - About 35 mins to fix
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 85..96
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 97..108
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 121..132
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 133..144
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 145..156
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 157..168
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 183..194

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

            {
              name: 'Rishabh Jain',
              description: 'Team Lead',
              email: 'rishabhjain@gatech.edu',
              headshot: 'https://evalai.s3.amazonaws.com/media/headshots/IMG_6613.JPG',
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 7 other locations - About 35 mins to fix
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 97..108
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 109..120
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 121..132
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 133..144
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 145..156
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 157..168
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 183..194

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

      if (SELF.leaderboardVisibility.state === 'Public') {
        toggleLeaderboardVisibilityState = 'private';
        visibility = 1;
        SELF.leaderboardVisibility.state = 'Private';
        SELF.leaderboardVisibility.icon = 'fa fa fa-toggle-off grey-text text-darken-1';
frontend_v2/src/app/components/challenge/challengesettings/challengesettings.component.ts on lines 1265..1270

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

            {
              name: 'Deshraj Yadav',
              description: 'Team Lead',
              email: 'deshraj@vt.edu',
              headshot: 'https://evalai.s3.amazonaws.com/media/headshots/bd8d1fe0-4e9a-40a0-9584-dd9fa7894a79.jpg',
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 7 other locations - About 35 mins to fix
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 85..96
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 109..120
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 121..132
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 133..144
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 145..156
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 157..168
frontend_v2/src/app/components/our-team/our-team.component.ts on lines 183..194

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