simplify lint and beautify scripts

v4
fadrian06 1 week ago
parent b0b3e096ca
commit 17e0224a55

@ -85,9 +85,13 @@
"rm server.pid", "rm server.pid",
"echo \"Performance Tests Completed.\"" "echo \"Performance Tests Completed.\""
], ],
"lint": "phpstan --no-progress --memory-limit=256M", "lint": [
"beautify": "phpcbf", "phpstan --no-progress --memory-limit=256M",
"phpcs": "phpcs", "phpcs"
],
"format": [
"phpcbf"
],
"post-install-cmd": [ "post-install-cmd": [
"@php -r \"if (!file_exists('phpcs.xml')) copy('phpcs.xml.dist', 'phpcs.xml');\"", "@php -r \"if (!file_exists('phpcs.xml')) copy('phpcs.xml.dist', 'phpcs.xml');\"",
"@php -r \"if (!file_exists('phpstan.neon')) copy('phpstan.dist.neon', 'phpstan.neon');\"", "@php -r \"if (!file_exists('phpstan.neon')) copy('phpstan.dist.neon', 'phpstan.neon');\"",

Loading…
Cancel
Save