Skip to content

Commit

Permalink
jsonlint
Browse files Browse the repository at this point in the history
  • Loading branch information
mducharme committed Aug 7, 2019
1 parent 6565285 commit 924412f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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/",
Expand Down

0 comments on commit 924412f

Please sign in to comment.