XoopsModules25x/xoopspoll

View on GitHub

Showing 2,846 of 2,846 total issues

File jquery-ui-timepicker-addon.js has 1782 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery Timepicker Addon - v1.6.3 - 2016-04-20
* http://trentrichardson.com/examples/timepicker
* Copyright (c) 2016 Trent Richardson; Licensed MIT */
(function (factory) {
    if (typeof define === 'function' && define.amd) {
Severity: Major
Found in assets/js/jquery-ui-timepicker-addon.js - About 4 days to fix

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

                    if (dp_inst.settings.timeOnly || maxDateTimeDate.getTime() === dp_date.getTime()) {
                        this._defaults.hourMax = maxDateTime.getHours();
                        if (this.hour >= this._defaults.hourMax) {
                            this.hour = this._defaults.hourMax;
                            this._defaults.minuteMax = maxDateTime.getMinutes();
    Severity: Major
    Found in assets/js/jquery-ui-timepicker-addon.js and 1 other location - About 3 days to fix
    assets/js/jquery-ui-timepicker-addon.js on lines 606..647

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

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

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

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

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

    Refactorings

    Further Reading

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

                    if (dp_inst.settings.timeOnly || minDateTimeDate.getTime() === dp_date.getTime()) {
                        this._defaults.hourMin = minDateTime.getHours();
                        if (this.hour <= this._defaults.hourMin) {
                            this.hour = this._defaults.hourMin;
                            this._defaults.minuteMin = minDateTime.getMinutes();
    Severity: Major
    Found in assets/js/jquery-ui-timepicker-addon.js and 1 other location - About 3 days to fix
    assets/js/jquery-ui-timepicker-addon.js on lines 662..703

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

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

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

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

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

    Refactorings

    Further Reading

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

    if (Request::hasVar('submit', 'POST')) {
        $mode = $_POST['mode'];
    
        if ('delete' === $mode) {
            foreach ($topic_id as $tid) {
    Severity: Major
    Found in extras/newbb_5x/irmtfan/topicmanager.php and 1 other location - About 2 days to fix
    extras/newbb_5x/trunk_5_00/topicmanager.php on lines 83..232

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

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

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

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

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

    Refactorings

    Further Reading

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

    if (Request::hasVar('submit', 'POST')) {
        $mode = $_POST['mode'];
        if ('delete' === $mode) {
            $topic_obj = $topicHandler->get($topic_id);
            $topicHandler->delete($topic_obj);
    Severity: Major
    Found in extras/newbb_5x/trunk_5_00/topicmanager.php and 1 other location - About 2 days to fix
    extras/newbb_5x/irmtfan/topicmanager.php on lines 104..377

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

    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

        if ($topicHandler->getPermission($forum_obj, $topic_obj->getVar('topic_status'), 'addpoll')) {
            if (!$topic_obj->getVar('topic_haspoll')) {
                if (($xoopsUser instanceof \XoopsUser) && $xoopsUser->getVar('uid') === $topic_obj->getVar('topic_poster')) {
                    $t_poll = newbb_displayImage('t_poll', _MD_ADDPOLL);
                    $xoopsTpl->assign('forum_addpoll', '<a href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . "/polls.php?op=add&amp;topic_id={$topic_id}\">{$t_poll}</a>");
    Severity: Major
    Found in extras/newbb_5x/irmtfan/viewtopic.php and 1 other location - About 2 days to fix
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 436..468

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

    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

        if ($topicHandler->getPermission($forum_obj, $topic_obj->getVar('topic_status'), 'addpoll')) {
            if (!$topic_obj->getVar('topic_haspoll')) {
                if (($xoopsUser instanceof \XoopsUser) && $xoopsUser->getVar('uid') === $topic_obj->getVar('topic_poster')) {
                    $t_poll = newbb_displayImage('t_poll', _MD_ADDPOLL);
                    $xoopsTpl->assign('forum_addpoll', '<a href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . "/polls.php?op=add&amp;topic_id={$topic_id}\">{$t_poll}</a>");
    Severity: Major
    Found in extras/newbb_5x/trunk_5_00/viewtopic.php and 1 other location - About 2 days to fix
    extras/newbb_5x/irmtfan/viewtopic.php on lines 604..636

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

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

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

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

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

    Refactorings

    Further Reading

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

                if (dp_inst.settings.maxTime!==null) {
                    var tempMaxTime=new Date("01/01/1970 " + dp_inst.settings.maxTime);
                    if (this.hour>tempMaxTime.getHours()) {
                        this.hour=this._defaults.hourMax=tempMaxTime.getHours();
                        this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes();
    Severity: Major
    Found in assets/js/jquery-ui-timepicker-addon.js and 1 other location - About 2 days to fix
    assets/js/jquery-ui-timepicker-addon.js on lines 706..723

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

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

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

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

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

    Refactorings

    Further Reading

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

                if (dp_inst.settings.minTime!==null) {
                    var tempMinTime=new Date("01/01/1970 " + dp_inst.settings.minTime);
                    if (this.hour<tempMinTime.getHours()) {
                        this.hour=this._defaults.hourMin=tempMinTime.getHours();
                        this.minute=this._defaults.minuteMin=tempMinTime.getMinutes();
    Severity: Major
    Found in assets/js/jquery-ui-timepicker-addon.js and 1 other location - About 2 days to fix
    assets/js/jquery-ui-timepicker-addon.js on lines 725..742

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

    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

    File Post.php has 800 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php declare(strict_types=1);
    
    /**
     * Newbb module
     *
    Severity: Major
    Found in extras/newbb_5x/trunk_5_00/class/Post.php - About 1 day to fix

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

                  if (!empty($poll_obj) && $poll_obj instanceof Xoopspoll\Poll) {
                      /* check to see if user has rights to view the results */
                      $vis_return = $poll_obj->isResultVisible();
                      $isVisible  = true === $vis_return;
                      $visibleMsg = $isVisible ? '' : $vis_return;
      Severity: Major
      Found in extras/newbb_5x/irmtfan/viewtopic.php and 1 other location - About 1 day to fix
      extras/newbb_5x/trunk_5_00/viewtopic.php on lines 398..433

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

      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

              if (!empty($poll_obj) && $poll_obj instanceof Xoopspoll\Poll) {
                  /* check to see if user has rights to view the results */
                  $vis_return = $poll_obj->isResultVisible();
                  $isVisible  = true === $vis_return;
                  $visibleMsg = $isVisible ? '' : $vis_return;
      Severity: Major
      Found in extras/newbb_5x/trunk_5_00/viewtopic.php and 1 other location - About 1 day to fix
      extras/newbb_5x/irmtfan/viewtopic.php on lines 504..548

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

      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

      File viewtopic.php has 660 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php declare(strict_types=1);
      /*------------------------------------------------------------------------
                      XOOPS - PHP Content Management System
                          Copyright (c) 2000-2020 XOOPS.org
                             <https://xoops.org>
      Severity: Major
      Found in extras/newbb_5x/irmtfan/viewtopic.php - About 1 day to fix

        Function _delete has a Cognitive Complexity of 71 (exceeds 5 allowed). Consider refactoring.
        Open

            private function _delete($post, $force = false)
            {
                if ((!$post instanceof Post) || (0 === $post->getVar('post_id'))) {
                    return false;
                }
        Severity: Minor
        Found in extras/newbb_5x/irmtfan/class/PostHandler.php - About 1 day to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        File main.php has 591 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php declare(strict_types=1);
        /*
                       XOOPS - PHP Content Management System
                           Copyright (c) 2000-2020 XOOPS.org
                              <https://xoops.org>
        Severity: Major
        Found in admin/main.php - About 1 day to fix

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

              if (!$pollObj->hasExpired()) {
                  $msg = _MD_XOOPSPOLL_MUSTLOGIN;
                  //@todo:: add $url to all redirects
                  //        $url = $GLOBALS['xoops']->buildUrl("index.php", array('poll_id' => $poll_id));
                  if ($pollObj->isAllowedToVote()) {
          Severity: Major
          Found in extras/newbb_5x/trunk_5_00/votepolls.php and 1 other location - About 1 day to fix
          extras/newbb_5x/irmtfan/votepolls.php on lines 76..110

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

          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

                  if (!$pollObj->hasExpired()) {
                      $msg = _MD_XOOPSPOLL_MUSTLOGIN;
                      //@todo:: add $url to all redirects
                      //            $url = $GLOBALS['xoops']->buildUrl("index.php", array('poll_id' => $poll_id));
                      if ($pollObj->isAllowedToVote()) {
          Severity: Major
          Found in extras/newbb_5x/irmtfan/votepolls.php and 1 other location - About 1 day to fix
          extras/newbb_5x/trunk_5_00/votepolls.php on lines 70..104

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

          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

          File viewtopic.php has 587 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php declare(strict_types=1);
          
          /**
           * Newbb module
           *
          Severity: Major
          Found in extras/newbb_5x/trunk_5_00/viewtopic.php - About 1 day to fix

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

                    foreach ($optionIdArray as $key => $oId) {
                        if (!empty($oId) && ($option_obj = $xpOptHandler->get($oId))) {
                            // existing option object so need to update it
                            $optionTextArray[$key] = trim($optionTextArray[$key]);
                            if ('' === $optionTextArray[$key]) {
            Severity: Major
            Found in extras/newbb_5x/trunk_5_00/polls.php and 1 other location - About 1 day to fix
            extras/newbb_5x/irmtfan/polls.php on lines 436..469

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

            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

                        foreach ($optionIdArray as $key => $oId) {
                            if (!empty($oId) && ($option_obj = $xpOptHandler->get($oId))) {
                                // existing option object so need to update it
                                $optionTextArray[$key] = trim($optionTextArray[$key]);
                                if ('' === $optionTextArray[$key]) {
            Severity: Major
            Found in extras/newbb_5x/irmtfan/polls.php and 1 other location - About 1 day to fix
            extras/newbb_5x/trunk_5_00/polls.php on lines 177..210

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

            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