From 0cd628630c79078cc28abc567e885c98c19b2c3a Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Thu, 14 Jul 2022 07:40:36 +0000 Subject: [PATCH] use gitlab format for phpstan, re #606 Closes #606 Merge request studip/studip!797 --- .gitlab-ci.yml | 7 +++++-- phpstan.neon.dist | 4 +--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 113e6ef3ea2..9052568a336 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -145,11 +145,14 @@ phpstan: - make composer-dev - mkdir .reports -p script: - - php composer/bin/phpstan analyse --memory-limit=1G --no-progress --level=$PHPSTAN_LEVEL > .reports/report-phpstan.xml + - php composer/bin/phpstan analyse --memory-limit=1G --no-progress --level=$PHPSTAN_LEVEL --error-format=gitlab > .reports/report-phpstan.json artifacts: + paths: + - .reports/report-phpstan.json + expire_in: 14 days when: always reports: - junit: .reports/report-phpstan.xml + codequality: .reports/report-phpstan.json test-unit: stage: tests diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 588535a28f9..bc2526cc6f5 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -2,7 +2,7 @@ parameters: level: 0 phpVersion: 70200 # PHP 7.2 paths: - # - app/routes + - app/routes - lib # - tests scanFiles: @@ -20,7 +20,5 @@ parameters: RESTAPI\RouteMap: - error - halt - errorFormat: - junit ignoreErrors: # - '#Undefined variable#' -- GitLab