mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-13 01:51:50 +01:00
Implement PHPStan (https://github.com/phpstan/phpstan)
This commit is contained in:
@@ -63,6 +63,15 @@ dir.docker = ${project.basedir}/docker
|
||||
dir.docker.data = ${dir.docker}/data/db
|
||||
dir.docker.logs = ${dir.docker}/logs/nginx
|
||||
|
||||
# --------------------------------------------------------------------------------
|
||||
# Static Analysis
|
||||
# --------------------------------------------------------------------------------
|
||||
|
||||
# Paths of frameworks used to run analysis:
|
||||
# - PHPStan
|
||||
#
|
||||
check.phpstan.command = ./vendor/bin/phpstan analyse
|
||||
|
||||
# --------------------------------------------------------------------------------
|
||||
# Testing
|
||||
# --------------------------------------------------------------------------------
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
<!-- Check target -->
|
||||
<target name="build:check"
|
||||
depends="check:cs,
|
||||
check:cpd"
|
||||
check:cpd,
|
||||
check:phpstan"
|
||||
/>
|
||||
|
||||
<!-- Test target -->
|
||||
@@ -69,6 +70,11 @@
|
||||
</phpcpd>
|
||||
</target>
|
||||
|
||||
<!-- Run static analysis -->
|
||||
<target name="check:phpstan" depends="build:prepare">
|
||||
<exec command="${check.phpstan.command}" passthru="true"/>
|
||||
</target>
|
||||
|
||||
<!-- PHPUnit tests -->
|
||||
<target name="test:phpunit" depends="build:prepare">
|
||||
<exec command="${tests.phpunit.command}" passthru="true"/>
|
||||
|
||||
Reference in New Issue
Block a user