radek-bruha / coding-standard
Coding Standard Enforcement Tools
1.0.37
2022-06-12 08:27 UTC
Requires
- php: ^8.1
- ext-simplexml: *
- brianium/paratest: ^6.4
- cweagans/composer-patches: ^1.7
- infection/infection: ^0.26
- php-mock/php-mock-phpunit: ^2.6
- phpstan/phpstan: ^1.7
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-strict-rules: ^1.2
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^7.2
- squizlabs/php_codesniffer: ^3.6
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-11 18:50:34 UTC
README
Usage
composer require radek-bruha/coding-standard
PHPCodeSniffer Analyzer Usage
vendor/bin/phpcs bin src tests -pvvv --extensions=php --standard=ruleset.xml | vendor/bin/phpcs-analyzer
015.000s (100.000%): Analyzed 100 000 rows of logs in 010.000s with 100.000MB RAM usage
005.000s (033.333%): SniffName
004.000s (026.666%): SniffName
003.000s (020.000%): SniffName
002.000s (013.333%): SniffName
001.000s (006.666%): SniffName
PHPUnit Analyzer Usage
vendor/bin/phpunit tests --log-junit=/tmp/log.xml && clear && cat /tmp/log.xml | vendor/bin/phpunit-analyzer
vendor/bin/paratest tests -p 8 --runner WrapperRunner --log-junit=/tmp/log.xml && clear && cat /tmp/log.xml | vendor/bin/phpunit-analyzer
015.000s (100.000%): Analyzed 100 000 rows of logs in 010.000s with 100.000MB RAM usage
005.000s (033.333%): TestClass::testMethod
004.000s (026.666%): TestClass::testMethod
003.000s (020.000%): TestClass::testMethod
002.000s (013.333%): TestClass::testMethod
001.000s (006.666%): TestClass::testMethod
PHPCodeSniffer & PHPStan & PHPUnit & PHPParaTest & PHPInfection Clean Unified Output Usage
==================================================
| STARTING FULL TEST BATTERY |
==================================================
==================================================
| RUNNING CODE STYLE CHECKER |
==================================================
.................................................. 50 / 100 ( 50%)
.................................................. 100 / 100 (100%)
==================================================
| 00:01:00.0000000 | | 00:01:00.0000000 |
==================================================
==================================================
| RUNNING CODE STATIC ANALYSIS |
==================================================
.................................................. 50 / 100 ( 50%)
.................................................. 100 / 100 (100%)
==================================================
| 00:01:00.0000000 | | 00:02:00.0000000 |
==================================================
==================================================
| RUNNING INTEGRATION TEST |
==================================================
.................................................. 50 / 200 ( 25%)
.................................................. 100 / 200 ( 50%)
.................................................. 150 / 200 ( 75%)
.................................................. 200 / 200 (100%)
==================================================
| 00:08:00.0000000 | | 00:10:00.0000000 |
==================================================
==================================================
| RUNNING INFECTION TEST |
==================================================
.................................................. 50 / 50 (100%)
.................................................. 50 / 100 ( 50%)
.................................................. 100 / 100 (100%)
.................................................. 50 / 500 ( 10%)
.................................................. 100 / 500 ( 20%)
.................................................. 150 / 500 ( 30%)
.................................................. 200 / 500 ( 40%)
.................................................. 250 / 500 ( 50%)
.................................................. 300 / 500 ( 60%)
.................................................. 350 / 500 ( 70%)
.................................................. 400 / 500 ( 80%)
.................................................. 450 / 500 ( 90%)
.................................................. 500 / 500 (100%)
==================================================
| 00:10:00.0000000 | | 00:20:00.0000000 |
==================================================
==================================================
| 00:20:00.0000000 |
==================================================