Skip to content

Commit 7f54914

Browse files
committed
ci(lint): Use find again
Signed-off-by: Joas Schilling <[email protected]>
1 parent 87a5916 commit 7f54914

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"@lint-8.2-or-earlier",
6666
"@lint-8.3-or-later"
6767
],
68-
"lint-8.2-or-earlier": "[ $(php -r \"echo PHP_VERSION_ID;\") -ge 80300 ] || git ls-files | grep '.php$' | grep -v '^lib/composer/' | grep -v '^build/stubs/' | xargs -0 -n1 php -l",
69-
"lint-8.3-or-later": "[ $(php -r \"echo PHP_VERSION_ID;\") -lt 80300 ] || php -l $(git ls-files | grep '.php$' | grep -v '^lib/composer/' | grep -v '^build/stubs/' | sed 's#/[^/]*$#/*.php#' | sort -u)",
68+
"lint-8.2-or-earlier": "[ $(php -r \"echo PHP_VERSION_ID;\") -ge 80300 ] || find . -type f -name '*.php' -not -path './3rdparty/*' -not -path '*/composer/*' -not -path '*/stubs/*' -not -path '*/vendor-bin/*' -not -path '*/vendor/*' | xargs -n1 -P$(nproc) php -l",
69+
"lint-8.3-or-later": "[ $(php -r \"echo PHP_VERSION_ID;\") -lt 80300 ] || find . -type f -name '*.php' -not -path './3rdparty/*' -not -path '*/composer/*' -not -path '*/stubs/*' -not -path '*/vendor-bin/*' -not -path '*/vendor/*' | xargs -n200 -P$(nproc) php -l",
7070
"psalm": "psalm --no-cache --threads=$(nproc)",
7171
"psalm:ocp": "psalm --no-cache --threads=$(nproc) -c psalm-ocp.xml",
7272
"psalm:ncu": "psalm --no-cache --threads=$(nproc) -c psalm-ncu.xml",

0 commit comments

Comments
 (0)