diff --git a/composer.json b/composer.json index b61628b..2ba3e07 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,8 @@ "squizlabs/php_codesniffer": "^3.0", "php-coveralls/php-coveralls": "^2.0", "cache/void-adapter": "^0.3", - "tedivm/stash": "~0.14" + "tedivm/stash": "~0.14", + "seld/jsonlint": "^1.7" }, "autoload": { "psr-4": { @@ -48,10 +49,12 @@ "@tests" ], "tests": [ + "@jsonlnt", "@phplint", "@phpcs", "@phpunit" ], + "jsonlint": "find metadata tests -type f -name '*.json' -print0 | xargs -0 -n1 -P8 vendor/bin/jsonlint | grep -v '^Valid JSON'; test $? -eq 1", "phplint": "find src tests -type f -name '*.php' -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected'; test $? -eq 1", "phpcs": "php vendor/bin/phpcs -ps --colors src/ tests/", "phpcbf": "php vendor/bin/phpcbf -ps --colors src/ tests/",