ImpressCMS/impresscms

View on GitHub

Showing 47,251 of 47,256 total issues

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

    if (!empty($user_name)) {
        $match = (!empty($user_name_match)) ? (int) $user_name_match : XOOPS_MATCH_START;
        switch ($match) {
            case XOOPS_MATCH_START:
                $criteria->add(new icms_db_criteria_Item('name', icms_core_DataFilter::addSlashes(trim($user_name)) . '%', 'LIKE'));
Severity: Major
Found in htdocs/modules/system/admin/findusers/main.php and 5 other locations - About 7 hrs to fix
htdocs/modules/system/admin/findusers/main.php on lines 176..198
htdocs/modules/system/admin/findusers/main.php on lines 222..244
htdocs/modules/system/admin/findusers/main.php on lines 245..267
htdocs/modules/system/admin/findusers/main.php on lines 295..317
htdocs/modules/system/admin/findusers/main.php on lines 318..340

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

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 edituser.php has 463 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
// $Id: edituser.php 12313 2013-09-15 21:14:35Z skenow $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
Severity: Minor
Found in htdocs/edituser.php - About 7 hrs to fix

    Function check has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
    Open

            function check($post = true, $area = '', $allow_repost = true) {
                global $xoopsModule;
    
                $this->_errors = array ();
    
    

    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

    Function b_system_waiting_show has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
    Open

    function b_system_waiting_show($options) {
        global $icmsConfig;
    
        $userlang = $icmsConfig['language'] ;
    
    
    Severity: Minor
    Found in htdocs/modules/system/blocks/system_waiting.php - About 7 hrs 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 461 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    // $Id: main.php 12313 2013-09-15 21:14:35Z skenow $
    // ------------------------------------------------------------------------ //
    // XOOPS - PHP Content Management System //
    // Copyright (c) 2000 XOOPS.org //
    Severity: Minor
    Found in htdocs/modules/system/admin/findusers/main.php - About 7 hrs to fix

      Method imanager_listimg has 176 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function imanager_listimg($imgcat_id, $start = 0) {
          global $icmsAdminTpl, $query, $limit;
      
          if (!is_object(icms::$user)) {
              $groups = array(ICMS_GROUP_ANONYMOUS);
      Severity: Major
      Found in htdocs/modules/system/admin/images/main.php - About 7 hrs to fix

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

                    'height': function(element) {
                        if (!this._preComputing) this._begin();
        
                        var bHeight = this.get('border-box-height');
                        if (bHeight <= 0) {
        Severity: Major
        Found in htdocs/install/prototype.js and 1 other location - About 7 hrs to fix
        htdocs/install/prototype.js on lines 3800..3817

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

        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

                    'width': function(element) {
                        if (!this._preComputing) this._begin();
        
                        var bWidth = this.get('border-box-width');
                        if (bWidth <= 0) {
        Severity: Major
        Found in htdocs/install/prototype.js and 1 other location - About 7 hrs to fix
        htdocs/install/prototype.js on lines 3780..3798

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

        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

        <?php
        // $Id: blauer-fisch $
        //%%%%%%    Admin Module Name  Smilies     %%%%%
        define('_AM_DBUPDATED','Database Updated Successfully!');
        
        
        Severity: Major
        Found in htdocs/modules/system/language/schinese/admin/smilies.php and 1 other location - About 6 hrs to fix
        htdocs/modules/system/language/schinese/plugins.php on lines 1..24

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

        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

        <?php
        // $Id: blauer-fisch $
        // FILE        ::    plugins.php
        // AUTHOR    ::    Ryuji AMANO <info@ryus.biz>
        // WEB        ::    Ryu's Planning <http://ryus.biz/>
        Severity: Major
        Found in htdocs/modules/system/language/schinese/plugins.php and 1 other location - About 6 hrs to fix
        htdocs/modules/system/language/schinese/admin/smilies.php on lines 1..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 223.

        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

        <?php
        // $Id: version.php 12227 2013-07-19 08:07:21Z fiammy $
        //%%%%%%    Admin Module Name  Version     %%%%%
        if (!defined('_AM_DBUPDATED')) {define("_AM_DBUPDATED","Database Updated Successfully!");}
        define("_AM_VERSION_TITLE", 'ImpressCMS Version Checker');
        Severity: Major
        Found in htdocs/modules/system/language/english/admin/version.php and 1 other location - About 6 hrs to fix
        htdocs/modules/system/language/nederlands/admin/version.php on lines 1..23

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

        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

        <?php
        // $Id: version.php 10326 2010-07-11 18:54:25Z malanciault $
        //%%%%%%    Admin Module Name  Version     %%%%%
        if (!defined('_AM_DBUPDATED')) {define('_AM_DBUPDATED', 'Database succesvol bijgewerkt!');
        }
        Severity: Major
        Found in htdocs/modules/system/language/nederlands/admin/version.php and 1 other location - About 6 hrs to fix
        htdocs/modules/system/language/english/admin/version.php on lines 1..23

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

        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

        Method imanager_index has 173 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function imanager_index($imgcat_id = NULL) {
            global $icmsAdminTpl, $icmsConfig, $limit;
        
            if (!is_object(icms::$user)) {
                $groups = array(ICMS_GROUP_ANONYMOUS);
        Severity: Major
        Found in htdocs/modules/system/admin/images/main.php - About 6 hrs to fix

          Function apply_conf has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

              private function apply_conf() {
                  $db = $GLOBALS['xoopsDB'];
                  if (getDbValue($db, 'configcategory', 'confcat_id', ' confcat_name="_MD_AM_CONTMANAGER"') != 0){return true;}
                  $db->queryF(" INSERT INTO " . $db->prefix("configcategory") . " (confcat_id, confcat_name) VALUES ('9', '_MD_AM_CONTMANAGER')");
                  if (getDbValue($db, 'configcategory', 'confcat_id', ' confcat_name="_MD_AM_PERSON"') != 0){return true;}
          Severity: Minor
          Found in upgrade/upd-icms-1.0-to-1.1/index.php - About 6 hrs 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

          Function check_uploaded_files has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

              function check_uploaded_files() {
                  if ($this->_done_badext)
                      return $this->_safe_badext;
                  else
                      $this->_done_badext = true;

          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

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

          <?php
          // $Id: plugins.php 8767 2009-05-15 11:12:11Z sato $
          // FILE        ::    plugins.php
          // AUTHOR    ::    Ryuji AMANO <info@ryus.biz>
          // WEB        ::    Ryu's Planning <http://ryus.biz/>
          Severity: Major
          Found in htdocs/modules/system/language/italiano/plugins.php and 5 other locations - About 6 hrs to fix
          htdocs/modules/system/language/english/admin/smilies.php on lines 1..22
          htdocs/modules/system/language/english/plugins.php on lines 1..24
          htdocs/modules/system/language/francais/plugins.php on lines 1..25
          htdocs/modules/system/language/nederlands/admin/smilies.php on lines 1..22
          htdocs/modules/system/language/nederlands/plugins.php on lines 1..24

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

          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

          <?php
          // $Id: plugins.php 8769 2009-05-15 11:12:11Z sato $
          // FILE        ::    plugins.php
          // AUTHOR    ::    Ryuji AMANO <info@ryus.biz>
          // WEB        ::    Ryu's Planning <http://ryus.biz/>
          Severity: Major
          Found in htdocs/modules/system/language/english/plugins.php and 5 other locations - About 6 hrs to fix
          htdocs/modules/system/language/english/admin/smilies.php on lines 1..22
          htdocs/modules/system/language/francais/plugins.php on lines 1..25
          htdocs/modules/system/language/italiano/plugins.php on lines 1..23
          htdocs/modules/system/language/nederlands/admin/smilies.php on lines 1..22
          htdocs/modules/system/language/nederlands/plugins.php on lines 1..24

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

          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

          <?php
          // $Id: plugins.php 8769 2009-05-15 11:12:11Z sato $
          // FILE        ::    plugins.php
          // AUTHOR    ::    Ryuji AMANO <info@ryus.biz>
          // WEB        ::    Ryu's Planning <http://ryus.biz/>
          Severity: Major
          Found in htdocs/modules/system/language/nederlands/plugins.php and 5 other locations - About 6 hrs to fix
          htdocs/modules/system/language/english/admin/smilies.php on lines 1..22
          htdocs/modules/system/language/english/plugins.php on lines 1..24
          htdocs/modules/system/language/francais/plugins.php on lines 1..25
          htdocs/modules/system/language/italiano/plugins.php on lines 1..23
          htdocs/modules/system/language/nederlands/admin/smilies.php on lines 1..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 222.

          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

          <?php
          // $Id: plugins.php 8767 2009-05-15 11:12:11Z sato $
          // FILE        ::    plugins.php
          // AUTHOR    ::    Ryuji AMANO <info@ryus.biz>
          // WEB        ::    Ryu's Planning <http://ryus.biz/>
          Severity: Major
          Found in htdocs/modules/system/language/francais/plugins.php and 5 other locations - About 6 hrs to fix
          htdocs/modules/system/language/english/admin/smilies.php on lines 1..22
          htdocs/modules/system/language/english/plugins.php on lines 1..24
          htdocs/modules/system/language/italiano/plugins.php on lines 1..23
          htdocs/modules/system/language/nederlands/admin/smilies.php on lines 1..22
          htdocs/modules/system/language/nederlands/plugins.php on lines 1..24

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

          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

          <?php
          // $Id: smilies.php 8533 2009-04-11 10:08:35Z icmsunderdog $
          //%%%%%%    Admin Module Name  Smilies     %%%%%
          define('_AM_DBUPDATED','Database succesvol bijgewerkt!');
          
          
          Severity: Major
          Found in htdocs/modules/system/language/nederlands/admin/smilies.php and 5 other locations - About 6 hrs to fix
          htdocs/modules/system/language/english/admin/smilies.php on lines 1..22
          htdocs/modules/system/language/english/plugins.php on lines 1..24
          htdocs/modules/system/language/francais/plugins.php on lines 1..25
          htdocs/modules/system/language/italiano/plugins.php on lines 1..23
          htdocs/modules/system/language/nederlands/plugins.php on lines 1..24

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

          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