Skip to content

Commit

Permalink
Merge 9cdb005 into ea01071
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirone committed Feb 17, 2024
2 parents ea01071 + 9cdb005 commit 3c76bfe
Show file tree
Hide file tree
Showing 7 changed files with 591 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/sca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
- name: Check - phpstan
run: ./dev-tools/vendor/bin/phpstan analyse --ansi

- name: Check - PHP compatibility
run: composer php-compatibility

- name: Check - composer-unused
run: ./dev-tools/vendor/bin/composer-unused --no-progress --excludePackage=composer/xdebug-handler

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/compose.override.yaml
/composer.lock
/dev-tools/bin/
/dev-tools/php-compatibility/cache.json
/dev-tools/phpstan/cache/
/dev-tools/vendor/
/php-cs-fixer.phar
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"@composer normalize --working-dir=dev-tools --dry-run ../composer.json",
"@composer normalize --working-dir=dev-tools --dry-run composer.json"
],
"php-compatibility": "@php dev-tools/vendor/bin/phpcs -p --standard=dev-tools/php-compatibility/phpcs-php-compatibility.xml",
"phpstan": "@php -d memory_limit=512M dev-tools/vendor/bin/phpstan analyse",
"phpstan:baseline": "@php -d memory_limit=512M dev-tools/vendor/bin/phpstan analyse --generate-baseline=./dev-tools/phpstan/baseline.php",
"qa": "@quality-assurance",
Expand Down Expand Up @@ -155,6 +156,7 @@
"install-tools": "Install DEV tools",
"mess-detector": "Analyse code with Mess Detector",
"normalize": "Run normalization for composer.json files",
"php-compatibility": "Check compatibility with all supported PHP versions",
"phpstan": "Run PHPStan analysis",
"phpstan:baseline": "Dump PHPStan baseline file - use only for updating, do not add new errors when possible",
"post-autoload-dump": "Run additional tasks after installing/updating main dependencies",
Expand Down
5 changes: 4 additions & 1 deletion dev-tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"icanhazstring/composer-unused": "^0.8.11",
"maglnet/composer-require-checker": "^4.8.0",
"mi-schi/phpmd-extension": "^4.3.0",
"phpcompatibility/php-compatibility": "10.x-dev as 9.99.0",
"phpcompatibility/phpcompatibility-symfony": "^1.2",
"phpmd/phpmd": "^2.15.0",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.51",
Expand All @@ -15,7 +17,8 @@
"allow-plugins": {
"ergebnis/composer-normalize": true,
"infection/extension-installer": false,
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"optimize-autoloader": true,
"platform": {
Expand Down

0 comments on commit 3c76bfe

Please sign in to comment.