Skip to content

Commit

Permalink
Respect exit code of lint run - changed from -exec to xargs as this e…
Browse files Browse the repository at this point in the history
…xits properly

Signed-off-by: Morris Jobke <[email protected]>
  • Loading branch information
MorrisJobke committed May 13, 2020
1 parent c6da7ec commit 8614aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"scripts": {
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/.phan/*' -exec php -l \"{}\" \\;"
"lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/.phan/*' -print0 | xargs -0 -n1 php -l"
}
}

0 comments on commit 8614aba

Please sign in to comment.