jfx/ci-report

View on GitHub

Showing 80 of 80 total issues

Method load has 320 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function load(ObjectManager $manager)
    {
        $ref1Date = new DateTime();
        $ref1Date->setDate(2017, 7, 1)->setTime(12, 30, 1);
        $ref2Date = new DateTime();
Severity: Major
Found in src/DataFixtures/ORM/Suites.php - About 1 day to fix

    Method load has 256 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function load(ObjectManager $manager)
        {
            $ref1Date = new DateTime();
            $ref1Date->setDate(2017, 7, 1)->setTime(12, 30, 1);
            $ref2Date = new DateTime();
    Severity: Major
    Found in src/DataFixtures/ORM/Campaigns.php - About 1 day to fix

      Method load has 244 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function load(ObjectManager $manager)
          {
              $systemOut = <<<'EOT'
      System out message :
        - Out 1
      Severity: Major
      Found in src/DataFixtures/ORM/Tests.php - About 1 day to fix

        Suite has 34 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Suite
        {
            const DEFAULT_NAME = 'DEFAULT_SUITE_NAME';
        
            /**
        Severity: Minor
        Found in src/Entity/Suite.php - About 4 hrs to fix

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

          class Test
          {
              const DEFAULT_NAME = 'DEFAULT_NAME';
              const DEFAULT_CLASSNAME = 'DEFAULT_CLASSNAME';
              const DEFAULT_PACKAGE = '_ROOT_';
          Severity: Minor
          Found in src/Entity/Test.php - About 4 hrs to fix

            File Suites.php has 339 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * Copyright (c) 2017 Francois-Xavier Soubirou.
             *
             * This file is part of ci-report.
            Severity: Minor
            Found in src/DataFixtures/ORM/Suites.php - About 4 hrs to fix

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

                          array(
                              'count' => '13',
                              'fullClassName' => array(
                                  'className2',
                                  'className2',
              Severity: Major
              Found in src/DataFixtures/ORM/Tests.php and 5 other locations - About 4 hrs to fix
              src/DataFixtures/ORM/Tests.php on lines 92..115
              src/DataFixtures/ORM/Tests.php on lines 116..139
              src/DataFixtures/ORM/Tests.php on lines 164..187
              src/DataFixtures/ORM/Tests.php on lines 188..211
              src/DataFixtures/ORM/Tests.php on lines 236..259

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

              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

                          array(
                              'count' => '13',
                              'fullClassName' => array(
                                  'className2',
                                  'className2',
              Severity: Major
              Found in src/DataFixtures/ORM/Tests.php and 5 other locations - About 4 hrs to fix
              src/DataFixtures/ORM/Tests.php on lines 92..115
              src/DataFixtures/ORM/Tests.php on lines 116..139
              src/DataFixtures/ORM/Tests.php on lines 140..163
              src/DataFixtures/ORM/Tests.php on lines 188..211
              src/DataFixtures/ORM/Tests.php on lines 236..259

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

              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

                          array(
                              'count' => '13',
                              'fullClassName' => array(
                                  'className2',
                                  'className2',
              Severity: Major
              Found in src/DataFixtures/ORM/Tests.php and 5 other locations - About 4 hrs to fix
              src/DataFixtures/ORM/Tests.php on lines 92..115
              src/DataFixtures/ORM/Tests.php on lines 116..139
              src/DataFixtures/ORM/Tests.php on lines 140..163
              src/DataFixtures/ORM/Tests.php on lines 164..187
              src/DataFixtures/ORM/Tests.php on lines 188..211

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

              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

                          array(
                              'count' => '13',
                              'fullClassName' => array(
                                  'className2',
                                  'className2',
              Severity: Major
              Found in src/DataFixtures/ORM/Tests.php and 5 other locations - About 4 hrs to fix
              src/DataFixtures/ORM/Tests.php on lines 116..139
              src/DataFixtures/ORM/Tests.php on lines 140..163
              src/DataFixtures/ORM/Tests.php on lines 164..187
              src/DataFixtures/ORM/Tests.php on lines 188..211
              src/DataFixtures/ORM/Tests.php on lines 236..259

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

              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

                          array(
                              'count' => '13',
                              'fullClassName' => array(
                                  'className2',
                                  'className2',
              Severity: Major
              Found in src/DataFixtures/ORM/Tests.php and 5 other locations - About 4 hrs to fix
              src/DataFixtures/ORM/Tests.php on lines 92..115
              src/DataFixtures/ORM/Tests.php on lines 116..139
              src/DataFixtures/ORM/Tests.php on lines 140..163
              src/DataFixtures/ORM/Tests.php on lines 164..187
              src/DataFixtures/ORM/Tests.php on lines 236..259

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

              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

                          array(
                              'count' => '13',
                              'fullClassName' => array(
                                  'className2',
                                  'className2',
              Severity: Major
              Found in src/DataFixtures/ORM/Tests.php and 5 other locations - About 4 hrs to fix
              src/DataFixtures/ORM/Tests.php on lines 92..115
              src/DataFixtures/ORM/Tests.php on lines 140..163
              src/DataFixtures/ORM/Tests.php on lines 164..187
              src/DataFixtures/ORM/Tests.php on lines 188..211
              src/DataFixtures/ORM/Tests.php on lines 236..259

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

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

              <?php
              /**
               * Copyright (c) 2017 Francois-Xavier Soubirou.
               *
               * This file is part of ci-report.
              Severity: Minor
              Found in src/DataFixtures/ORM/Tests.php - About 3 hrs to fix

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

                class Campaign
                {
                    /**
                     * @var int
                     *
                Severity: Minor
                Found in src/Entity/Campaign.php - About 3 hrs to fix

                  File Campaigns.php has 275 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Copyright (c) 2017 Francois-Xavier Soubirou.
                   *
                   * This file is part of ci-report.
                  Severity: Minor
                  Found in src/DataFixtures/ORM/Campaigns.php - About 2 hrs to fix

                    Method load has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function load(ObjectManager $manager)
                        {
                            $utilService = new UtilService();
                    
                            $dataArray = array(
                    Severity: Major
                    Found in src/DataFixtures/ORM/Projects.php - About 2 hrs to fix

                      Method postSuiteAction has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function postSuiteAction(Project $project, Campaign $campaign, Request $request)
                          {
                              if ($this->isInvalidToken($request, $project->getToken())) {
                                  return $this->getInvalidTokenView();
                              }
                      Severity: Major
                      Found in src/Controller/SuiteApiController.php - About 2 hrs to fix

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

                            public function setFullclassname(string $fullclassname): self
                            {
                                if (substr_count($fullclassname, '.') > 0) {
                                    $index = strrpos($fullclassname, '.');
                                    $this->setPackage(substr($fullclassname, 0, $index));
                        Severity: Major
                        Found in src/DTO/TestDTO.php and 1 other location - About 1 hr to fix
                        src/Entity/Test.php on lines 301..313

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

                        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

                            public function setFullclassname(string $fullClassname): self
                            {
                                if (substr_count($fullClassname, '.') > 0) {
                                    $index = strrpos($fullClassname, '.');
                                    $this->setPackage(substr($fullClassname, 0, $index));
                        Severity: Major
                        Found in src/Entity/Test.php and 1 other location - About 1 hr to fix
                        src/DTO/TestDTO.php on lines 183..195

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

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

                            private function parseTest(SimpleXMLElement $xmlTestcase): testDTO
                            {
                                $test = new TestDTO();
                        
                                // Name is required
                        Severity: Minor
                        Found in src/Service/JunitParserService.php - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language