symfony-doge/veslo

View on GitHub

Showing 47 of 47 total issues

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

<?php

/*
 * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
 *
Severity: Major
Found in src/SanityBundle/Command/IndexingCommand.php and 2 other locations - About 6 hrs to fix
src/AnthillBundle/Command/CollectingCommand.php on lines 1..102
src/AnthillBundle/Command/ParsingCommand.php on lines 1..102

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

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

/*
 * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
 *
Severity: Major
Found in src/AnthillBundle/Command/ParsingCommand.php and 2 other locations - About 6 hrs to fix
src/AnthillBundle/Command/CollectingCommand.php on lines 1..102
src/SanityBundle/Command/IndexingCommand.php on lines 1..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 213.

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

/*
 * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
 *
Severity: Major
Found in src/AnthillBundle/Command/CollectingCommand.php and 2 other locations - About 6 hrs to fix
src/AnthillBundle/Command/ParsingCommand.php on lines 1..102
src/SanityBundle/Command/IndexingCommand.php on lines 1..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 213.

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

<?php

/*
 * ************** CAUTION **************
 *
Severity: Minor
Found in web/config.php - About 5 hrs to fix

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

        public function parse(PitInterface $pit, int $iterations = 1): int
        {
            $sourceName = get_class($pit);
    
            $this->logger->debug('Parsing started.', ['source' => $sourceName, 'iterations' => $iterations]);
    Severity: Major
    Found in src/AnthillBundle/Vacancy/Parser/Earwig.php and 2 other locations - About 3 hrs to fix
    src/AnthillBundle/Vacancy/Collector/AntWorker.php on lines 114..135
    src/SanityBundle/Vacancy/Indexer/Cockroach.php on lines 117..138

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

    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 deliver(PitInterface $pit, int $iterations = 1): int
        {
            $sourceName = get_class($pit);
    
            $this->logger->debug('Indexing started.', ['source' => $sourceName, 'iterations' => $iterations]);
    Severity: Major
    Found in src/SanityBundle/Vacancy/Indexer/Cockroach.php and 2 other locations - About 3 hrs to fix
    src/AnthillBundle/Vacancy/Collector/AntWorker.php on lines 114..135
    src/AnthillBundle/Vacancy/Parser/Earwig.php on lines 89..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 146.

    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 collect(PitInterface $pit, int $iterations = 1): int
        {
            $sourceName = get_class($pit);
    
            $this->logger->debug('Collecting started.', ['source' => $sourceName, 'iterations' => $iterations]);
    Severity: Major
    Found in src/AnthillBundle/Vacancy/Collector/AntWorker.php and 2 other locations - About 3 hrs to fix
    src/AnthillBundle/Vacancy/Parser/Earwig.php on lines 89..110
    src/SanityBundle/Vacancy/Indexer/Cockroach.php on lines 117..138

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

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

        public function getConfigTreeBuilder()
        {
            $treeBuilder = new TreeBuilder();
            $rootNode    = $treeBuilder->root('veslo_anthill');
    
    
    Severity: Major
    Found in src/AnthillBundle/DependencyInjection/Configuration.php - About 3 hrs to fix

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

      class RawDto
      {
          /**
           * Vacancy URL
           *
      Severity: Minor
      Found in src/AnthillBundle/Dto/Vacancy/RawDto.php - About 3 hrs to fix

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

        <?php
        
        /*
         * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
         *
        src/AnthillBundle/Vacancy/Normalizer/Roadmap/ConfigurationDtoDenormalizer.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 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 2 locations. Consider refactoring.
        Open

        <?php
        
        /*
         * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
         *
        src/AnthillBundle/Vacancy/Normalizer/Roadmap/StrategyDtoDenormalizer.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 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 2 locations. Consider refactoring.
        Open

        <?php
        
        /*
         * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
         *
        src/AnthillBundle/Exception/Vacancy/Scanner/StrategyNotChosenException.php on lines 1..68

        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
        
        /*
         * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
         *
        src/AnthillBundle/Exception/Vacancy/Scanner/StrategyNotFoundException.php on lines 1..68

        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

        HeadHunter has 22 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class HeadHunter implements ParametersInterface
        {
            /**
             * DateTime format
             *

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

          <?php
          
          /*
           * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
           *
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotSupportedException.php on lines 1..69
          src/AnthillBundle/Exception/Vacancy/Scanner/InputDataEmptyException.php on lines 1..66
          src/AppBundle/Exception/Workflow/Conveyor/DistributionFailedException.php on lines 1..66
          src/SanityBundle/Exception/Vacancy/Tag/Group/Creator/SyncedCreator/GroupForMergeNotFound.php on lines 1..66

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

          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
          
          /*
           * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
           *
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotSupportedException.php on lines 1..69
          src/AnthillBundle/Exception/Vacancy/RoadmapNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/Scanner/InputDataEmptyException.php on lines 1..66
          src/AppBundle/Exception/Workflow/Conveyor/DistributionFailedException.php on lines 1..66
          src/SanityBundle/Exception/Vacancy/Tag/Group/Creator/SyncedCreator/GroupForMergeNotFound.php on lines 1..66

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

          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
          
          /*
           * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
           *
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotSupportedException.php on lines 1..69
          src/AnthillBundle/Exception/Vacancy/RoadmapNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/Scanner/InputDataEmptyException.php on lines 1..66
          src/SanityBundle/Exception/Vacancy/Tag/Group/Creator/SyncedCreator/GroupForMergeNotFound.php on lines 1..66

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

          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
          
          /*
           * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
           *
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotSupportedException.php on lines 1..69
          src/AnthillBundle/Exception/Vacancy/RoadmapNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/Scanner/InputDataEmptyException.php on lines 1..66
          src/AppBundle/Exception/Workflow/Conveyor/DistributionFailedException.php on lines 1..66

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

          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
          
          /*
           * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
           *
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/RoadmapNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/Scanner/InputDataEmptyException.php on lines 1..66
          src/AppBundle/Exception/Workflow/Conveyor/DistributionFailedException.php on lines 1..66
          src/SanityBundle/Exception/Vacancy/Tag/Group/Creator/SyncedCreator/GroupForMergeNotFound.php on lines 1..66

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

          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
          
          /*
           * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
           *
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotFoundException.php on lines 1..66
          src/AnthillBundle/Exception/Vacancy/Roadmap/ConfigurationNotSupportedException.php on lines 1..69
          src/AnthillBundle/Exception/Vacancy/RoadmapNotFoundException.php on lines 1..66
          src/AppBundle/Exception/Workflow/Conveyor/DistributionFailedException.php on lines 1..66
          src/SanityBundle/Exception/Vacancy/Tag/Group/Creator/SyncedCreator/GroupForMergeNotFound.php on lines 1..66

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

          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