Cloud-CV/EvalAI

View on GitHub
frontend_v2/src/app/components/our-team/our-team.component.ts

Summary

Maintainability
C
1 day
Test Coverage

Function fetchOurTeamMembers has 142 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  fetchOurTeamMembers() {
    const API_PATH = this.endpointsService.ourTeamURL();
    const SELF = this;
    SELF.apiService.getUrl(API_PATH).subscribe(
      (data) => {
Severity: Major
Found in frontend_v2/src/app/components/our-team/our-team.component.ts - About 5 hrs to fix

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

      constructor(
        private apiService: ApiService,
        private globalService: GlobalService,
        private endpointsService: EndpointsService,
        private logger: NGXLogger
    Severity: Minor
    Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 1 other location - About 40 mins to fix
    frontend_v2/src/app/services/auth.service.ts on lines 42..47

    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

                {
                  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

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

                if (results[i].team_type === 'Core Team') {
                  SELF.coreTeamType = results[i].team_type;
                  SELF.coreTeamList = CORE_TEAM_LIST.push(results[i]);
                } else if (results[i].team_type === 'Contributors') {
                  SELF.contributingTeamType = results[i].team_type;
    Severity: Minor
    Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 1 other location - About 35 mins to fix
    frontend_v2/src/app/components/our-team/our-team.component.ts on lines 204..207

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 46.

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

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

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

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

    Refactorings

    Further Reading

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

                } else if (results[i].team_type === 'Contributors') {
                  SELF.contributingTeamType = results[i].team_type;
                  SELF.contributingTeamList = CONTRIBUTING_TEAM_LIST.push(results[i]);
                }
    Severity: Minor
    Found in frontend_v2/src/app/components/our-team/our-team.component.ts and 1 other location - About 35 mins to fix
    frontend_v2/src/app/components/our-team/our-team.component.ts on lines 201..207

    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

    There are no issues that match your filters.

    Category
    Status