Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 3dbdc40

Browse files
localheinzondrejmirtes
authored andcommitted
Enhancement: Run ergebnis/composer-normalize in check target
1 parent 903d7cf commit 3dbdc40

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
@@ -28,7 +28,8 @@
2828
"phpstan/phpstan-phpunit": "^0.12",
2929
"phpstan/phpstan-strict-rules": "^0.12",
3030
"phpunit/phpunit": "^7.0",
31-
"slevomat/coding-standard": "^4.5.2"
31+
"slevomat/coding-standard": "^4.5.2",
32+
"ergebnis/composer-normalize": "^2.0.2"
3233
},
3334
"autoload": {
3435
"psr-4": {

0 commit comments

Comments
 (0)