Skip to content
Snippets Groups Projects
Commit 0cd62863 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

use gitlab format for phpstan, re #606

Closes #606

Merge request studip/studip!797
parent daf39e04
No related branches found
No related tags found
No related merge requests found
...@@ -145,11 +145,14 @@ phpstan: ...@@ -145,11 +145,14 @@ phpstan:
- make composer-dev - make composer-dev
- mkdir .reports -p - mkdir .reports -p
script: 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: artifacts:
paths:
- .reports/report-phpstan.json
expire_in: 14 days
when: always when: always
reports: reports:
junit: .reports/report-phpstan.xml codequality: .reports/report-phpstan.json
test-unit: test-unit:
stage: tests stage: tests
......
...@@ -2,7 +2,7 @@ parameters: ...@@ -2,7 +2,7 @@ parameters:
level: 0 level: 0
phpVersion: 70200 # PHP 7.2 phpVersion: 70200 # PHP 7.2
paths: paths:
# - app/routes - app/routes
- lib - lib
# - tests # - tests
scanFiles: scanFiles:
...@@ -20,7 +20,5 @@ parameters: ...@@ -20,7 +20,5 @@ parameters:
RESTAPI\RouteMap: RESTAPI\RouteMap:
- error - error
- halt - halt
errorFormat:
junit
ignoreErrors: ignoreErrors:
# - '#Undefined variable#' # - '#Undefined variable#'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment