hexlet-codebattle/codebattle

View on GitHub

Showing 493 of 690 total issues

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

    setTaskArgumentsGenerator: (state, { payload: { value } }) => {
      state.textArgumentsGenerator[state.generatorLang] = value;

      if (!state.validationStatuses.argumentsGenerator[0]) {
        state.validationStatuses.solution = [true];
services/app/apps/codebattle/assets/js/widgets/slices/builder.js on lines 163..171

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

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

    setTaskSolution: (state, { payload: { value } }) => {
      state.textSolution[state.generatorLang] = value;

      if (!state.validationStatuses.solution[0]) {
        state.validationStatuses.solution = [true];
services/app/apps/codebattle/assets/js/widgets/slices/builder.js on lines 172..180

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

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

      {playingList.map(player => (
        <div
          role="button"
          tabIndex={0}
          className="mb-1"
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 33..47
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 65..79
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 81..95
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 97..111

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

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

      {lobbyList.map(player => (
        <div
          role="button"
          tabIndex={0}
          className="mb-1"
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 33..47
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 49..63
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 81..95
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 97..111

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

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

      {watchingList.map(player => (
        <div
          role="button"
          tabIndex={0}
          className="mb-1"
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 49..63
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 65..79
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 81..95
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 97..111

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

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

      {onlineList.map(player => (
        <div
          role="button"
          tabIndex={0}
          className="mb-1"
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 33..47
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 49..63
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 65..79
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 97..111

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

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

      {builderList.map(player => (
        <div
          role="button"
          tabIndex={0}
          className="mb-1"
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 33..47
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 49..63
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 65..79
services/app/apps/codebattle/assets/js/widgets/pages/lobby/LobbyChat.jsx on lines 81..95

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

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

  const handleUpdate = response => {
    dispatch(actions.updateTournamentData(response.tournament));
    dispatch(actions.updateTournamentPlayers(compact(response.players || [])));
    dispatch(actions.updateTournamentMatches(compact(response.matches || [])));
    if (response.tasksInfo) {
services/app/apps/codebattle/assets/js/widgets/middlewares/TournamentAdmin.js on lines 63..70

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

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

  const handleUpdate = response => {
    dispatch(actions.updateTournamentData(response.tournament));
    dispatch(actions.updateTournamentPlayers(compact(response.players || [])));
    dispatch(actions.updateTournamentMatches(compact(response.matches || [])));
    if (response.tasksInfo) {
services/app/apps/codebattle/assets/js/widgets/middlewares/Tournament.js on lines 72..79

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

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

Severity
Category
Status
Source
Language