aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml7
-rw-r--r--phpstan.neon.dist4
2 files changed, 6 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 113e6ef..9052568 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 588535a..bc2526c 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#'