Skip to content

Commit fef5ca0

Browse files
authored
Merge pull request #4 from run-as-root/feature/static-tests
Static tests
2 parents b5432a3 + 3f527c5 commit fef5ca0

File tree

80 files changed

+11183
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+11183
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
vendor
33
reports
4+
.phpunit.result.cache

composer.json

+30-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
"description": "Provides message queue retry processing functionality via RabbitMQ's dead letter exchange.",
55
"type": "magento2-module",
66
"license": "MIT",
7+
"authors": [
8+
{
9+
"name": "Cristiano Pacheco",
10+
"email": "[email protected]"
11+
}
12+
],
713
"require": {
814
"php": "^8.1",
915
"magento/framework": ">=103.0.5",
@@ -13,7 +19,15 @@
1319
"php-amqplib/php-amqplib": "^v3.2.0"
1420
},
1521
"require-dev": {
16-
"phpunit/phpunit": "*"
22+
"phpunit/phpunit": "~9.5.20",
23+
"phpmd/phpmd": "^2.13",
24+
"phpstan/phpstan": "^1.6.8",
25+
"squizlabs/php_codesniffer": "~3.7.0",
26+
"magento/magento-coding-standard": "*",
27+
"phpcompatibility/php-compatibility": "^9.3",
28+
"slevomat/coding-standard": "^8.8",
29+
"sebastian/phpcpd": "^6.0",
30+
"pdepend/pdepend": "^2.13"
1731
},
1832
"repositories": [
1933
{
@@ -26,15 +40,27 @@
2640
],
2741
"autoload": {
2842
"files": [
29-
"registration.php"
43+
"src/registration.php"
3044
],
3145
"psr-4": {
32-
"RunAsRoot\\MessageQueueRetry\\": ""
46+
"RunAsRoot\\MessageQueueRetry\\": "src"
3347
}
3448
},
3549
"config": {
3650
"allow-plugins": {
37-
"magento/composer-dependency-version-audit-plugin": false
51+
"magento/composer-dependency-version-audit-plugin": false,
52+
"dealerdirect/phpcodesniffer-composer-installer": true
3853
}
54+
},
55+
"scripts": {
56+
"post-install-cmd": [
57+
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../slevomat/coding-standard,../../magento/magento-coding-standard/,../../phpcompatibility/php-compatibility)"
58+
],
59+
"test": "./vendor/bin/phpunit -c phpunit.xml",
60+
"phpstan": "phpstan",
61+
"sniffer": "vendor/bin/phpcs --colors -p ./src --standard=phpcs-ruleset.xml",
62+
"fix-style": "vendor/bin/phpcbf --colors -p ./src --standard=phpcs-ruleset.xml",
63+
"sniffer:php8.1": "vendor/bin/phpcs -p ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1",
64+
"mess-detector": "vendor/bin/phpmd src html phpmd-ruleset.xml --exclude \"Test\" --strict --reportfile reports/phpmd/phpmd.html"
3965
}
4066
}

0 commit comments

Comments
 (0)