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\ActionHandler\Option;

use inklabs\kommerce\Action\Option\GetOptionQuery;
use inklabs\kommerce\ActionResponse\Option\GetOptionResponse;
Severity: Major
Found in src/ActionHandler/Option/GetOptionHandler.php and 2 other locations - About 4 hrs to fix
src/ActionHandler/Product/GetProductHandler.php on lines 1..57
src/ActionHandler/Tag/GetTagHandler.php on lines 1..57

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

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

RepositoryFactory has 35 functions (exceeds 20 allowed). Consider refactoring.
Open

class RepositoryFactory
{
    /** @var EntityManager */
    protected $entityManager;

Severity: Minor
Found in src/EntityRepository/RepositoryFactory.php - About 4 hrs to fix

    Method getHandler has 105 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getHandler(string $handlerClassName, ActionInterface $action)
        {
            $reflection = new ReflectionClass($handlerClassName);
    
            $constructorParameters = [];
    Severity: Major
    Found in src/Lib/Mapper.php - About 4 hrs to fix

      OrderItem has 33 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class OrderItem implements IdEntityInterface, EnabledAttachmentInterface
      {
          use TimeTrait, IdTrait;
      
          /** @var int */
      Severity: Minor
      Found in src/Entity/OrderItem.php - About 4 hrs to fix

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

        <?php
        namespace inklabs\kommerce\ActionHandler\Cart;
        
        use inklabs\kommerce\Action\Cart\RemoveCouponFromCartCommand;
        use inklabs\kommerce\EntityRepository\CartRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Cart/RemoveCouponFromCartHandler.php and 1 other location - About 4 hrs to fix
        src/ActionHandler/Cart/SetCartUserHandler.php on lines 1..44

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

        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\Cart;
        
        use inklabs\kommerce\Action\Cart\SetCartUserCommand;
        use inklabs\kommerce\EntityRepository\CartRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Cart/SetCartUserHandler.php and 1 other location - About 4 hrs to fix
        src/ActionHandler/Cart/RemoveCouponFromCartHandler.php on lines 1..45

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

        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\Attribute;
        
        use inklabs\kommerce\Action\Attribute\UpdateAttributeValueCommand;
        use inklabs\kommerce\EntityRepository\AttributeValueRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Attribute/UpdateAttributeValueHandler.php and 1 other location - About 4 hrs to fix
        src/ActionHandler/Option/UpdateOptionHandler.php on lines 1..41

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

        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\Option;
        
        use inklabs\kommerce\Action\Option\UpdateOptionCommand;
        use inklabs\kommerce\EntityRepository\OptionRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Option/UpdateOptionHandler.php and 1 other location - About 4 hrs to fix
        src/ActionHandler/Attribute/UpdateAttributeValueHandler.php on lines 1..43

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

        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\SetDefaultImageForProductCommand;
        use inklabs\kommerce\EntityRepository\ImageRepositoryInterface;
        src/ActionHandler/Tag/SetDefaultImageForTagHandler.php on lines 1..44

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

        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\Tag;
        
        use inklabs\kommerce\Action\Tag\SetDefaultImageForTagCommand;
        use inklabs\kommerce\EntityRepository\ImageRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Tag/SetDefaultImageForTagHandler.php and 1 other location - About 3 hrs to fix
        src/ActionHandler/Product/SetDefaultImageForProductHandler.php on lines 1..44

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

        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

        <?php
        namespace inklabs\kommerce\ActionHandler\Tag;
        
        use inklabs\kommerce\Action\Tag\AddOptionToTagCommand;
        use inklabs\kommerce\EntityRepository\OptionRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Tag/AddOptionToTagHandler.php and 4 other locations - About 3 hrs to fix
        src/ActionHandler/Product/AddTagToProductHandler.php on lines 1..44
        src/ActionHandler/Product/RemoveTagFromProductHandler.php on lines 1..45
        src/ActionHandler/Tag/AddTextOptionToTagHandler.php on lines 1..45
        src/ActionHandler/Tag/RemoveOptionFromTagHandler.php on lines 1..44

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

        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

        <?php
        namespace inklabs\kommerce\ActionHandler\Tag;
        
        use inklabs\kommerce\Action\Tag\AddTextOptionToTagCommand;
        use inklabs\kommerce\EntityRepository\TagRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Tag/AddTextOptionToTagHandler.php and 4 other locations - About 3 hrs to fix
        src/ActionHandler/Product/AddTagToProductHandler.php on lines 1..44
        src/ActionHandler/Product/RemoveTagFromProductHandler.php on lines 1..45
        src/ActionHandler/Tag/AddOptionToTagHandler.php on lines 1..45
        src/ActionHandler/Tag/RemoveOptionFromTagHandler.php on lines 1..44

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

        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

        <?php
        namespace inklabs\kommerce\ActionHandler\Product;
        
        use inklabs\kommerce\Action\Product\AddTagToProductCommand;
        use inklabs\kommerce\EntityRepository\ProductRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Product/AddTagToProductHandler.php and 4 other locations - About 3 hrs to fix
        src/ActionHandler/Product/RemoveTagFromProductHandler.php on lines 1..45
        src/ActionHandler/Tag/AddOptionToTagHandler.php on lines 1..45
        src/ActionHandler/Tag/AddTextOptionToTagHandler.php on lines 1..45
        src/ActionHandler/Tag/RemoveOptionFromTagHandler.php on lines 1..44

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

        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

        <?php
        namespace inklabs\kommerce\ActionHandler\Product;
        
        use inklabs\kommerce\Action\Product\RemoveTagFromProductCommand;
        use inklabs\kommerce\EntityRepository\ProductRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Product/RemoveTagFromProductHandler.php and 4 other locations - About 3 hrs to fix
        src/ActionHandler/Product/AddTagToProductHandler.php on lines 1..44
        src/ActionHandler/Tag/AddOptionToTagHandler.php on lines 1..45
        src/ActionHandler/Tag/AddTextOptionToTagHandler.php on lines 1..45
        src/ActionHandler/Tag/RemoveOptionFromTagHandler.php on lines 1..44

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

        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

        <?php
        namespace inklabs\kommerce\ActionHandler\Tag;
        
        use inklabs\kommerce\Action\Tag\RemoveOptionFromTagCommand;
        use inklabs\kommerce\EntityRepository\OptionRepositoryInterface;
        Severity: Major
        Found in src/ActionHandler/Tag/RemoveOptionFromTagHandler.php and 4 other locations - About 3 hrs to fix
        src/ActionHandler/Product/AddTagToProductHandler.php on lines 1..44
        src/ActionHandler/Product/RemoveTagFromProductHandler.php on lines 1..45
        src/ActionHandler/Tag/AddOptionToTagHandler.php on lines 1..45
        src/ActionHandler/Tag/AddTextOptionToTagHandler.php on lines 1..45

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

        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\User;
        
        use inklabs\kommerce\Action\User\GetUserQuery;
        use inklabs\kommerce\ActionResponse\User\GetUserResponse;
        Severity: Major
        Found in src/ActionHandler/User/GetUserHandler.php and 1 other location - About 3 hrs to fix
        src/ActionHandler/Cart/GetCartByUserIdHandler.php on lines 1..51

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

        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\Cart;
        
        use inklabs\kommerce\Action\Cart\GetCartByUserIdQuery;
        use inklabs\kommerce\ActionResponse\Cart\GetCartByUserIdResponse;
        Severity: Major
        Found in src/ActionHandler/Cart/GetCartByUserIdHandler.php and 1 other location - About 3 hrs to fix
        src/ActionHandler/User/GetUserHandler.php on lines 1..51

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

        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

        User has 30 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class User implements IdEntityInterface
        {
            use TimeTrait, IdTrait, EventGeneratorTrait, StringSetterTrait;
        
            /** @var string|null */
        Severity: Minor
        Found in src/Entity/User.php - About 3 hrs to fix

          Tag has 30 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Tag implements IdEntityInterface, EnabledAttachmentInterface
          {
              use TimeTrait, IdTrait, StringSetterTrait;
          
              /** @var string */
          Severity: Minor
          Found in src/Entity/Tag.php - About 3 hrs to fix

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

            <?php
            namespace inklabs\kommerce\ActionHandler\Configuration;
            
            use inklabs\kommerce\Action\Configuration\GetConfigurationsByKeysQuery;
            use inklabs\kommerce\ActionResponse\Configuration\GetConfigurationsByKeysResponse;
            src/ActionHandler/Tag/GetTagsByIdsHandler.php on lines 1..53

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

            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