Skip to content

Commit 658feae

Browse files
localheinzondrejmirtes
authored andcommitted
Enhancement: Run ergebnis/composer-normalize in check target
1 parent dd10fdd commit 658feae

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

build.xml

Lines changed: 14 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,19 @@
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+
2337
<target name="lint">
2438
<exec
2539
executable="vendor/bin/parallel-lint"

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"symfony/serializer": "^4.0",
4444
"symfony/messenger": "^4.2",
4545
"symfony/console": "^4.0",
46-
"symfony/http-foundation": "^4.0"
46+
"symfony/http-foundation": "^4.0",
47+
"ergebnis/composer-normalize": "^2.0.2"
4748
},
4849
"conflict": {
4950
"symfony/framework-bundle": "<3.0"

0 commit comments

Comments
 (0)