Shramkoweb/Portfolio

View on GitHub
pages/about.tsx

Summary

Maintainability
F
3 days
Test Coverage

Function AboutPage has 369 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function AboutPage() {
  return (
    <>
      <Head>
        <title>About | Serhii Shramko</title>
Severity: Major
Found in pages/about.tsx - About 1 day to fix

    File about.tsx has 376 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import Head from 'next/head';
    import Image from 'next/image';
    
    import about from '../public/static/images/about.jpeg';
    import aboutBottom from '../public/static/images/about-bottom.png';
    Severity: Minor
    Found in pages/about.tsx - About 5 hrs to fix

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

              <div className="w-full mb-8 flex">
                <Image
                  className="rounded-lg"
                  alt="Serhii Shramko with the camera in his hands. Black and white photo."
                  src={about}
      Severity: Major
      Found in pages/about.tsx and 1 other location - About 1 hr to fix
      pages/gear.tsx on lines 34..44

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

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

                <em className="text-gray-300 text-xs">
                  <time dateTime="2019-04">April 2019</time>
                  &ensp;–&ensp;
                  <time dateTime="2020-11">November 2020</time>
                </em>
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 55 mins to fix
      pages/about.tsx on lines 176..180
      pages/about.tsx on lines 285..289
      pages/about.tsx on lines 334..338
      pages/about.tsx on lines 356..360
      pages/index.tsx on lines 81..89

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

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

                <em className="text-gray-300 text-xs">
                  <time dateTime="2018-12">December 2018</time>
                  &ensp;–&ensp;
                  <time dateTime="2019-03">March 2019</time>
                </em>
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 55 mins to fix
      pages/about.tsx on lines 176..180
      pages/about.tsx on lines 238..242
      pages/about.tsx on lines 334..338
      pages/about.tsx on lines 356..360
      pages/index.tsx on lines 81..89

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

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

                <em className="text-gray-300 text-xs">
                  <time dateTime="2020">2020</time>
                  &ensp;–&ensp;
                  <time dateTime="2022">2022</time>
                </em>
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 55 mins to fix
      pages/about.tsx on lines 176..180
      pages/about.tsx on lines 238..242
      pages/about.tsx on lines 285..289
      pages/about.tsx on lines 356..360
      pages/index.tsx on lines 81..89

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

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

                <em className="text-gray-300 text-xs">
                  <time dateTime="2021">2021</time>
                  &ensp;–&ensp;
                  <time dateTime="2023">2023</time>
                </em>
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 55 mins to fix
      pages/about.tsx on lines 176..180
      pages/about.tsx on lines 238..242
      pages/about.tsx on lines 285..289
      pages/about.tsx on lines 334..338
      pages/index.tsx on lines 81..89

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

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

                <em className="text-gray-300 text-xs">
                  <time dateTime="2020-11">November 2020</time>
                  &ensp;–&ensp;
                  <time dateTime="2021-10">October 2021</time>
                </em>
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 55 mins to fix
      pages/about.tsx on lines 238..242
      pages/about.tsx on lines 285..289
      pages/about.tsx on lines 334..338
      pages/about.tsx on lines 356..360
      pages/index.tsx on lines 81..89

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

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

                <h4 className="m-0 mb-4">
                  Frontend Developer at&ensp;
                  <a
                    href="https://hexa.com.ua/en/home/"
                    rel="noopener"
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 30 mins to fix
      pages/about.tsx on lines 112..118
      pages/about.tsx on lines 181..186
      pages/about.tsx on lines 243..248
      pages/about.tsx on lines 339..348
      pages/about.tsx on lines 361..370

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 45.

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

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

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

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

      Refactorings

      Further Reading

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

                <h4 className="m-0 mb-4">
                  Frontend Developer at&ensp;
                  <a href="https://www.pdffiller.com/" rel="noopener" target="_blank">
                    PDFfiller
                  </a>
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 30 mins to fix
      pages/about.tsx on lines 112..118
      pages/about.tsx on lines 181..186
      pages/about.tsx on lines 290..299
      pages/about.tsx on lines 339..348
      pages/about.tsx on lines 361..370

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 45.

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

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

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

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

      Refactorings

      Further Reading

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

                <h4 className="m-0 mb-4">
                  Frontend Developer at&ensp;
                  <a href="https://p1k.org/" rel="noopener" target="_blank">
                    Phase One Karma
                  </a>
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 30 mins to fix
      pages/about.tsx on lines 112..118
      pages/about.tsx on lines 243..248
      pages/about.tsx on lines 290..299
      pages/about.tsx on lines 339..348
      pages/about.tsx on lines 361..370

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 45.

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

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

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

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

      Refactorings

      Further Reading

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

                <h4 className="m-0 mb-4">
                  Mentor -&ensp;
                  <a
                    href="https://htmlacademy.ru/profile/id852139"
                    target="_blank"
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 30 mins to fix
      pages/about.tsx on lines 112..118
      pages/about.tsx on lines 181..186
      pages/about.tsx on lines 243..248
      pages/about.tsx on lines 290..299
      pages/about.tsx on lines 361..370

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 45.

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

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

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

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

      Refactorings

      Further Reading

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

                <h4 className="m-0 mb-4">
                  Senior Developer at&ensp;
                  <a href="https://macpaw.com/" rel="noopener" target="_blank">
                    MacPaw
                  </a>
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 30 mins to fix
      pages/about.tsx on lines 181..186
      pages/about.tsx on lines 243..248
      pages/about.tsx on lines 290..299
      pages/about.tsx on lines 339..348
      pages/about.tsx on lines 361..370

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 45.

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

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

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

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

      Refactorings

      Further Reading

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

                <h4 className="m-0 mb-4">
                  Contributor -&ensp;
                  <a
                    href="https://stateofjs.com/en-US"
                    target="_blank"
      Severity: Major
      Found in pages/about.tsx and 5 other locations - About 30 mins to fix
      pages/about.tsx on lines 112..118
      pages/about.tsx on lines 181..186
      pages/about.tsx on lines 243..248
      pages/about.tsx on lines 290..299
      pages/about.tsx on lines 339..348

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 45.

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

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

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

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

      Refactorings

      Further Reading

      There are no issues that match your filters.

      Category
      Status