Skip to content

Commit

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

Signed-off-by: Gary Kim <[email protected]>
  • Loading branch information
gary-kim committed May 14, 2020
1 parent 3609933 commit e6346ef
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 @@ -14,6 +14,6 @@
"scripts": {
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;"
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/.phan/*' -print0 | xargs -0 -n1 php -l"
}
}

0 comments on commit e6346ef

Please sign in to comment.