Make PHPStan errors CI failures

This commit is contained in:
Timothy Warren 2021-02-16 15:07:25 -05:00
parent 566c9fbd1e
commit 391708a49c

2
Jenkinsfile vendored
View File

@ -37,7 +37,7 @@ pipeline {
stage('Code Cleanliness') {
agent any
steps {
sh "php8 ./vendor/bin/phpstan analyse -c phpstan.neon -n --no-progress --no-ansi | awk '{\$1=\$1;print}' > build/logs/phpstan.log"
sh "php8 ./vendor/bin/phpstan analyse -c phpstan.neon -n --no-progress --no-ansi --error-format=checkstyle | awk '{\$1=\$1;print}' > build/logs/phpstan.log"
recordIssues(
failOnError: false,
tools: [phpStan(reportEncoding: 'UTF-8', pattern: 'build/logs/phpstan.log')]