myems-web/src/components/chat/content/ThreadInfo.js

Summary

Maintainability
F
3 days
Test Coverage

File ThreadInfo.js has 257 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React, { useState, useContext } from 'react';
import PropTypes from 'prop-types';
import Scrollbar from 'react-scrollbars-custom';
import {
  Media,
Severity: Minor
Found in myems-web/src/components/chat/content/ThreadInfo.js - About 2 hrs to fix

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

                          <Col sm={6} md={4} className="px-1">
                            <img
                              src={images[2]}
                              alt=""
                              className="img-fluid rounded mb-2 cursor-pointer "
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 5 other locations - About 2 hrs to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 186..195
    myems-web/src/components/chat/content/ThreadInfo.js on lines 196..205
    myems-web/src/components/chat/content/ThreadInfo.js on lines 216..225
    myems-web/src/components/chat/content/ThreadInfo.js on lines 226..235
    myems-web/src/components/chat/content/ThreadInfo.js on lines 236..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 79.

    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

                          <Col sm={6} md={4} className="px-1">
                            <img
                              src={images[1]}
                              alt=""
                              className="img-fluid rounded mb-2 cursor-pointer "
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 5 other locations - About 2 hrs to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 186..195
    myems-web/src/components/chat/content/ThreadInfo.js on lines 206..215
    myems-web/src/components/chat/content/ThreadInfo.js on lines 216..225
    myems-web/src/components/chat/content/ThreadInfo.js on lines 226..235
    myems-web/src/components/chat/content/ThreadInfo.js on lines 236..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 79.

    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

                          <Col sm={6} md={4} className="px-1">
                            <img
                              src={images[0]}
                              alt=""
                              className="img-fluid rounded mb-2 cursor-pointer"
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 5 other locations - About 2 hrs to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 196..205
    myems-web/src/components/chat/content/ThreadInfo.js on lines 206..215
    myems-web/src/components/chat/content/ThreadInfo.js on lines 216..225
    myems-web/src/components/chat/content/ThreadInfo.js on lines 226..235
    myems-web/src/components/chat/content/ThreadInfo.js on lines 236..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 79.

    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

                          <Col sm={6} md={4} className="px-1">
                            <img
                              src={images[4]}
                              alt=""
                              className="img-fluid rounded mb-2 cursor-pointer "
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 5 other locations - About 2 hrs to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 186..195
    myems-web/src/components/chat/content/ThreadInfo.js on lines 196..205
    myems-web/src/components/chat/content/ThreadInfo.js on lines 206..215
    myems-web/src/components/chat/content/ThreadInfo.js on lines 216..225
    myems-web/src/components/chat/content/ThreadInfo.js on lines 236..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 79.

    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

                          <Col sm={6} md={4} className="px-1">
                            <img
                              src={images[3]}
                              alt=""
                              className="img-fluid rounded mb-2 cursor-pointer "
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 5 other locations - About 2 hrs to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 186..195
    myems-web/src/components/chat/content/ThreadInfo.js on lines 196..205
    myems-web/src/components/chat/content/ThreadInfo.js on lines 206..215
    myems-web/src/components/chat/content/ThreadInfo.js on lines 226..235
    myems-web/src/components/chat/content/ThreadInfo.js on lines 236..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 79.

    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

                          <Col sm={6} md={4} className="px-1">
                            <img
                              src={images[5]}
                              alt=""
                              className="img-fluid rounded mb-2 cursor-pointer "
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 5 other locations - About 2 hrs to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 186..195
    myems-web/src/components/chat/content/ThreadInfo.js on lines 196..205
    myems-web/src/components/chat/content/ThreadInfo.js on lines 206..215
    myems-web/src/components/chat/content/ThreadInfo.js on lines 216..225
    myems-web/src/components/chat/content/ThreadInfo.js on lines 226..235

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

    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

                                <div>
                                  <h6 className="mb-0">
                                    <Link to="/pages/profile" className="text-700">
                                      {user.name}
                                    </Link>
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 1 other location - About 2 hrs to fix
    myems-web/src/components/kanban/GroupMember.js on lines 29..36

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

    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

                  <NavLink className="py-1 px-0 text-600 cursor-pointer">
                    <span className="conversation-info-icon">
                      <FontAwesomeIcon icon="palette" className="mr-1" transform="shrink-1 down-3" />
                    </span>{' '}
                    Change Color
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 4 other locations - About 1 hr to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 82..87
    myems-web/src/components/chat/content/ThreadInfo.js on lines 88..93
    myems-web/src/components/chat/content/ThreadInfo.js on lines 100..105
    myems-web/src/components/chat/content/ThreadInfo.js on lines 106..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 61.

    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

                  <NavLink className="py-1 px-0 text-600 cursor-pointer">
                    <span className="conversation-info-icon">
                      <FontAwesomeIcon icon="thumbs-up" className="mr-1" transform="shrink-1 down-3" />
                    </span>{' '}
                    Change Emoji
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 4 other locations - About 1 hr to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 82..87
    myems-web/src/components/chat/content/ThreadInfo.js on lines 88..93
    myems-web/src/components/chat/content/ThreadInfo.js on lines 94..99
    myems-web/src/components/chat/content/ThreadInfo.js on lines 106..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 61.

    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

                  <NavLink className="py-1 px-0 text-600 cursor-pointer">
                    <span className="conversation-info-icon">
                      <FontAwesomeIcon icon="search" className="mr-1" transform="shrink-1 down-3" />
                    </span>{' '}
                    Search in Conversation
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 4 other locations - About 1 hr to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 88..93
    myems-web/src/components/chat/content/ThreadInfo.js on lines 94..99
    myems-web/src/components/chat/content/ThreadInfo.js on lines 100..105
    myems-web/src/components/chat/content/ThreadInfo.js on lines 106..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 61.

    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

                  <NavLink className="py-1 px-0 text-600 cursor-pointer">
                    <span className="conversation-info-icon">
                      <FontAwesomeIcon icon="pencil-alt" className="mr-1" transform="shrink-1 down-3" />
                    </span>{' '}
                    Edit Nicknames
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 4 other locations - About 1 hr to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 82..87
    myems-web/src/components/chat/content/ThreadInfo.js on lines 94..99
    myems-web/src/components/chat/content/ThreadInfo.js on lines 100..105
    myems-web/src/components/chat/content/ThreadInfo.js on lines 106..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 61.

    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

                  <NavLink className="py-1 px-0 text-600 cursor-pointer">
                    <span className="conversation-info-icon">
                      <FontAwesomeIcon icon="bell" className="mr-1" transform="shrink-1 down-3" />
                    </span>{' '}
                    Notifications
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 4 other locations - About 1 hr to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 82..87
    myems-web/src/components/chat/content/ThreadInfo.js on lines 88..93
    myems-web/src/components/chat/content/ThreadInfo.js on lines 94..99
    myems-web/src/components/chat/content/ThreadInfo.js on lines 100..105

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

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

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

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

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

    Refactorings

    Further Reading

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

              trackYProps={{
                renderer(props) {
                  const { elementRef, ...restProps } = props;
                  return <span {...restProps} ref={elementRef} className="TrackY" />;
                }
    Severity: Major
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 3 other locations - About 1 hr to fix
    myems-web/src/components/chat/content/ChatContentBody.js on lines 37..42
    myems-web/src/components/chat/sidebar/ChatSidebar.js on lines 23..28
    myems-web/src/components/common/ScrollBarCustom.js on lines 17..22

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

    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

                  <Button
                    color="link"
                    className="btn-accordion hover-text-decoration-none dropdown-indicator w-100"
                    aria-expanded={isOpenSharedMediaCollapse}
                    onClick={() => setIsOpenSharedMediaCollapse(!isOpenSharedMediaCollapse)}
    Severity: Minor
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 1 other location - About 30 mins to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 118..125

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

                    <Button
                      color="link"
                      className="btn-accordion hover-text-decoration-none dropdown-indicator w-100"
                      aria-expanded={isOpenMemberCollapse}
                      onClick={() => setIsOpenMemberCollapse(!isOpenMemberCollapse)}
    Severity: Minor
    Found in myems-web/src/components/chat/content/ThreadInfo.js and 1 other location - About 30 mins to fix
    myems-web/src/components/chat/content/ThreadInfo.js on lines 174..181

    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