Code Monkey home page Code Monkey logo

ci-report-converter's Introduction

JBZoo CCK - Community Edition

Build Status Latest Stable Version HitCount

  • All Features are included
  • GPL v2.0 or later license
  • No ioncube or any other PHP-encoders (open source)
  • No activations
  • No domain limits
  • For any private/commercial use (see license conditions)
  • On your own risk (see license conditions)
  • Of course, you can add your fixes via Github (PR)

System requirements

  • YooTheme Zoo Component Zoo
  • Joomla! CMS Joomla
  • PHP 7.2.0+ is recommended with modules mbstring, xml, json, opcache, mysqli.
  • Works fine with PHP v5.5, v5.6, v7.1, v7.2, v7.3, v7.4
  • Joomla! CMS 4.0 (on your own risk)

FAQ

1. How to subscribe to updates ?

Watch and star this repo (see buttons in the top) and Github will send you notification. It's easy!

2. How to GPL previous JBZoo version <= 2.4.x ?

First of all, we recommend you to upgrade your JBZoo to the latest paid version 2.4.x (only if you wish). After that, just use a special patch from that repository

3. How to build Joomla installer/update package (distr)?

Run in the root directory of project make prod build and see ./build/ folder

4. I have found some bugs. What should I do?

Just create new issue and we will try to fix it.

5. How to use jbzoo_update.zip?

  • Backup your website (database, all files)
  • Install file "jbzoo_update.zip" as Joomla Extention (via control Panel).
  • That's all.
  • If you have any bugs - just create new issue

6. Where I can download the ready-to-use JBZoo?

See files jbzoo_clean_install.zip and jbzoo_update.zip in releases

Useful links

General websites

Our Related Projects

About YooTheme ZOO

Contributors

PHP Unit tests

Unfortunately now we are checking only copyrights, and some code styles. See details.

make dev
make test

LICENSE

GNU GPL v2.0 or later. See details

ci-report-converter's People

Contributors

kimpepper avatar smetdenis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ci-report-converter's Issues

Deprecated error when using `make build`

Hello

When running make build command, I got a deprecated error when using BOX v3 to build the PHAR version on a PHP 8.2 platform.

Please consider to upgrade to BOX v4 !

>>>> >>>> >>>> >>>> >>>> >>>>  Install/Update all 3rd party dependencies
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
64 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
make[1]: Entering directory '/shared/backups/forks/CI-Report-Converter'
File ./vendor/bin/box.phar not found. Downloading.
Box version 3.16.0@adb282a 2022-02-13 23:54:13 UTC

Box Requirements Checker
========================

> Using PHP 8.2.15
> PHP is using the following php.ini file:
  WARNING: No configuration file (php.ini) used by PHP!

> Checking Box requirements:
  ✔ The application requires the version "^7.4 || ^8.0" or greater.
  ✔ The application requires the extension "zlib".
  ✔ The application requires the extension "phar".
  ✔ The package "nikic/php-parser" requires the extension "tokenizer".
  ✔ The package "phpdocumentor/reflection-docblock" requires the extension "filter".


 [OK] Your system is ready to run the application.



In DumpCompletionCommand.php line 48:

  [ErrorException]
  Using ${var} in strings is deprecated, use {$var} instead


Exception trace:
  at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Command/DumpCompletionCommand.php:48
 KevinGH\Box\{closure}() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/.box/vendor/composer/ClassLoader.php:571
 include() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/.box/vendor/composer/ClassLoader.php:571
 Composer\Autoload\includeFile() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/.box/vendor/composer/ClassLoader.php:428
 Composer\Autoload\ClassLoader->loadClass() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:1092
 Symfony\Component\Console\Application->getDefaultCommands() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/src/Console/Application.php:83
 KevinGH\Box\Console\Application->getDefaultCommands() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:1272
 Symfony\Component\Console\Application->init() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:662
 Symfony\Component\Console\Application->find() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:259
 Symfony\Component\Console\Application->doRun() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/bin/box:52
 require() at /shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar:18


Box Requirements Checker
========================

> Using PHP 8.2.15
> PHP is using the following php.ini file:
  WARNING: No configuration file (php.ini) used by PHP!

> Checking Box requirements:
  .....


 [OK] Your system is ready to run the application.



In DumpCompletionCommand.php line 48:

  [ErrorException]
  Using ${var} in strings is deprecated, use {$var} instead


Exception trace:
  at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Command/DumpCompletionCommand.php:48
 KevinGH\Box\{closure}() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/.box/vendor/composer/ClassLoader.php:571
 include() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/.box/vendor/composer/ClassLoader.php:571
 Composer\Autoload\includeFile() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/.box/vendor/composer/ClassLoader.php:428
 Composer\Autoload\ClassLoader->loadClass() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:1092
 Symfony\Component\Console\Application->getDefaultCommands() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/src/Console/Application.php:83
 KevinGH\Box\Console\Application->getDefaultCommands() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:1272
 Symfony\Component\Console\Application->init() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:662
 Symfony\Component\Console\Application->find() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:259
 Symfony\Component\Console\Application->doRun() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar/bin/box:52
 require() at /shared/backups/forks/CI-Report-Converter/vendor/bin/box.phar:18

make[1]: *** [/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/codestyle/src/Makefiles/02_project.Makefile:38: build-phar] Error 1
make[1]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make: *** [Makefile:22: build] Error 2

Question about new Converter (Format)

Hello @SmetDenis

As I've already said, I'm working on a new SARIF Converter for your project.

Even if the POC is already available, I've a little question about your project.

Did you think to open your API to add external converter without to embed it in your kernel code ?

BTW, I've noticed that PHPMD converter lose information details about violation that is not easy to retrieve/reuse by other converter later.

On my POC, I've modified the SourceCase class to store extra info (violation data structure)

diff --git a/src/Formats/Source/SourceCase.php b/src/Formats/Source/SourceCase.php
index 641a52f..b702e3c 100644
--- a/src/Formats/Source/SourceCase.php
+++ b/src/Formats/Source/SourceCase.php
@@ -17,6 +17,7 @@ declare(strict_types=1);
 namespace JBZoo\CIReportConverter\Formats\Source;

 use JBZoo\CIReportConverter\Formats\AbstractNode;
+use JBZoo\Data\Data;

 final class SourceCase extends AbstractNode
 {
@@ -27,6 +28,8 @@ final class SourceCase extends AbstractNode
     public ?int    $line      = null;
     public ?int    $column    = null;

+    public Data    $violation;
+
     // Output
     public ?string $stdOut = null;
     public ?string $errOut = null;

Could you explain why you split / re-implement for each format a *Case.php and *Suite.php.
I've not follow it and my SARIF converter is only 130 lines of code (of course with help of my project https://github.com/llaville/sarif-php-sdk)

Oh, FYI, here is a preview of what my POC is able to do on PHPMD

Command invoked

phpmd vendor/povils/phpmnd/src/ json unusedcode | ./ci-report-converter convert -S phpmd-json -T sarif --profile -vv

Gave somethink like this

PHPMD report converted to SARIF
{
    "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
    "version": "2.1.0",
    "runs": [
        {
            "tool": {
                "driver": {
                    "name": "PHPmd",
                    "rules": [
                        {
                            "id": "UnusedPrivateMethod",
                            "defaultConfiguration": {
                                "enabled": true,
                                "level": "error"
                            },
                            "properties": {
                                "ruleSet": "Unused Code Rules"
                            }
                        },
                        {
                            "id": "UnusedFormalParameter",
                            "defaultConfiguration": {
                                "enabled": true,
                                "level": "error"
                            },
                            "properties": {
                                "ruleSet": "Unused Code Rules"
                            }
                        }
                    ]
                }
            },
            "originalUriBaseIds": {
                "SRCROOT": {
                    "uriBaseId": "/shared/backups/forks/CI-Report-Converter"
                }
            },
            "logicalLocations": [
                {
                    "name": "castToNumber",
                    "fullyQualifiedName": "Povils\\PHPMND\\Command\\RunCommand->castToNumber()",
                    "kind": "function"
                },
                {
                    "name": "Povils\\PHPMND\\Command",
                    "kind": "namespace"
                },
                {
                    "name": "getParser",
                    "fullyQualifiedName": "Povils\\PHPMND\\Container->getParser()",
                    "kind": "function"
                },
                {
                    "name": "Povils\\PHPMND",
                    "kind": "namespace"
                },
                {
                    "name": "getLexer",
                    "fullyQualifiedName": "Povils\\PHPMND\\Container->getLexer()",
                    "kind": "function"
                },
                {
                    "name": "Povils\\PHPMND",
                    "kind": "namespace"
                }
            ],
            "results": [
                {
                    "message": {
                        "text": "Avoid unused private methods such as 'castToNumber'."
                    },
                    "ruleId": "UnusedPrivateMethod",
                    "locations": [
                        {
                            "physicalLocation": {
                                "artifactLocation": {
                                    "uri": "vendor/povils/phpmnd/src/Command/RunCommand.php",
                                    "uriBaseId": "SRCROOT"
                                },
                                "region": {
                                    "startLine": 254
                                }
                            }
                        }
                    ]
                },
                {
                    "message": {
                        "text": "Avoid unused private methods such as 'getParser'."
                    },
                    "ruleId": "UnusedPrivateMethod",
                    "locations": [
                        {
                            "physicalLocation": {
                                "artifactLocation": {
                                    "uri": "vendor/povils/phpmnd/src/Container.php",
                                    "uriBaseId": "SRCROOT"
                                },
                                "region": {
                                    "startLine": 57
                                }
                            }
                        }
                    ]
                },
                {
                    "message": {
                        "text": "Avoid unused private methods such as 'getLexer'."
                    },
                    "ruleId": "UnusedPrivateMethod",
                    "locations": [
                        {
                            "physicalLocation": {
                                "artifactLocation": {
                                    "uri": "vendor/povils/phpmnd/src/Container.php",
                                    "uriBaseId": "SRCROOT"
                                },
                                "region": {
                                    "startLine": 62
                                }
                            }
                        }
                    ]
                },
                {
                    "message": {
                        "text": "Avoid unused parameters such as '$nodes'."
                    },
                    "ruleId": "UnusedFormalParameter",
                    "locations": [
                        {
                            "physicalLocation": {
                                "artifactLocation": {
                                    "uri": "vendor/povils/phpmnd/src/PhpParser/Visitor/DetectionVisitor.php",
                                    "uriBaseId": "SRCROOT"
                                },
                                "region": {
                                    "startLine": 26
                                }
                            }
                        }
                    ]
                },
                {
                    "message": {
                        "text": "Avoid unused parameters such as '$nodes'."
                    },
                    "ruleId": "UnusedFormalParameter",
                    "locations": [
                        {
                            "physicalLocation": {
                                "artifactLocation": {
                                    "uri": "vendor/povils/phpmnd/src/PhpParser/Visitor/ParentConnectorVisitor.php",
                                    "uriBaseId": "SRCROOT"
                                },
                                "region": {
                                    "startLine": 17
                                }
                            }
                        }
                    ]
                },
                {
                    "message": {
                        "text": "Avoid unused parameters such as '$node'."
                    },
                    "ruleId": "UnusedFormalParameter",
                    "locations": [
                        {
                            "physicalLocation": {
                                "artifactLocation": {
                                    "uri": "vendor/povils/phpmnd/src/PhpParser/Visitor/ParentConnectorVisitor.php",
                                    "uriBaseId": "SRCROOT"
                                },
                                "region": {
                                    "startLine": 31
                                }
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

Exception messages renders (cosmetic fix)

Hello,

While trying to implement a new converter, I've noticed that Exceptions render an unecessary slash (in my opinion).

Before patch :

Exception_1

After patch :

Exception_2

Patch :

diff --git a/src/Converters/AbstractConverter.php b/src/Converters/AbstractConverter.php
index 5b536da..d2a69aa 100644
--- a/src/Converters/AbstractConverter.php
+++ b/src/Converters/AbstractConverter.php
@@ -36,7 +36,7 @@ abstract class AbstractConverter
      */
     public function toInternal(string $source): SourceSuite
     {
-        throw new Exception('Method \"' . __METHOD__ . '\" is not available');
+        throw new Exception('Method "' . __METHOD__ . '" is not available');
     }

     /**
@@ -45,7 +45,7 @@ abstract class AbstractConverter
      */
     public function fromInternal(SourceSuite $sourceSuite): string
     {
-        throw new Exception('Method \"' . __METHOD__ . '\" is not available');
+        throw new Exception('Method "' . __METHOD__ . '" is not available');
     }

     public function setRootPath(string $rootPath): self

`make test` command failed if we cannot build locally a PHAR version

Related to issue #41, when we invoke make test command, we got following output

[email protected] in /shared/backups/forks/CI-Report-Converter $ make test
make[1]: Entering directory '/shared/backups/forks/CI-Report-Converter'
File ./vendor/bin/composer-diff.phar not found. Downloading.
File ./vendor/bin/composer-graph.phar not found. Downloading.
File ./vendor/bin/ci-report-converter.phar not found. Downloading.
make[1]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make[1]: Entering directory '/shared/backups/forks/CI-Report-Converter'

>>>> >>>> >>>> >>>> >>>> >>>>  PHPUnit - Run all tests
make[2]: Entering directory '/shared/backups/forks/CI-Report-Converter'
PHPUnit 9.6.13 by Sebastian Bergmann and contributors.

EEESEEEEESEEE..................................................  63 / 135 ( 46%)
......SSSSSSSSSSSSSS................S.......SSS.SSS.....SSSSSSS 126 / 135 ( 93%)
S........                                                       135 / 135 (100%)

Time: 00:03.119, Memory: 36.00 MB

There were 11 errors:

1) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCommandReadMe
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --help -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:42

2) JBZoo\PHPUnit\CliCommandsPharTest::testTcStatsCommandReadMe
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar teamcity:stats 2>&1 --help -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:57

3) JBZoo\PHPUnit\CliCommandsPharTest::testGitHubActionsYml
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --help --format="json" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:72

4) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCommandMapReadMe
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert:map 2>&1 -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:184

5) JBZoo\PHPUnit\CliCommandsPharTest::testConvertStatsUndefinedFile
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar teamcity:stats 2>&1 --input-file="/undefined/file.xml" --input-format="pdepend-xml" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:190

6) JBZoo\PHPUnit\CliCommandsPharTest::testConvertStatsCustomFlowId
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar teamcity:stats 2>&1 --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/phploc/json.json" --input-format="phploc-json" --tc-flow-id="10000" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:200

7) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCustomFlowId
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="checkstyle" --output-format="tc-tests" --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/psalm/checkstyle.xml" --suite-name="Test Suite" --root-path="src" --tc-flow-id="10101" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:211

8) JBZoo\PHPUnit\CliCommandsPharTest::testConvertToTcInspections
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="phpmd-json" --output-format="tc-inspections" --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/phpmd/json.json" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:225

9) JBZoo\PHPUnit\CliCommandsPharTest::testConvertUndefinedFile
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="checkstyle" --output-format="junit" --input-file="/undefined/file.xml" --suite-name="Test Suite" --root-path="src" --non-zero-code="yes" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:282

10) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCommand
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="checkstyle" --output-format="junit" --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/psalm/checkstyle.xml" --suite-name="Test Suite" --root-path="src" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:296

11) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCommandSaveToFile
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="checkstyle" --output-format="junit" --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/psalm/checkstyle.xml" --output-file="/shared/backups/forks/CI-Report-Converter/build/testConvertCommandSaveToFile.xml" --suite-name="Test Suite" --root-path="src" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:356

ERRORS!
Tests: 135, Assertions: 648, Errors: 11, Skipped: 31.

Generating code coverage report in PHP format ... done [00:00.003]

Generating code coverage report in Clover XML format ... done [00:00.068]


Code Coverage Report:
  2024-01-25 06:05:33

 Summary:
  Classes: 41.18% (21/51)
  Methods: 74.47% (140/188)
  Lines:   94.13% (1426/1515)

JBZoo\CIReportConverter\Commands\AbstractCommand
  Methods:  50.00% ( 1/ 2)   Lines:  76.47% ( 13/ 17)
JBZoo\CIReportConverter\Commands\Convert
  Methods:  33.33% ( 1/ 3)   Lines:  93.81% ( 91/ 97)
JBZoo\CIReportConverter\Commands\ConvertMap
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 17/ 17)
JBZoo\CIReportConverter\Commands\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Commands\TeamCityStats
  Methods:  75.00% ( 3/ 4)   Lines:  93.44% ( 57/ 61)
JBZoo\CIReportConverter\Converters\AbstractConverter
  Methods:  50.00% ( 4/ 8)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Converters\AbstractStatsTcConverter
  Methods:  50.00% ( 2/ 4)   Lines:  90.00% ( 18/ 20)
JBZoo\CIReportConverter\Converters\CheckStyleConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 32/ 32)
JBZoo\CIReportConverter\Converters\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Converters\GitLabJsonConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.30% ( 26/ 27)
JBZoo\CIReportConverter\Converters\GithubCliConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.55% ( 28/ 29)
JBZoo\CIReportConverter\Converters\JUnitConverter
  Methods:  75.00% ( 3/ 4)   Lines:  98.63% ( 72/ 73)
JBZoo\CIReportConverter\Converters\JUnitStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% ( 11/ 11)
JBZoo\CIReportConverter\Converters\Map
  Methods:  66.67% ( 4/ 6)   Lines:  86.49% ( 32/ 37)
JBZoo\CIReportConverter\Converters\PhpDependStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Converters\PhpLocStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Converters\PhpMdJsonConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 45/ 45)
JBZoo\CIReportConverter\Converters\PhpMetricsStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Converters\PhpMndConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 47/ 47)
JBZoo\CIReportConverter\Converters\PhpUnitCloverStatsTcConverter
  Methods:   0.00% ( 0/ 2)   Lines:  93.62% ( 44/ 47)
JBZoo\CIReportConverter\Converters\PlainTextConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.55% ( 28/ 29)
JBZoo\CIReportConverter\Converters\PmdCpdConverter
  Methods:  88.89% ( 8/ 9)   Lines:  98.44% ( 63/ 64)
JBZoo\CIReportConverter\Converters\PsalmJsonConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 35/ 35)
JBZoo\CIReportConverter\Converters\TeamCityInspectionsConverter
  Methods:  50.00% ( 2/ 4)   Lines:  96.36% ( 53/ 55)
JBZoo\CIReportConverter\Converters\TeamCityTestsConverter
  Methods:  50.00% ( 2/ 4)   Lines:  95.92% ( 47/ 49)
JBZoo\CIReportConverter\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\AbstractNode
  Methods:  66.67% ( 2/ 3)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\GitLabJson\GitLabJson
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Formats\GitLabJson\GitLabJsonCase
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 15/ 15)
JBZoo\CIReportConverter\Formats\GithubActions\GithubActions
  Methods:  75.00% ( 3/ 4)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\GithubActions\GithubCase
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 14/ 14)
JBZoo\CIReportConverter\Formats\GithubActions\GithubSuite
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\AbstractOutput
  Methods:  75.00% ( 3/ 4)   Lines:  86.67% ( 13/ 15)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Error
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Failure
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Skipped
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\SystemOut
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Warning
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\JUnit
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 10/ 10)
JBZoo\CIReportConverter\Formats\JUnit\JUnitCase
  Methods:  91.67% (11/12)   Lines:  97.14% ( 34/ 35)
JBZoo\CIReportConverter\Formats\JUnit\JUnitSuite
  Methods: 100.00% (10/10)   Lines: 100.00% ( 94/ 94)
JBZoo\CIReportConverter\Formats\MetricMaps\AbstractMetricMap
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Formats\MetricMaps\JUnit
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpDepend
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpLoc
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpMetrics
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpUnitClover
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Metric\Metric
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Metric\Metrics
  Methods:  25.00% ( 1/ 4)   Lines:  75.76% ( 25/ 33)
JBZoo\CIReportConverter\Formats\PlainText\PlainTable
  Methods:  75.00% ( 3/ 4)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\PlainText\PlainText
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 24/ 24)
JBZoo\CIReportConverter\Formats\PlainText\PlainTextCase
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  5/  5)
JBZoo\CIReportConverter\Formats\PlainText\PlainTextSuite
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 19/ 19)
JBZoo\CIReportConverter\Formats\Source\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Source\FileRef
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  8)
JBZoo\CIReportConverter\Formats\Source\SourceCase
  Methods:  75.00% ( 6/ 8)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Formats\Source\SourceCaseOutput
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 41/ 41)
JBZoo\CIReportConverter\Formats\Source\SourceSuite
  Methods:  92.86% (13/14)   Lines:  98.65% ( 73/ 74)
JBZoo\CIReportConverter\Formats\TeamCity\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\TeamCity\Helper
  Methods:  25.00% ( 1/ 4)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Formats\TeamCity\TeamCity
  Methods:  84.62% (11/13)   Lines:  96.88% ( 62/ 64)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Buffer
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\CustomCallback
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  4)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Stdout
  Methods:   0.00% ( 0/ 1)   Lines:   0.00% (  0/  2)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\SymfonyConsole
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  5)
JBZoo\CIReportConverter\Formats\Xml
  Methods:  66.67% ( 2/ 3)   Lines:  97.96% ( 48/ 49)
JBZoo\CIReportConverter\Helper
  Methods:   0.00% ( 0/ 1)   Lines:  75.00% (  3/  4)
make[2]: *** [/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/codestyle/src/Makefiles/03_tests.Makefile:43: test-phpunit-local] Error 2
make[2]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make[1]: *** [/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/codestyle/src/Makefiles/03_tests.Makefile:21: test-phpunit] Error 2
make[1]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make: *** [/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/codestyle/src/Makefiles/03_tests.Makefile:17: test] Error 2

Output format "plain" doesn't work

Using on Github actions as:

      - uses: jbzoo/[email protected]
        with:
          input-file: ./build/mypy-report.xml
          input-format: junit
          output-format: plain

it fails:

 In Convert.php line 105:
  [JBZoo\CiReportConverter\Commands\Exception]                                 
  Format "plain" not found. See the option "--output-format".                  
  Available options: checkstyle,gitlab-json,github-cli,junit,phpmd-json,phpmn  
  d,pmd-cpd,psalm-json,tc-inspections,tc-tests                                 
Exception trace:
  at /app/src/Commands/Convert.php:105
 JBZoo\CiReportConverter\Commands\Convert->getFormat() at /app/src/Commands/Convert.php:82
 JBZoo\CiReportConverter\Commands\Convert->executeAction() at /app/src/Commands/AbstractCommand.php:50
 JBZoo\CiReportConverter\Commands\AbstractCommand->execute() at /app/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1009
 Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /app/ci-report-converter.php:45
 require_once() at /app/ci-report-converter:19
convert [-S|--input-format INPUT-FORMAT] [-I|--input-file [INPUT-FILE]] [-T|--output-format OUTPUT-FORMAT] [-O|--output-file [OUTPUT-FILE]] [-R|--root-path [ROOT-PATH]] [-N|--suite-name SUITE-NAME] [-F|--tc-flow-id [TC-FLOW-ID]] [-Q|--non-zero-code [NON-ZERO-CODE]]

STDIN usage hangs when no inputs provided

Hello

I've discovered and tested your package quickly, and was surprised that it took a long time to reply to me !
So I've investigate, and see that if you forget to specify the --input-file option, then STDIN is used by default.

But when we run ci-report-converter convert command without any input on STDIN, it hangs. why?
Because it's patiently waiting for input that never comes.

To solve this, I recommend to fix your jbzoo/cli package (take caution of other impacts with your other projects)

Replace current JBZoo\Cli\CliCommand ::getStdIn() implementation

By this one :

<?php 

    protected static function getStdIn(): ?string
    {
        static $result; // It can be read only once, so we save result as internal variable

        if ($result === null) {
            $result = '';

            $read = [STDIN];
            $write = [];
            $except = [];
            $seconds = 1; // 1 second (is enough) on timeout since this is just for testing stream change
            $streamCount = @\stream_select($read, $write, $except, $seconds);

            if ($streamCount > 0) {
                while ($line = \fgets(\STDIN, 1024)) {
                    $result .= $line;
                }
            }
        }

        return $result;
    }

And if you give it a try (with ./ci-report-converter convert -S phpmd-json -T plain --profile -vv), we will have expected error !

STDIN

Real pipeline condition with inputs still gave results as expected too :

/shared/backups/forks/phpmd/src/bin/phpmd vendor/povils/phpmnd/src/ json unusedcode | ./ci-report-converter convert -S phpmd-json -T plain --profile -vv
[+1.165s/   1.16 MB] ## Test Case: vendor/povils/phpmnd/src/Command/RunCommand.php
[+0.000s/       0 B] +-------------+----------+---- vendor/povils/phpmnd/src/Command/RunCommand.php -----------------------------+
[+0.000s/       0 B] | Line:Column | Severity | Message                                                                          |
[+0.000s/       0 B] +-------------+----------+----------------------------------------------------------------------------------+
[+0.000s/       0 B] | 254         | Error    | Avoid unused private methods such as 'castToNumber'.                             |
[+0.000s/       0 B] |             |          | Rule     : Unused Code Rules / UnusedPrivateMethod / Priority: 3                 |
[+0.000s/       0 B] |             |          | PHP Mute : @SuppressWarnings(PHPMD.UnusedPrivateMethod)                          |
[+0.000s/       0 B] |             |          | Func     : Povils\PHPMND\Command\RunCommand->castToNumber()                      |
[+0.001s/       0 B] |             |          | File Path: vendor/povils/phpmnd/src/Command/RunCommand.php:254                   |
[+0.000s/       0 B] |             |          | Docs     : https://phpmd.org/rules/unusedcode.html#unusedprivatemethod           |
[+0.000s/       0 B] +-------------+----------+---- vendor/povils/phpmnd/src/Command/RunCommand.php -----------------------------+
[+0.000s/       0 B]
[+0.000s/       0 B] ## Test Case: vendor/povils/phpmnd/src/Container.php
[+0.000s/       0 B] +-------------+----------+-------- vendor/povils/phpmnd/src/Container.php ----------------------------------+
[+0.000s/       0 B] | Line:Column | Severity | Message                                                                          |
[+0.000s/       0 B] +-------------+----------+----------------------------------------------------------------------------------+
[+0.000s/       0 B] | 57          | Error    | Avoid unused private methods such as 'getParser'.                                |
[+0.000s/       0 B] |             |          | Rule     : Unused Code Rules / UnusedPrivateMethod / Priority: 3                 |
[+0.000s/       0 B] |             |          | PHP Mute : @SuppressWarnings(PHPMD.UnusedPrivateMethod)                          |
[+0.000s/       0 B] |             |          | Func     : Povils\PHPMND\Container->getParser()                                  |
[+0.001s/       0 B] |             |          | File Path: vendor/povils/phpmnd/src/Container.php:57                             |
[+0.000s/       0 B] |             |          | Docs     : https://phpmd.org/rules/unusedcode.html#unusedprivatemethod           |
[+0.000s/       0 B] +-------------+----------+----------------------------------------------------------------------------------+
[+0.000s/       0 B] | 62          | Error    | Avoid unused private methods such as 'getLexer'.                                 |
[+0.000s/       0 B] |             |          | Rule     : Unused Code Rules / UnusedPrivateMethod / Priority: 3                 |
[+0.000s/       0 B] |             |          | PHP Mute : @SuppressWarnings(PHPMD.UnusedPrivateMethod)                          |
[+0.000s/       0 B] |             |          | Func     : Povils\PHPMND\Container->getLexer()                                   |
[+0.000s/       0 B] |             |          | File Path: vendor/povils/phpmnd/src/Container.php:62                             |
[+0.000s/       0 B] |             |          | Docs     : https://phpmd.org/rules/unusedcode.html#unusedprivatemethod           |
[+0.000s/       0 B] +-------------+----------+-------- vendor/povils/phpmnd/src/Container.php ----------------------------------+
[+0.000s/       0 B]
[+0.000s/       0 B] ## Test Case: vendor/povils/phpmnd/src/PhpParser/Visitor/DetectionVisitor.php
[+0.000s/       0 B] +-------------+------- vendor/povils/phpmnd/src/PhpParser/Visitor/DetectionVisitor.php ---------------------+
[+0.000s/       0 B] | Line:Column | Severity | Message                                                                          |
[+0.001s/       0 B] +-------------+----------+----------------------------------------------------------------------------------+
[+0.000s/       0 B] | 26          | Error    | Avoid unused parameters such as '$nodes'.                                        |
[+0.000s/       0 B] |             |          | Rule     : Unused Code Rules / UnusedFormalParameter / Priority: 3               |
[+0.000s/       0 B] |             |          | PHP Mute : @SuppressWarnings(PHPMD.UnusedFormalParameter)                        |
[+0.000s/       0 B] |             |          | File Path: vendor/povils/phpmnd/src/PhpParser/Visitor/DetectionVisitor.php:26    |
[+0.000s/       0 B] |             |          | Docs     : https://phpmd.org/rules/unusedcode.html#unusedformalparameter         |
[+0.000s/       0 B] +-------------+------- vendor/povils/phpmnd/src/PhpParser/Visitor/DetectionVisitor.php ---------------------+
[+0.001s/       0 B]
[+0.001s/       0 B] ## Test Case: vendor/povils/phpmnd/src/PhpParser/Visitor/ParentConnectorVisitor.php
[+0.000s/       0 B] +-------------+---- vendor/povils/phpmnd/src/PhpParser/Visitor/ParentConnectorVisitor.php ------------------+
[+0.000s/       0 B] | Line:Column | Severity | Message                                                                          |
[+0.000s/       0 B] +-------------+----------+----------------------------------------------------------------------------------+
[+0.000s/       0 B] | 17          | Error    | Avoid unused parameters such as '$nodes'.                                        |
[+0.000s/       0 B] |             |          | Rule     : Unused Code Rules / UnusedFormalParameter / Priority: 3               |
[+0.000s/       0 B] |             |          | PHP Mute : @SuppressWarnings(PHPMD.UnusedFormalParameter)                        |
[+0.001s/       0 B] |             |          | File Path:                                                                       |
[+0.000s/       0 B] |             |          | vendor/povils/phpmnd/src/PhpParser/Visitor/ParentConnectorVisitor.php:17         |
[+0.000s/       0 B] |             |          | Docs     : https://phpmd.org/rules/unusedcode.html#unusedformalparameter         |
[+0.000s/       0 B] +-------------+----------+----------------------------------------------------------------------------------+
[+0.001s/       0 B] | 31          | Error    | Avoid unused parameters such as '$node'.                                         |
[+0.000s/       0 B] |             |          | Rule     : Unused Code Rules / UnusedFormalParameter / Priority: 3               |
[+0.000s/       0 B] |             |          | PHP Mute : @SuppressWarnings(PHPMD.UnusedFormalParameter)                        |
[+0.000s/       0 B] |             |          | File Path:                                                                       |
[+0.000s/       0 B] |             |          | vendor/povils/phpmnd/src/PhpParser/Visitor/ParentConnectorVisitor.php:31         |
[+0.000s/       0 B] |             |          | Docs     : https://phpmd.org/rules/unusedcode.html#unusedformalparameter         |
[+0.001s/       0 B] +-------------+---- vendor/povils/phpmnd/src/PhpParser/Visitor/ParentConnectorVisitor.php ------------------+
[+0.001s/       0 B]
[+0.002s/       0 B] Memory Usage/Peak: 7.72 MB/10.00 MB; Execution Time: 1.189 sec
[+0.001s/       0 B] Exit Code is "0"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.