Framework: use parallel lint if available via core

This commit is contained in:
Franco Fichtner
2021-10-11 12:24:55 +02:00
parent 728b486baa
commit f57a538c7f
+6
View File
@@ -314,7 +314,12 @@ lint-exec: check
.endif
.endfor
LINTBIN?= ${.CURDIR}/../../../core/contrib/parallel-lint/parallel-lint
lint-php: check
.if exists(${LINTBIN})
@if [ -d ${.CURDIR}/src ]; then ${LINTBIN} src; fi
.else
@find ${.CURDIR}/src \
! -name "*.xml" ! -name "*.xml.sample" ! -name "*.eot" \
! -name "*.svg" ! -name "*.woff" ! -name "*.woff2" \
@@ -322,6 +327,7 @@ lint-php: check
! -name "*.scss" ! -name "*.py" ! -name "*.ttf" ! -name "*.txz" \
! -name "*.tgz" ! -name "*.xml.dist" ! -name "*.sh" ! -name "bootstrap80.php" \
-type f -print0 | xargs -0 -n1 php -l
.endif
lint: lint-desc lint-shell lint-xml lint-exec lint-php