inklabs/kommerce-core

View on GitHub

Showing 254 of 254 total issues

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

<?php
namespace inklabs\kommerce\Action\CartPriceRule;

use inklabs\kommerce\Lib\Command\CommandInterface;
use inklabs\kommerce\Lib\Uuid;
src/Action/CartPriceRule/CreateCartPriceRuleDiscountCommand.php on lines 1..49
src/Action/CartPriceRule/CreateCartPriceRuleProductItemCommand.php on lines 1..49

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

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

CartItem has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

class CartItem implements IdEntityInterface, EnabledAttachmentInterface
{
    use TimeTrait, IdTrait;

    /** @var int|null */
Severity: Minor
Found in src/Entity/CartItem.php - About 3 hrs to fix

    ShipmentRate has 26 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ShipmentRate implements ValidationInterface
    {
        /** @var string|null */
        protected $externalId;
    
    
    Severity: Minor
    Found in src/Entity/ShipmentRate.php - About 3 hrs to fix

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

          public static function loadValidatorMetadata(ClassMetadata $metadata)
          {
              $metadata->addPropertyConstraint('name', new Assert\NotBlank);
              $metadata->addPropertyConstraint('name', new Assert\Length([
                  'max' => 255,
      Severity: Major
      Found in src/Entity/Option.php and 1 other location - About 2 hrs to fix
      src/Entity/TextOption.php on lines 37..55

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

      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

          public static function loadValidatorMetadata(ClassMetadata $metadata)
          {
              $metadata->addPropertyConstraint('name', new Assert\NotBlank);
              $metadata->addPropertyConstraint('name', new Assert\Length([
                  'max' => 255,
      Severity: Major
      Found in src/Entity/TextOption.php and 1 other location - About 2 hrs to fix
      src/Entity/Option.php on lines 46..64

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

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

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

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

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

      Refactorings

      Further Reading

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

          public function __construct(TextOption $textOption, DTOBuilderFactoryInterface $dtoBuilderFactory)
          {
              $this->entity = $textOption;
              $this->dtoBuilderFactory = $dtoBuilderFactory;
      
      
      Severity: Major
      Found in src/EntityDTO/Builder/TextOptionDTOBuilder.php and 2 other locations - About 2 hrs to fix
      src/EntityDTO/Builder/AttributeDTOBuilder.php on lines 20..35
      src/EntityDTO/Builder/UserTokenDTOBuilder.php on lines 20..35

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

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

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

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

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

      Refactorings

      Further Reading

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

          public function __construct(Attribute $attribute, DTOBuilderFactoryInterface $dtoBuilderFactory)
          {
              $this->entity = $attribute;
              $this->dtoBuilderFactory = $dtoBuilderFactory;
      
      
      Severity: Major
      Found in src/EntityDTO/Builder/AttributeDTOBuilder.php and 2 other locations - About 2 hrs to fix
      src/EntityDTO/Builder/TextOptionDTOBuilder.php on lines 20..35
      src/EntityDTO/Builder/UserTokenDTOBuilder.php on lines 20..35

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

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

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

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

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

      Refactorings

      Further Reading

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

          public function __construct(UserToken $userToken, DTOBuilderFactoryInterface $dtoBuilderFactory)
          {
              $this->entity = $userToken;
              $this->dtoBuilderFactory = $dtoBuilderFactory;
      
      
      Severity: Major
      Found in src/EntityDTO/Builder/UserTokenDTOBuilder.php and 2 other locations - About 2 hrs to fix
      src/EntityDTO/Builder/AttributeDTOBuilder.php on lines 20..35
      src/EntityDTO/Builder/TextOptionDTOBuilder.php on lines 20..35

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

      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

          public function parse(Doctrine\ORM\Query\Parser $parser)
          {
              $parser->match(Lexer::T_IDENTIFIER);
              $parser->match(Lexer::T_OPEN_PARENTHESIS);
      
      
      Severity: Major
      Found in src/Doctrine/Functions/Mysql/Distance.php and 1 other location - About 2 hrs to fix
      src/Doctrine/Functions/Sqlite/Distance.php on lines 25..42

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

      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
      namespace inklabs\kommerce\ActionHandler\TaxRate;
      
      use inklabs\kommerce\Action\TaxRate\CreateStateTaxRateCommand;
      use inklabs\kommerce\Entity\TaxRate;
      Severity: Major
      Found in src/ActionHandler/TaxRate/CreateStateTaxRateHandler.php and 1 other location - About 2 hrs to fix
      src/ActionHandler/TaxRate/CreateZip5TaxRateHandler.php on lines 1..40

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

      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
      namespace inklabs\kommerce\ActionHandler\TaxRate;
      
      use inklabs\kommerce\Action\TaxRate\CreateZip5TaxRateCommand;
      use inklabs\kommerce\Entity\TaxRate;
      Severity: Major
      Found in src/ActionHandler/TaxRate/CreateZip5TaxRateHandler.php and 1 other location - About 2 hrs to fix
      src/ActionHandler/TaxRate/CreateStateTaxRateHandler.php on lines 1..40

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

      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

          public function parse(Doctrine\ORM\Query\Parser $parser)
          {
              $parser->match(Lexer::T_IDENTIFIER);
              $parser->match(Lexer::T_OPEN_PARENTHESIS);
      
      
      Severity: Major
      Found in src/Doctrine/Functions/Sqlite/Distance.php and 1 other location - About 2 hrs to fix
      src/Doctrine/Functions/Mysql/Distance.php on lines 25..42

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

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

      <?php
      namespace inklabs\kommerce\Entity;
      
      use inklabs\kommerce\Event\OrderShippedEvent;
      use inklabs\kommerce\Lib\CartCalculatorInterface;
      Severity: Minor
      Found in src/Entity/Order.php - About 2 hrs to fix

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

        <?php
        namespace inklabs\kommerce\ActionHandler\Tag;
        
        use inklabs\kommerce\Action\Tag\UpdateTagCommand;
        use inklabs\kommerce\EntityDTO\Builder\TagDTOBuilder;
        Severity: Major
        Found in src/ActionHandler/Tag/UpdateTagHandler.php and 1 other location - About 2 hrs to fix
        src/ActionHandler/Product/UpdateProductHandler.php on lines 1..37

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

        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
        namespace inklabs\kommerce\Action\TaxRate;
        
        use inklabs\kommerce\Lib\Command\CommandInterface;
        use inklabs\kommerce\Lib\Uuid;
        Severity: Major
        Found in src/Action/TaxRate/UpdateStateTaxRateCommand.php and 1 other location - About 2 hrs to fix
        src/Action/TaxRate/UpdateZip5TaxRateCommand.php on lines 1..49

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

        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
        namespace inklabs\kommerce\ActionHandler\Product;
        
        use inklabs\kommerce\Action\Product\UpdateProductCommand;
        use inklabs\kommerce\EntityDTO\Builder\ProductDTOBuilder;
        Severity: Major
        Found in src/ActionHandler/Product/UpdateProductHandler.php and 1 other location - About 2 hrs to fix
        src/ActionHandler/Tag/UpdateTagHandler.php on lines 1..37

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

        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
        namespace inklabs\kommerce\Action\TaxRate;
        
        use inklabs\kommerce\Lib\Command\CommandInterface;
        use inklabs\kommerce\Lib\Uuid;
        Severity: Major
        Found in src/Action/TaxRate/UpdateZip5TaxRateCommand.php and 1 other location - About 2 hrs to fix
        src/Action/TaxRate/UpdateStateTaxRateCommand.php on lines 1..49

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

        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 getValidStatesMap has 60 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static function getValidStatesMap(): array
            {
                return array(
                    'AL' => 'Alabama',
                    'AK' => 'Alaska',
        Severity: Major
        Found in src/Entity/TaxRate.php - About 2 hrs to fix

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

          <?php
          namespace inklabs\kommerce\ActionHandler\Coupon;
          
          use inklabs\kommerce\Action\Coupon\UpdateCouponCommand;
          use inklabs\kommerce\EntityRepository\CouponRepositoryInterface;
          Severity: Major
          Found in src/ActionHandler/Coupon/UpdateCouponHandler.php and 2 other locations - About 2 hrs to fix
          src/ActionHandler/Attribute/UpdateAttributeHandler.php on lines 1..40
          src/ActionHandler/Warehouse/UpdateWarehouseHandler.php on lines 1..42

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

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

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

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

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

          Refactorings

          Further Reading

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

          <?php
          namespace inklabs\kommerce\ActionHandler\Attribute;
          
          use inklabs\kommerce\Action\Attribute\UpdateAttributeCommand;
          use inklabs\kommerce\EntityRepository\AttributeRepositoryInterface;
          Severity: Major
          Found in src/ActionHandler/Attribute/UpdateAttributeHandler.php and 2 other locations - About 2 hrs to fix
          src/ActionHandler/Coupon/UpdateCouponHandler.php on lines 1..42
          src/ActionHandler/Warehouse/UpdateWarehouseHandler.php on lines 1..42

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

          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