Skip to content

Commit 22a093f

Browse files
localheinzondrejmirtes
authored andcommitted
Enhancement: Run ergebnis/composer-normalize in check target
1 parent 539a7ee commit 22a093f

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

build.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
composer,
66
lint,
77
cs,
8+
composer-normalize-check,
89
tests,
910
phpstan
1011
"/>
@@ -20,6 +21,31 @@
2021
</exec>
2122
</target>
2223

24+
<target name="composer-normalize-check">
25+
<exec
26+
executable="composer"
27+
logoutput="true"
28+
passthru="true"
29+
checkreturn="true"
30+
>
31+
<arg value="normalize"/>
32+
<arg value="--ansi"/>
33+
<arg value="--dry-run"/>
34+
</exec>
35+
</target>
36+
37+
<target name="composer-normalize-fix">
38+
<exec
39+
executable="composer"
40+
logoutput="true"
41+
passthru="true"
42+
checkreturn="true"
43+
>
44+
<arg value="normalize"/>
45+
<arg value="--ansi"/>
46+
</exec>
47+
</target>
48+
2349
<target name="lint">
2450
<exec
2551
executable="vendor/bin/parallel-lint"

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"phpunit/phpunit": "^7.0",
3131
"satooshi/php-coveralls": "^1.0",
3232
"slevomat/coding-standard": "^4.5.2",
33-
"dibi/dibi": "~3.0"
33+
"dibi/dibi": "~3.0",
34+
"ergebnis/composer-normalize": "^2.0.2"
3435
},
3536
"conflict": {
3637
"dibi/dibi": "<3.0"

0 commit comments

Comments
 (0)