Skip to content

Commit e0b24f4

Browse files
committed
CI: Move some phpstan arguments into the config file
1 parent adf8ee1 commit e0b24f4

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

build.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,31 +107,23 @@
107107
description="Analyse code with PHPStan">
108108
<exec executable="phpstan">
109109
<arg value="analyse" />
110-
<arg path="${basedir}/src" />
111110
<arg value="-c" />
112111
<arg value="${basedir}/tests/phpstan.neon.dist" />
113-
<arg value="--level" />
114-
<arg value="9" />
115112
<arg value="--no-progress" />
116113
<arg value="--no-interaction" />
117-
<arg value="--xdebug" />
118114
</exec>
119115
</target>
120116

121117
<target name="phpstan-ci"
122118
description="Analyse code with PHPStan">
123119
<exec executable="phpstan" output="${basedir}/build/logs/phpstan.xml">
124120
<arg value="analyse" />
125-
<arg path="${basedir}/src" />
126121
<arg value="-c" />
127122
<arg value="${basedir}/tests/phpstan.neon.dist" />
128-
<arg value="--level" />
129-
<arg value="9" />
130123
<arg value="--error-format" />
131124
<arg value="checkstyle" />
132125
<arg value="--no-progress" />
133126
<arg value="--no-interaction" />
134-
<arg value="--xdebug" />
135127
</exec>
136128
</target>
137129

tests/phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# SPDX-License-Identifier: CC0-1.0
44

55
parameters:
6+
level: 9
7+
paths:
8+
- ../src
69
bootstrapFiles:
710
- phpstan.autoload.inc.php
811
excludePaths:

0 commit comments

Comments
 (0)