hexlet-codebattle/codebattle

View on GitHub
services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx

Summary

Maintainability
F
1 wk
Test Coverage

File RubyOriginalIcon.jsx has 276 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* eslint-disable max-len */
import React from 'react';

const RubyOriginalIcon = ({ className, size = '1em' }) => (
  <svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg" className={className} style={{ width: size, height: size }}>

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

        <linearGradient
          id="ruby-original-f"
          gradientUnits="userSpaceOnUse"
          x1="140.691"
          y1="2497.523"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 49..64
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 65..80

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

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

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

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

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

    Refactorings

    Further Reading

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

        <linearGradient
          id="ruby-original-d"
          gradientUnits="userSpaceOnUse"
          x1="74.817"
          y1="2435.622"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 65..80
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 81..96

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

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

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

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

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

    Refactorings

    Further Reading

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

        <linearGradient
          id="ruby-original-e"
          gradientUnits="userSpaceOnUse"
          x1="109.719"
          y1="2466.413"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 49..64
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 81..96

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

    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

        <linearGradient
          id="ruby-original-p"
          gradientUnits="userSpaceOnUse"
          x1="145.272"
          y1="2507.076"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 6..20
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 97..111
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 112..126
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 147..161
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 216..230

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

    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

        <linearGradient
          id="ruby-original-h"
          gradientUnits="userSpaceOnUse"
          x1="53.674"
          y1="2444.028"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 6..20
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 97..111
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 147..161
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 216..230
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 231..245

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

    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

        <linearGradient
          id="ruby-original-o"
          gradientUnits="userSpaceOnUse"
          x1="67.509"
          y1="2393.115"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 6..20
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 97..111
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 112..126
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 147..161
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 231..245

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

    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

        <linearGradient
          id="ruby-original-g"
          gradientUnits="userSpaceOnUse"
          x1="123.6"
          y1="2506.018"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 6..20
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 112..126
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 147..161
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 216..230
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 231..245

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

    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

        <linearGradient
          id="ruby-original-j"
          gradientUnits="userSpaceOnUse"
          x1="111.507"
          y1="2409.102"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 6..20
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 97..111
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 112..126
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 216..230
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 231..245

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

    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

        <linearGradient
          id="ruby-original-a"
          gradientUnits="userSpaceOnUse"
          x1="157.08"
          y1="2382.05"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 97..111
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 112..126
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 147..161
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 216..230
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 231..245

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

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

        <linearGradient
          id="ruby-original-b"
          gradientUnits="userSpaceOnUse"
          x1="169.731"
          y1="2419.72"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 35..48
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 162..175
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 176..189

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

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

        <linearGradient
          id="ruby-original-c"
          gradientUnits="userSpaceOnUse"
          x1="143.542"
          y1="2380.69"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 21..34
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 162..175
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 176..189

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

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

        <linearGradient
          id="ruby-original-l"
          gradientUnits="userSpaceOnUse"
          x1="168.959"
          y1="2483.901"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 21..34
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 35..48
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 162..175

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

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

        <linearGradient
          id="ruby-original-k"
          gradientUnits="userSpaceOnUse"
          x1="159.785"
          y1="2442.837"
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 21..34
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 35..48
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 176..189

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

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

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

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

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

    Refactorings

    Further Reading

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

        <radialGradient
          id="ruby-original-m"
          cx="138.703"
          cy="2464.789"
          r="30.601"
    services/app/apps/codebattle/assets/js/widgets/components/icons/KotlinOriginalIcon.jsx on lines 12..17
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 203..215

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

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

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

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

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

    Refactorings

    Further Reading

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

        <radialGradient
          id="ruby-original-n"
          cx="96.325"
          cy="2424.465"
          r="40.679"
    services/app/apps/codebattle/assets/js/widgets/components/icons/KotlinOriginalIcon.jsx on lines 12..17
    services/app/apps/codebattle/assets/js/widgets/components/icons/RubyOriginalIcon.jsx on lines 190..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 114.

    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